From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125214 invoked by alias); 18 Dec 2015 19:41:06 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 125200 invoked by uid 89); 18 Dec 2015 19:41:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=nowadays, success!, tales, eagerly X-HELO: mail.theptrgroup.com Received: from Unknown (HELO mail.theptrgroup.com) (71.178.251.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Dec 2015 19:41:04 +0000 Received: from [10.11.21.6] (unknown [10.11.21.6]) by mail.theptrgroup.com (Postfix) with ESMTPS id 91DC3400A5 for ; Fri, 18 Dec 2015 14:37:52 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: DomTerm - a new console for Kawa (and everyone else) From: Jamison Hope In-Reply-To: Date: Fri, 18 Dec 2015 19:41:00 -0000 Content-Transfer-Encoding: quoted-printable Message-Id: <8EB012CB-FA33-4082-AC60-A6CC37BB36E2@theptrgroup.com> References: <56733C82.1050008@bothner.com> <56745B04.7040907@bothner.com> To: kawa list X-IsSubscribed: yes X-SW-Source: 2015-q4/txt/msg00060.txt.bz2 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 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??] >=20 > 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 :-) >=20 > 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, >=20 >=20 > netscape.javascript.JSException: ReferenceError: Can't find variable: > makeDomTerm >=20 > at com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:128) >=20 > at com.sun.webkit.WebPage.twkExecuteScript(Native Method) >=20 > at com.sun.webkit.WebPage.executeScript(WebPage.java:1427) >=20 > at javafx.scene.web.WebEngine.executeScript(WebEngine.java:948) >=20 > at org.domterm.javafx.WebTerminal.initialize(WebTerminal.java:226) >=20 > at org.domterm.javafx.WebTerminal$1.changed(WebTerminal.java:173) >=20 > at org.domterm.javafx.WebTerminal$1.changed(WebTerminal.java:170) >=20 > at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedE= vent(ExpressionHelper.java:182) >=20 > at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Expressi= onHelper.java:81) >=20 > at javafx.beans.property.ReadOnlyObjectWrapper$ReadOnlyPropertyImpl.fireV= alueChangedEvent(ReadOnlyObjectWrapper.java:176) >=20 > at javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(Read= OnlyObjectWrapper.java:142) >=20 > at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBas= e.java:112) >=20 > at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:1= 46) >=20 > at javafx.scene.web.WebEngine$LoadWorker.updateState(WebEngine.java:1226) >=20 > at javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(WebEngine.java= :1337) >=20 > at javafx.scene.web.WebEngine$LoadWorker.access$1100(WebEngine.java:1219) >=20 > at javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(WebEngin= e.java:1206) >=20 > at com.sun.webkit.WebPage.fireLoadEvent(WebPage.java:2388) >=20 > at com.sun.webkit.WebPage.fwkFireLoadEvent(WebPage.java:2232) >=20 > at com.sun.webkit.network.URLLoader.twkDidFinishLoading(Native Method) >=20 > at com.sun.webkit.network.URLLoader.notifyDidFinishLoading(URLLoader.java= :830) >=20 > at com.sun.webkit.network.URLLoader.lambda$didFinishLoading$95(URLLoader.= java:821) >=20 > at com.sun.webkit.network.URLLoader$$Lambda$153/1668192911.run(Unknown So= urce) >=20 > at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.j= ava:295) >=20 > at com.sun.javafx.application.PlatformImpl$$Lambda$51/405125410.run(Unkno= wn > Source) >=20 > at java.security.AccessController.doPrivileged(Native Method) >=20 > at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformIm= pl.java:294) >=20 > at com.sun.javafx.application.PlatformImpl$$Lambda$50/526533065.run(Unkno= wn > Source) >=20 > at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatche= r.java:95) >=20 > Exception in thread "JavaFX Application Thread" > java.lang.RuntimeException: netscape.javascript.JSException: > ReferenceError: Can't find variable: makeDomTerm >=20 > at org.domterm.javafx.WebTerminal.initialize(WebTerminal.java:237) >=20 > at org.domterm.javafx.WebTerminal$1.changed(WebTerminal.java:173) >=20 > at org.domterm.javafx.WebTerminal$1.changed(WebTerminal.java:170) >=20 > at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedE= vent(ExpressionHelper.java:182) >=20 > at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Expressi= onHelper.java:81) >=20 > at javafx.beans.property.ReadOnlyObjectWrapper$ReadOnlyPropertyImpl.fireV= alueChangedEvent(ReadOnlyObjectWrapper.java:176) >=20 > at javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(Read= OnlyObjectWrapper.java:142) >=20 > at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBas= e.java:112) >=20 > at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:1= 46) >=20 > at javafx.scene.web.WebEngine$LoadWorker.updateState(WebEngine.java:1226) >=20 > at javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(WebEngine.java= :1337) >=20 > at javafx.scene.web.WebEngine$LoadWorker.access$1100(WebEngine.java:1219) >=20 > at javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(WebEngin= e.java:1206) >=20 > at com.sun.webkit.WebPage.fireLoadEvent(WebPage.java:2388) >=20 > at com.sun.webkit.WebPage.fwkFireLoadEvent(WebPage.java:2232) >=20 > at com.sun.webkit.network.URLLoader.twkDidFinishLoading(Native Method) >=20 > at com.sun.webkit.network.URLLoader.notifyDidFinishLoading(URLLoader.java= :830) >=20 > at com.sun.webkit.network.URLLoader.lambda$didFinishLoading$95(URLLoader.= java:821) >=20 > at com.sun.webkit.network.URLLoader$$Lambda$153/1668192911.run(Unknown So= urce) >=20 > at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.j= ava:295) >=20 > at com.sun.javafx.application.PlatformImpl$$Lambda$51/405125410.run(Unkno= wn > Source) >=20 > at java.security.AccessController.doPrivileged(Native Method) >=20 > at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformIm= pl.java:294) >=20 > at com.sun.javafx.application.PlatformImpl$$Lambda$50/526533065.run(Unkno= wn > Source) >=20 > at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatche= r.java:95) >=20 > Caused by: netscape.javascript.JSException: ReferenceError: Can't find > variable: makeDomTerm >=20 > at com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:128) >=20 > at com.sun.webkit.WebPage.twkExecuteScript(Native Method) >=20 > at com.sun.webkit.WebPage.executeScript(WebPage.java:1427) >=20 > at javafx.scene.web.WebEngine.executeScript(WebEngine.java:948) >=20 > at org.domterm.javafx.WebTerminal.initialize(WebTerminal.java:226) >=20 > ... 24 more >=20 >=20 > 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 :-) > -- Jamison Hope The PTR Group www.theptrgroup.com