hey Nic,

plugins are supposed to reside under lib/ext/ exclusively. when we start 
placing their files all over we will have trouble to properly find out 
dependencies in the future.

rather let's find out why the plugin does not work with the plugin class 
loader. ..ede

On 14.10.2019 15:44, Nicolas Ribot wrote:
> Hi Jukka,
> 
> I was able to reproduce the errors you had.
> I copied glugen*.jar and jogl*.jar from worldwind-v2.1.0 to oj/lib/ and it 
> worked (no need to extract dll from jar files)
> 
> I will update the installation procedure and find a way to declare classpath 
> correctly in the plugin
> 
> Nicolas
> 
> On Mon, 14 Oct 2019 at 10:43, Nicolas Ribot <nicolas.ri...@gmail.com 
> <mailto:nicolas.ri...@gmail.com>> wrote:
> 
>     Hi Jukka,
> 
>     I tested the plugin with OJ rev 6083 on MacOS 10.14.6,
>     java version "1.8.0_191"
>     Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
>     Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
> 
>     and with OJ rev 6147 on windows 10,
>     java version "1.8.0_171"
>     Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
>     Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
> 
>     I will have a look for a proper installation procedure.
> 
>     Nicolas
> 
>     On Sun, 13 Oct 2019 at 21:44, Rahkonen Jukka (MML) 
> <jukka.rahko...@maanmittauslaitos.fi 
> <mailto:jukka.rahko...@maanmittauslaitos.fi>> wrote:
> 
>         Hi,____
> 
>         __ __
> 
>         I downloaded worldwind-v2_1_0_zip and unzipped it into my OpenJUMP 
> directory under …OpenJUMP-20190228-r6144-PLUS\lib\ext\worldwind-2.1.0.  Then 
> I downloaded 
> https://sourceforge.net/p/jump-pilot/code/HEAD/tree/plug-ins/OjWorldWind/out/artifacts/ojworldwind/ojworldwind.jar
>  and placed it into \lib\ext. However, the plugin does not start with Java 
> 1.8.0_201(amd64), nor with 32-bit Java. The error message says that 
> gluegen-rt.jar is not in the desired directory. By copying the dll from the 
> jar file that contains the native components into the root OJ directory I 
> could forward to the next error which seems to be harder to work around. 
> Perhaps I could edit oj_windows.bat to set the path, but how?____
> 
>         __ __
> 
>         The initial error was:____
> 
>         __ __
> 
>         java.lang.UnsatisfiedLinkError: Can't load library: 
> C:\ohjelmat\OJ\OpenJUMP-20190228-r6144-PLUS\gluegen-rt.dll____
> 
>                                    at 
> java.lang.ClassLoader.loadLibrary(Unknown Source)____
> 
>                                    at java.lang.Runtime.load0(Unknown 
> Source)____
> 
>                                    at java.lang.System.load(Unknown 
> Source)____
> 
>                                    at 
> com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:551)____
> 
>                                    at 
> com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)____
> 
>                                    at 
> com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:96)____
> 
>                                    at 
> com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:414)____
> 
>                                    at 
> com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:388)____
> 
>                                    at 
> com.jogamp.common.os.Platform$1.run(Platform.java:209)____
> 
>                                    at 
> java.security.AccessController.doPrivileged(Native Method)____
> 
>                                    at 
> com.jogamp.common.os.Platform.<clinit>(Platform.java:179)____
> 
>                                    at 
> javax.media.opengl.GLProfile.<clinit>(GLProfile.java:83)____
> 
>                                    at 
> gov.nasa.worldwind.Configuration.getMaxCompatibleGLProfile(Configuration.java:658)____
> 
>                                    at 
> gov.nasa.worldwind.Configuration.getRequiredGLCapabilities(Configuration.java:671)____
> 
>                                    at 
> gov.nasa.worldwind.awt.WorldWindowGLCanvas.<init>(WorldWindowGLCanvas.java:64)____
> 
>                                    at 
> org.openjump.ojworldwind.ww.ApplicationTemplate$AppPanel.createWorldWindow(ApplicationTemplate.java:76)____
> 
>                                    at 
> org.openjump.ojworldwind.ww.ApplicationTemplate$AppPanel.<init>(ApplicationTemplate.java:52)____
> 
>                                    at 
> org.openjump.ojworldwind.ww.ApplicationTemplate$AppFrame.createAppPanel(ApplicationTemplate.java:382)____
> 
>                                    at 
> org.openjump.ojworldwind.ww.ApplicationTemplate$AppFrame.initialize(ApplicationTemplate.java:121)____
> 
>                                    at 
> org.openjump.ojworldwind.ww.ApplicationTemplate$AppFrame.<init>(ApplicationTemplate.java:112)____
> 
>                                    at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)____
> 
>                                    at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)____
> 
>                                    at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)____
> 
>                                    at 
> java.lang.reflect.Constructor.newInstance(Unknown Source)____
> 
>                                    at java.lang.Class.newInstance(Unknown 
> Source)____
> 
>                                    at 
> org.openjump.ojworldwind.ww.ApplicationTemplate.start(ApplicationTemplate.java:488)____
> 
>                                    at 
> org.openjump.ojworldwind.OjWorldwindPlugin.execute(OjWorldwindPlugin.java:94)____
> 
>                                    at 
> com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:344)____
> 
>                                    at 
> javax.swing.AbstractButton.fireActionPerformed(Unknown Source)____
> 
>                                    at 
> javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)____
> 
>                                    at 
> javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)____
> 
>                                    at 
> javax.swing.JToggleButton$ToggleButtonModel.setPressed(Unknown Source)____
> 
>                                    at 
> javax.swing.AbstractButton.doClick(Unknown Source)____
> 
>                                    at 
> javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)____
> 
>                                    at 
> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown 
> Source)____
> 
>                                    at 
> java.awt.Component.processMouseEvent(Unknown Source)____
> 
>                                    at 
> javax.swing.JComponent.processMouseEvent(Unknown Source)____
> 
>                                    at java.awt.Component.processEvent(Unknown 
> Source)____
> 
>                                    at java.awt.Container.processEvent(Unknown 
> Source)____
> 
>                                    at 
> java.awt.Component.dispatchEventImpl(Unknown Source)____
> 
>                                    at 
> java.awt.Container.dispatchEventImpl(Unknown Source)____
> 
>                                    at 
> java.awt.Component.dispatchEvent(Unknown Source)____
> 
>                                    at 
> java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)____
> 
>                                    at 
> java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)____
> 
>                                    at 
> java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)____
> 
>                                    at 
> java.awt.Container.dispatchEventImpl(Unknown Source)____
> 
>                                    at 
> java.awt.Window.dispatchEventImpl(Unknown Source)____
> 
>                                    at 
> java.awt.Component.dispatchEvent(Unknown Source)____
> 
>                                    at 
> java.awt.EventQueue.dispatchEventImpl(Unknown Source)____
> 
>                                    at java.awt.EventQueue.access$500(Unknown 
> Source)____
> 
>                                    at java.awt.EventQueue$3.run(Unknown 
> Source)____
> 
>                                    at java.awt.EventQueue$3.run(Unknown 
> Source)____
> 
>                                    at 
> java.security.AccessController.doPrivileged(Native Method)____
> 
>                                    at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
>  Source)____
> 
>                                    at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
>  Source)____
> 
>                                    at java.awt.EventQueue$4.run(Unknown 
> Source)____
> 
>                                    at java.awt.EventQueue$4.run(Unknown 
> Source)____
> 
>                                    at 
> java.security.AccessController.doPrivileged(Native Method)____
> 
>                                    at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
>  Source)____
> 
>                                    at 
> java.awt.EventQueue.dispatchEvent(Unknown Source)____
> 
>                                    at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)____
> 
>                                    at 
> java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)____
> 
>                                    at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)____
> 
>                                    at 
> java.awt.EventDispatchThread.pumpEvents(Unknown Source)____
> 
>                                    at 
> java.awt.EventDispatchThread.pumpEvents(Unknown Source)____
> 
>                                    at 
> java.awt.EventDispatchThread.run(Unknown Source)____
> 
>         __ __
> 
>         The next error starts with this:____
> 
>         __ __
> 
>         java.lang.NoClassDefFoundError: Could not initialize class 
> javax.media.opengl.GLProfile____
> 
>         ____
> 
>         -Jukka Rahkonen-____
> 
>         __ __
> 
>         *Lähettäjä:* Nicolas Ribot <nicolas.ri...@gmail.com 
> <mailto:nicolas.ri...@gmail.com>>
>         *Lähetetty:* sunnuntai 13. lokakuuta 2019 20.04
>         *Vastaanottaja:* JUMP Developer 
> <jump-pilot-devel@lists.sourceforge.net 
> <mailto:jump-pilot-devel@lists.sourceforge.net>>
>         *Aihe:* [JPP-Devel] WorldWind plugin____
> 
>         __ __
> 
>         Hello,____
> 
>         __ __
> 
>         I commited a plugin 
> (https://sourceforge.net/p/jump-pilot/code/HEAD/tree/plug-ins/OjWorldWind/) 
> allowing to display a WGS84 layer on a WW globe.____
> 
>         It is very basic for the moment:____
> 
>         __ __
> 
>         • OJ Vector layers are converted to a tmp GeoJson or shapefile file 
> (format can be set in options panel)____
> 
>         • Basic symbology (border, fill color, transparency) is applied to WW 
> layer.____
> 
>         • 3D polygon can be (will be, in fact) extruded based on an attribute 
> (height by default, configurable). Tested with about 100k building polygons 
> and globe is still responsive ____
> 
>         • Image layers are supported____
> 
>         __ __
> 
>         I plan to add some features like aeronautical objects (floor and ceil 
> heights, terrain clamping, trajectories as curtains, etc).____
> 
>         With all the WW features, there is quite a room for features !____
> 
>         __ __
> 
>         Some screenshots:____
> 
>         __ __
> 
>         Vector layer:____
> 
>         Screenshot 2019-10-13 at 18.37.43.png____
> 
>         __ __
> 
>         3D buildings extruded based on height attribute values____
> 
>         Screenshot 2019-10-13 at 18.58.11.png____
> 
>         __ __
> 
>         Geotiff____
> 
>         Screenshot 2019-10-13 at 18.51.06.png____
> 
>         __ __
> 
>         Nicolas____
> 
>         _______________________________________________
>         Jump-pilot-devel mailing list
>         Jump-pilot-devel@lists.sourceforge.net 
> <mailto:Jump-pilot-devel@lists.sourceforge.net>
>         https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 
> 
> 
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 


_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to