public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Jamison Hope <jrh@theptrgroup.com>
To: kawa list <kawa@sourceware.org>
Subject: Re: DomTerm - a new console for Kawa (and everyone else)
Date: Fri, 18 Dec 2015 19:41:00 -0000	[thread overview]
Message-ID: <8EB012CB-FA33-4082-AC60-A6CC37BB36E2@theptrgroup.com> (raw)
In-Reply-To: <CAPMhJv1Dx_V_QRdEsLFUoj-whSw_vT1C-SjE0Un-UbVM8HFA-w@mail.gmail.com>

Charlie, thanks for investigating this -- it saves me from having to
do it. :-)

I'm mostly sure that the ".jnilib" extension is deprecated (but still
supported), and that nowadays, JNI dynamic libraries can use the same
file extension as ordinary Mac OS X dynamic libraries (i.e. ".dylib").
Either way, yeah ".so" is not the right file extension on Macs.

I eagerly await further tales of your adventures and eventual success!


On Dec 18, 2015, at 2:28 PM, Charlie Turner <chturne@gmail.com> wrote:

> I almost got this working on OSX. See my hacks in the attached patch
> file if you want to get where I got :-)  [where the heck do you get
> err_sys from on our box??]
> 
> In addition to that patch file, I also had to rename libpty.so to
> libpty.jnilib on OSX. I have no idea why. This is my first experience
> with Native Java :-)
> 
> Sadly, I got lost after managing to get the DomTerm to run. make-pty
> completes, and then the DomTerm window pops up with a scroll-bar, but
> nothing else. I get this stack trace in the terminal window from which
> I launched make run-pty,
> 
> 
> netscape.javascript.JSException: ReferenceError: Can't find variable:
> makeDomTerm
> 
> at com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:128)
> 
> at com.sun.webkit.WebPage.twkExecuteScript(Native Method)
> 
> at com.sun.webkit.WebPage.executeScript(WebPage.java:1427)
> 
> at javafx.scene.web.WebEngine.executeScript(WebEngine.java:948)
> 
> at org.domterm.javafx.WebTerminal.initialize(WebTerminal.java:226)
> 
> at org.domterm.javafx.WebTerminal$1.changed(WebTerminal.java:173)
> 
> at org.domterm.javafx.WebTerminal$1.changed(WebTerminal.java:170)
> 
> at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:182)
> 
> at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
> 
> at javafx.beans.property.ReadOnlyObjectWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyObjectWrapper.java:176)
> 
> at javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(ReadOnlyObjectWrapper.java:142)
> 
> at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112)
> 
> at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
> 
> at javafx.scene.web.WebEngine$LoadWorker.updateState(WebEngine.java:1226)
> 
> at javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(WebEngine.java:1337)
> 
> at javafx.scene.web.WebEngine$LoadWorker.access$1100(WebEngine.java:1219)
> 
> at javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(WebEngine.java:1206)
> 
> at com.sun.webkit.WebPage.fireLoadEvent(WebPage.java:2388)
> 
> at com.sun.webkit.WebPage.fwkFireLoadEvent(WebPage.java:2232)
> 
> at com.sun.webkit.network.URLLoader.twkDidFinishLoading(Native Method)
> 
> at com.sun.webkit.network.URLLoader.notifyDidFinishLoading(URLLoader.java:830)
> 
> at com.sun.webkit.network.URLLoader.lambda$didFinishLoading$95(URLLoader.java:821)
> 
> at com.sun.webkit.network.URLLoader$$Lambda$153/1668192911.run(Unknown Source)
> 
> at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.java:295)
> 
> at com.sun.javafx.application.PlatformImpl$$Lambda$51/405125410.run(Unknown
> Source)
> 
> at java.security.AccessController.doPrivileged(Native Method)
> 
> at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformImpl.java:294)
> 
> at com.sun.javafx.application.PlatformImpl$$Lambda$50/526533065.run(Unknown
> Source)
> 
> at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
> 
> Exception in thread "JavaFX Application Thread"
> java.lang.RuntimeException: netscape.javascript.JSException:
> ReferenceError: Can't find variable: makeDomTerm
> 
> at org.domterm.javafx.WebTerminal.initialize(WebTerminal.java:237)
> 
> at org.domterm.javafx.WebTerminal$1.changed(WebTerminal.java:173)
> 
> at org.domterm.javafx.WebTerminal$1.changed(WebTerminal.java:170)
> 
> at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:182)
> 
> at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
> 
> at javafx.beans.property.ReadOnlyObjectWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyObjectWrapper.java:176)
> 
> at javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(ReadOnlyObjectWrapper.java:142)
> 
> at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112)
> 
> at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
> 
> at javafx.scene.web.WebEngine$LoadWorker.updateState(WebEngine.java:1226)
> 
> at javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(WebEngine.java:1337)
> 
> at javafx.scene.web.WebEngine$LoadWorker.access$1100(WebEngine.java:1219)
> 
> at javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(WebEngine.java:1206)
> 
> at com.sun.webkit.WebPage.fireLoadEvent(WebPage.java:2388)
> 
> at com.sun.webkit.WebPage.fwkFireLoadEvent(WebPage.java:2232)
> 
> at com.sun.webkit.network.URLLoader.twkDidFinishLoading(Native Method)
> 
> at com.sun.webkit.network.URLLoader.notifyDidFinishLoading(URLLoader.java:830)
> 
> at com.sun.webkit.network.URLLoader.lambda$didFinishLoading$95(URLLoader.java:821)
> 
> at com.sun.webkit.network.URLLoader$$Lambda$153/1668192911.run(Unknown Source)
> 
> at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.java:295)
> 
> at com.sun.javafx.application.PlatformImpl$$Lambda$51/405125410.run(Unknown
> Source)
> 
> at java.security.AccessController.doPrivileged(Native Method)
> 
> at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformImpl.java:294)
> 
> at com.sun.javafx.application.PlatformImpl$$Lambda$50/526533065.run(Unknown
> Source)
> 
> at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
> 
> Caused by: netscape.javascript.JSException: ReferenceError: Can't find
> variable: makeDomTerm
> 
> at com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:128)
> 
> at com.sun.webkit.WebPage.twkExecuteScript(Native Method)
> 
> at com.sun.webkit.WebPage.executeScript(WebPage.java:1427)
> 
> at javafx.scene.web.WebEngine.executeScript(WebEngine.java:948)
> 
> at org.domterm.javafx.WebTerminal.initialize(WebTerminal.java:226)
> 
> ... 24 more
> 
> 
> I didn't understand much from your response Per. Looks like I've got
> some reading to do before I get to use my toy :-)
> <domterm_osx.patch>

--
Jamison Hope
The PTR Group
www.theptrgroup.com



  reply	other threads:[~2015-12-18 19:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-17 22:52 Per Bothner
2015-12-18 18:43 ` Charlie Turner
2015-12-18 19:14   ` Per Bothner
2015-12-18 19:28     ` Charlie Turner
2015-12-18 19:41       ` Jamison Hope [this message]
2015-12-18 19:46       ` Per Bothner
2015-12-18 20:00         ` Charlie Turner
2015-12-22  7:38       ` Per Bothner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8EB012CB-FA33-4082-AC60-A6CC37BB36E2@theptrgroup.com \
    --to=jrh@theptrgroup.com \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).