You can download the corrected version of Java3D library from here
https://drive.google.com/file/d/1VrsAkAtKrzpK8FmDO1yOcGWorcCdWwRg/view?usp=sharing It contains a few small edits in a naive manner to avoid using the GLCanvasImpl.destroy() method. This prevents the Java 9 from crashing on the latest MacOS. I also tested it on other operating systems, and it appears good to go for now. I cannot spot any memory leaks in jconsole. |
This just in from Predrag...thought I would post it, as I think it is very interesting.
Thanks Predrag! Regards, - Doug The cause of JVM 9 crash has been averted in Java3D now, but if we allow it to happen, the crash can be further traced to the GLCanvasImpl.destroy() method, and more precisely, to the MacOSXCGLContext.destroyImpl() method, and in it, more precisely to the releaseUpdateHandle() in the same class, and then to this line of code: CGL.updateContextUnregister(updateHandle); The class CGL is found in the file jogl/build/jogl/gensrc/classes/jogamp/opengl/macosx/cgl/CGL.java The method in question is native: public static native void updateContextUnregister(long updater); This is the bottom line |
Administrator
|
In reply to this post by Predrag Bokšić
Please rather make a pull request instead of "sharing" a 7z archive. Moreover, I'm sorry but the real fix would consist in avoiding a crash when releasing the context. You cannot spot any memory leak because you don't look at the right place. The allocated memory is in the native heap, not in the Java heap.
We are open to contributions but please don't add any confusion by offering an alternative version of Java3D without allowing us to see exactly what you changed. That's why I insist on the pull request. Please make an effort to follow our guidelines so that we can work together. Do you reproduce the same crash when leaving a program based on JOGL but not on Java3D? https://gist.github.com/gouessej/3420e2b6f632efdddf98 If the program above works correctly with Java 1.9 under OS X, it means that the culprit is really in Java3D, otherwise we have something to fix in JOGL.
Julien Gouesse | Personal blog | Website
|
Administrator
|
Thank you for the feedback. Therefore, Java3D shouldn't be modified, the real bug is inside JOGL only under OS X with Java 1.9. I'll add those precious pieces of information into the bug report about Java 1.9 & JOGL.
Please can you confirm that both a simple Java3D program and my rudimentary example based on JOGL work and exit correctly on your machine with Java 1.8 instead of Java 1.9? It would be helpful if you used OpenJDK instead of Oracle Java for this test, you can find a build for your platform here: https://adoptopenjdk.net/?variant=openjdk8 NEWT should go on working correctly without this kind of crash.
Julien Gouesse | Personal blog | Website
|
In reply to this post by gouessej
The command line that makes the JVM 9 crash on MacOS is:
frame.dispose(); |
Administrator
|
Thanks, it occurs when the context is released when the frame is disposed.
Please can you confirm that my rudimentary example does NOT crash under OS X with Java 1.8?
Julien Gouesse | Personal blog | Website
|
This should enable you to test under windows 7 with jdk8
and a mac with jdk9; http://www.docjava.com/book/cgij/code/jnlp/j3d.examples.boids.Main.jnlp On a mac, we are throwing exceptions under jdk9, but we are getting rendering; Exceptions are reported in the console. On windows 7 under jdk9, there is a sudden jvm exit. When deploying to multiple platforms with synchronized libraries, I find webstart pretty nice for testing. Webstart removes environmental issues with libraries and paths. This makes cross-platform experiments both conclusive and inclusive. Testing and debugging continues. Theory: Threads that do not release the graphics context will result in deadlock due to context contention. Resource contention might be throwing an exception during the destroy process (I would be happy to be wrong about that, because if I am right, this could be a hard bug to solve!). Are there reasons why threads in the jogl pipeline might not release the graphics context? Happy New Year! - Doug |
In reply to this post by gouessej
These trivial changes (there have been many) are not for the general public and are not properly tested.
We are working a rapid debug test cycle that is a bit like making sausages (nobody wants to know what goes in them!). Your code example now runs under jdk9 on a mac (warnings are listed, below).... jdk8 is fine. For what it is worth, I did not test under windows/linux, yet. Cross-platform testing, that is where the real ball game is at. Cheers! - Doug /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/bin/java -javaagent:/Applications/idea.app/Contents/lib/idea_rt.jar=52600:/Applications/idea.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/lyon/current/java/j4p/out/production/j4p:/Users/lyon/current/java/j4p/jars/anna-3.5.jar:/Users/lyon/current/java/j4p/jars/annotations.jar:/Users/lyon/current/java/j4p/jars/ant.jar:/Users/lyon/current/java/j4p/jars/ant-launcher-1.7.1.jar:/Users/lyon/current/java/j4p/jars/antlr-4.5-complete.jar:/Users/lyon/current/java/j4p/jars/apache-mime4j.jar:/Users/lyon/current/java/j4p/jars/asm-2.2.1.jar:/Users/lyon/current/java/j4p/jars/asm-attrs-2.2.1.jar:/Users/lyon/current/java/j4p/jars/batik-anim.jar:/Users/lyon/current/java/j4p/jars/batik-awt-util.jar:/Users/lyon/current/java/j4p/jars/batik-bridge.jar:/Users/lyon/current/java/j4p/jars/batik-codec.jar:/Users/lyon/current/java/j4p/jars/batik-css.jar:/Users/lyon/current/java/j4p/jars/batik-dom.jar:/Users/lyon/current/java/j4p/jars/batik-ext.jar:/Users/lyon/current/java/j4p/jars/batik-extension.jar:/Users/lyon/current/java/j4p/jars/batik-gui-util.jar:/Users/lyon/current/java/j4p/jars/batik-gvt.jar:/Users/lyon/current/java/j4p/jars/batik-parser.jar:/Users/lyon/current/java/j4p/jars/batik-rasterizer.jar:/Users/lyon/current/java/j4p/jars/batik-script.jar:/Users/lyon/current/java/j4p/jars/batik-slideshow.jar:/Users/lyon/current/java/j4p/jars/batik-squiggle.jar:/Users/lyon/current/java/j4p/jars/batik-svg-dom.jar:/Users/lyon/current/java/j4p/jars/batik-svggen.jar:/Users/lyon/current/java/j4p/jars/batik-svgpp.jar:/Users/lyon/current/java/j4p/jars/batik-swing.jar:/Users/lyon/current/java/j4p/jars/batik-transcoder.jar:/Users/lyon/current/java/j4p/jars/batik-ttf2svg.jar:/Users/lyon/current/java/j4p/jars/batik-util.jar:/Users/lyon/current/java/j4p/jars/batik-xml.jar:/Users/lyon/current/java/j4p/jars/bcel-6.0.jar:/Users/lyon/current/java/j4p/jars/bcprov-jdk15on-154.jar:/Users/lyon/current/java/j4p/jars/bridj-0.6.1.jar:/Users/lyon/current/java/j4p/jars/catalina.jar:/Users/lyon/current/java/j4p/jars/cglib-2.2_beta1.jar:/Users/lyon/current/java/j4p/jars/client-combined-3.4.0-nodeps.jar:/Users/lyon/current/java/j4p/jars/cmu_time_awb.jar:/Users/lyon/current/java/j4p/jars/cmu_us_kal.jar:/Users/lyon/current/java/j4p/jars/cmudict04.jar:/Users/lyon/current/java/j4p/jars/cmulex.jar:/Users/lyon/current/java/j4p/jars/cmutimelex.jar:/Users/lyon/current/java/j4p/jars/com.ibm.icu_50.1.1.v201304230130.jar:/Users/lyon/current/java/j4p/jars/commons-beanutils-1.9.2.jar:/Users/lyon/current/java/j4p/jars/commons-codec-1.4.jar:/Users/lyon/current/java/j4p/jars/commons-collections4-4.1.jar:/Users/lyon/current/java/j4p/jars/commons-csv-1.4.jar:/Users/lyon/current/java/j4p/jars/commons-httpclient-3.0-rc3.jar:/Users/lyon/current/java/j4p/jars/commons-io-2.0.1.jar:/Users/lyon/current/java/j4p/jars/commons-lang3-3.5.jar:/Users/lyon/current/java/j4p/jars/commons-logging-1.2.jar:/Users/lyon/current/java/j4p/jars/commons-net-1.4.1.jar:/Users/lyon/current/java/j4p/jars/coreProcessing.jar:/Users/lyon/current/java/j4p/jars/cssparser-0.9.5.jar:/Users/lyon/current/java/j4p/jars/dicom.jar:/Users/lyon/current/java/j4p/jars/dom4j-1.6.1.jar:/Users/lyon/current/java/j4p/jars/dropbox-core-sdk-1.7.7.jar:/Users/lyon/current/java/j4p/jars/dropbox-java-sdk-1.3.jar:/Users/lyon/current/java/j4p/jars/Echo2_App.jar:/Users/lyon/current/java/j4p/jars/ehcache-1.2.3.jar:/Users/lyon/current/java/j4p/jars/en_us.jar:/Users/lyon/current/java/j4p/jars/ezmorph-1.0.6.jar:/Users/lyon/current/java/j4p/jars/facialrecognition.jar:/Users/lyon/current/java/j4p/jars/filters-2.0.235.jar:/Users/lyon/current/java/j4p/jars/freeBase.jar:/Users/lyon/current/java/j4p/jars/freeGraphics.jar:/Users/lyon/current/java/j4p/jars/freehepEmf17.jar:/Users/lyon/current/java/j4p/jars/freeHepGraphicsIO17.jar:/Users/lyon/current/java/j4p/jars/freemarker.jar:/Users/lyon/current/java/j4p/jars/freetts.jar:/Users/lyon/current/java/j4p/jars/gson-2.8.0.jar:/Users/lyon/current/java/j4p/jars/HelloWorld.jar:/Users/lyon/current/java/j4p/jars/hibernate-3.2.2.ga.jar:/Users/lyon/current/java/j4p/jars/hsqldb-1.7.3.3.jar:/Users/lyon/current/java/j4p/jars/htmlunit-2.26.jar:/Users/lyon/current/java/j4p/jars/htmlunit-core-js-2.9.jar:/Users/lyon/current/java/j4p/jars/htmlunit-core-js-2.26.jar:/Users/lyon/current/java/j4p/jars/httpclient-4.1.2.jar:/Users/lyon/current/java/j4p/jars/httpclient-4.5.3.jar:/Users/lyon/current/java/j4p/jars/httpcore-4.1.2.jar:/Users/lyon/current/java/j4p/jars/httpcore-4.4.6.jar:/Users/lyon/current/java/j4p/jars/httpcore-nio-4.0.jar:/Users/lyon/current/java/j4p/jars/httpmime-4.1.2.jar:/Users/lyon/current/java/j4p/jars/httpmime-4.5.3.jar:/Users/lyon/current/java/j4p/jars/hyperjaxb2-core-0.6.2.jar:/Users/lyon/current/java/j4p/jars/hyperjaxb2-hibernate-configuration-0.6.2.jar:/Users/lyon/current/java/j4p/jars/hyperjaxb2-hibernate-customizations-0.6.2.jar:/Users/lyon/current/java/j4p/jars/hyperjaxb2-hibernate-mapping-0.6.2.jar:/Users/lyon/current/java/j4p/jars/hyperjaxb2-shared-0.6.2.jar:/Users/lyon/current/java/j4p/jars/hyperjaxb2-testing-0.6.2.jar:/Users/lyon/current/java/j4p/jars/imagej-1.47.jar:/Users/lyon/current/java/j4p/jars/imloader.jar:/Users/lyon/current/java/j4p/jars/itext-1.3.jar:/Users/lyon/current/java/j4p/jars/jaas.jar:/Users/lyon/current/java/j4p/jars/jackson-core-2.2.4.jar:/Users/lyon/current/java/j4p/jars/jai_codec.jar:/Users/lyon/current/java/j4p/jars/jai_core.jar:/Users/lyon/current/java/j4p/jars/jaranalyzer.jar:/Users/lyon/current/java/j4p/jars/jaxb1-impl.jar:/Users/lyon/current/java/j4p/jars/jaxb-api.jar:/Users/lyon/current/java/j4p/jars/jaxbcommons-core-1.0.3.jar:/Users/lyon/current/java/j4p/jars/jaxbcommons-shared-1.0.3.jar:/Users/lyon/current/java/j4p/jars/jaxbcommons-testing-1.0.3.jar:/Users/lyon/current/java/j4p/jars/jbrowserdriver-0.17.4.jar:/Users/lyon/current/java/j4p/jars/jce.jar:/Users/lyon/current/java/j4p/jars/jetty-client-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/jetty-http-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/jetty-io-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/jetty-util-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/jimi.jar:/Users/lyon/current/java/j4p/jars/jmf.jar:/Users/lyon/current/java/j4p/jars/jna.jar:/Users/lyon/current/java/j4p/jars/js.jar:/Users/lyon/current/java/j4p/jars/jsch.jar:/Users/lyon/current/java/j4p/jars/json-jena-1.0.jar:/Users/lyon/current/java/j4p/jars/json-lib-2.4-jdk15.jar:/Users/lyon/current/java/j4p/jars/json_simple-1.1.jar:/Users/lyon/current/java/j4p/jars/jsoup-1.8.1.jar:/Users/lyon/current/java/j4p/jars/jsse.jar:/Users/lyon/current/java/j4p/jars/jta-1.0.1B.jar:/Users/lyon/current/java/j4p/jars/junit-4.10.jar:/Users/lyon/current/java/j4p/jars/l2fprod-common-all.jar:/Users/lyon/current/java/j4p/jars/liblinear-1.51-with-deps.jar:/Users/lyon/current/java/j4p/jars/log4j-1.2.13.jar:/Users/lyon/current/java/j4p/jars/logback-core-1.0.7.jar:/Users/lyon/current/java/j4p/jars/mail.jar:/Users/lyon/current/java/j4p/jars/matetools-1.30.jar:/Users/lyon/current/java/j4p/jars/MRJToolkit.jar:/Users/lyon/current/java/j4p/jars/MRJToolkitStubs-1.0.jar:/Users/lyon/current/java/j4p/jars/mysql.jar:/Users/lyon/current/java/j4p/jars/natty-0.13-SNAPSHOT.jar:/Users/lyon/current/java/j4p/jars/nekohtml-1.9.15.jar:/Users/lyon/current/java/j4p/jars/openapi.jar:/Users/lyon/current/java/j4p/jars/opencsv-3.8.jar:/Users/lyon/current/java/j4p/jars/opennlp-maxent-3.0.2-incubating.jar:/Users/lyon/current/java/j4p/jars/opennlp-tools-1.5.2-incubating.jar:/Users/lyon/current/java/j4p/jars/opennlp-tools-1.6.0.jar:/Users/lyon/current/java/j4p/jars/org.eclipse.cdt.core_5.5.0.201306112328.jar:/Users/lyon/current/java/j4p/jars/org.eclipse.equinox.common_3.6.200.v20130402-1505.jar:/Users/lyon/current/java/j4p/jars/pde.jar:/Users/lyon/current/java/j4p/jars/phidget21.jar:/Users/lyon/current/java/j4p/jars/poi-3.15.jar:/Users/lyon/current/java/j4p/jars/poi-ooxml-3.16.jar:/Users/lyon/current/java/j4p/jars/poi-ooxml-schemas-3.7.jar:/Users/lyon/current/java/j4p/jars/portfolio.jar:/Users/lyon/current/java/j4p/jars/printf.jar:/Users/lyon/current/java/j4p/jars/QTJava.zip:/Users/lyon/current/java/j4p/jars/quaqua.jar:/Users/lyon/current/java/j4p/jars/resolver.jar:/Users/lyon/current/java/j4p/jars/rt.jar:/Users/lyon/current/java/j4p/jars/saaj-api.jar:/Users/lyon/current/java/j4p/jars/saaj-impl.jar:/Users/lyon/current/java/j4p/jars/sac-1.3.jar:/Users/lyon/current/java/j4p/jars/saxon-8.7.jar:/Users/lyon/current/java/j4p/jars/saxon-dom-8.7.jar:/Users/lyon/current/java/j4p/jars/secondstring.jar:/Users/lyon/current/java/j4p/jars/seg.jar:/Users/lyon/current/java/j4p/jars/selenium-firefox-driver-2.24.1.jar:/Users/lyon/current/java/j4p/jars/selenium-java-2.29.0.jar:/Users/lyon/current/java/j4p/jars/serializer-2.7.1.jar:/Users/lyon/current/java/j4p/jars/servlet.jar:/Users/lyon/current/java/j4p/jars/shippo-java-client-1.2.0.jar:/Users/lyon/current/java/j4p/jars/signpost-core-1.2.1.2.jar:/Users/lyon/current/java/j4p/jars/sjsxp.jar:/Users/lyon/current/java/j4p/jars/slf4j-api-1.7.7.jar:/Users/lyon/current/java/j4p/jars/slf4j-simple-1.7.7.jar:/Users/lyon/current/java/j4p/jars/sphinx4.jar:/Users/lyon/current/java/j4p/jars/spring-2.0.2.jar:/Users/lyon/current/java/j4p/jars/sqlite-jdbc-3.16.1.jar:/Users/lyon/current/java/j4p/jars/stanford-corenlp-3.6.0.jar:/Users/lyon/current/java/j4p/jars/stanford-parser.jar:/Users/lyon/current/java/j4p/jars/tattletale-1.1.2.Final.jar:/Users/lyon/current/java/j4p/jars/temboo_java_sdk_2.11.1.jar:/Users/lyon/current/java/j4p/jars/tools.jar:/Users/lyon/current/java/j4p/jars/util.jar:/Users/lyon/current/java/j4p/jars/velocity-1.7.jar:/Users/lyon/current/java/j4p/jars/webcam.jar:/Users/lyon/current/java/j4p/jars/webcam-capture-0.3.10.jar:/Users/lyon/current/java/j4p/jars/webserver.jar:/Users/lyon/current/java/j4p/jars/websocket-api-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/websocket-client-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/websocket-common-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/whatswrong-0.2.3.jar:/Users/lyon/current/java/j4p/jars/wire-v1.3-b21.jar:/Users/lyon/current/java/j4p/jars/xalan-2.7.2.jar:/Users/lyon/current/java/j4p/jars/xercesImpl.jar:/Users/lyon/current/java/j4p/jars/xercesImpl-2.9.1.jar:/Users/lyon/current/java/j4p/jars/xml-apis-1.3.04.jar:/Users/lyon/current/java/j4p/jars/xmlsec.jar:/Users/lyon/current/java/j4p/jars/YahooFinanceAPI-3.4.0.jar:/Users/lyon/current/java/j4p/jars/joda-time-1.6.2.jar:/Users/lyon/current/java/j4p/jars/reflections-0.9.11.jar:/Users/lyon/current/java/j4p/jars/javassist-3.21.0-GA.jar:/Users/lyon/current/java/j4p/jars/20171231Jogl/j3dcore.jar:/Users/lyon/current/java/j4p/jars/20171231Jogl/j3dutils.jar:/Users/lyon/current/java/j4p/jars/20171231Jogl/jogamp-fat.jar:/Users/lyon/current/java/j4p/jars/20171231Jogl/vecmath.jar j3d.JOGLQuad WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/Users/lyon/current/java/j4p/jars/20171231Jogl/jogamp-fat.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String) WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release |
In reply to this post by gouessej
Amazingly, your simple quad example is running under openjdk9 on a mac.
In limited testing, java3d worked too. Ciao 4 now! - Doug /Users/lyon/attachments/jdk-9+181/bin/java -javaagent:/Applications/idea.app/Contents/lib/idea_rt.jar=52666:/Applications/idea.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/lyon/current/java/j4p/out/production/j4p:/Users/lyon/current/java/j4p/jars/anna-3.5.jar:/Users/lyon/current/java/j4p/jars/annotations.jar:/Users/lyon/current/java/j4p/jars/ant.jar:/Users/lyon/current/java/j4p/jars/ant-launcher-1.7.1.jar:/Users/lyon/current/java/j4p/jars/antlr-4.5-complete.jar:/Users/lyon/current/java/j4p/jars/apache-mime4j.jar:/Users/lyon/current/java/j4p/jars/asm-2.2.1.jar:/Users/lyon/current/java/j4p/jars/asm-attrs-2.2.1.jar:/Users/lyon/current/java/j4p/jars/batik-anim.jar:/Users/lyon/current/java/j4p/jars/batik-awt-util.jar:/Users/lyon/current/java/j4p/jars/batik-bridge.jar:/Users/lyon/current/java/j4p/jars/batik-codec.jar:/Users/lyon/current/java/j4p/jars/batik-css.jar:/Users/lyon/current/java/j4p/jars/batik-dom.jar:/Users/lyon/current/java/j4p/jars/batik-ext.jar:/Users/lyon/current/java/j4p/jars/batik-extension.jar:/Users/lyon/current/java/j4p/jars/batik-gui-util.jar:/Users/lyon/current/java/j4p/jars/batik-gvt.jar:/Users/lyon/current/java/j4p/jars/batik-parser.jar:/Users/lyon/current/java/j4p/jars/batik-rasterizer.jar:/Users/lyon/current/java/j4p/jars/batik-script.jar:/Users/lyon/current/java/j4p/jars/batik-slideshow.jar:/Users/lyon/current/java/j4p/jars/batik-squiggle.jar:/Users/lyon/current/java/j4p/jars/batik-svg-dom.jar:/Users/lyon/current/java/j4p/jars/batik-svggen.jar:/Users/lyon/current/java/j4p/jars/batik-svgpp.jar:/Users/lyon/current/java/j4p/jars/batik-swing.jar:/Users/lyon/current/java/j4p/jars/batik-transcoder.jar:/Users/lyon/current/java/j4p/jars/batik-ttf2svg.jar:/Users/lyon/current/java/j4p/jars/batik-util.jar:/Users/lyon/current/java/j4p/jars/batik-xml.jar:/Users/lyon/current/java/j4p/jars/bcel-6.0.jar:/Users/lyon/current/java/j4p/jars/bcprov-jdk15on-154.jar:/Users/lyon/current/java/j4p/jars/bridj-0.6.1.jar:/Users/lyon/current/java/j4p/jars/catalina.jar:/Users/lyon/current/java/j4p/jars/cglib-2.2_beta1.jar:/Users/lyon/current/java/j4p/jars/client-combined-3.4.0-nodeps.jar:/Users/lyon/current/java/j4p/jars/cmu_time_awb.jar:/Users/lyon/current/java/j4p/jars/cmu_us_kal.jar:/Users/lyon/current/java/j4p/jars/cmudict04.jar:/Users/lyon/current/java/j4p/jars/cmulex.jar:/Users/lyon/current/java/j4p/jars/cmutimelex.jar:/Users/lyon/current/java/j4p/jars/com.ibm.icu_50.1.1.v201304230130.jar:/Users/lyon/current/java/j4p/jars/commons-beanutils-1.9.2.jar:/Users/lyon/current/java/j4p/jars/commons-codec-1.4.jar:/Users/lyon/current/java/j4p/jars/commons-collections4-4.1.jar:/Users/lyon/current/java/j4p/jars/commons-csv-1.4.jar:/Users/lyon/current/java/j4p/jars/commons-httpclient-3.0-rc3.jar:/Users/lyon/current/java/j4p/jars/commons-io-2.0.1.jar:/Users/lyon/current/java/j4p/jars/commons-lang3-3.5.jar:/Users/lyon/current/java/j4p/jars/commons-logging-1.2.jar:/Users/lyon/current/java/j4p/jars/commons-net-1.4.1.jar:/Users/lyon/current/java/j4p/jars/coreProcessing.jar:/Users/lyon/current/java/j4p/jars/cssparser-0.9.5.jar:/Users/lyon/current/java/j4p/jars/dicom.jar:/Users/lyon/current/java/j4p/jars/dom4j-1.6.1.jar:/Users/lyon/current/java/j4p/jars/dropbox-core-sdk-1.7.7.jar:/Users/lyon/current/java/j4p/jars/dropbox-java-sdk-1.3.jar:/Users/lyon/current/java/j4p/jars/Echo2_App.jar:/Users/lyon/current/java/j4p/jars/ehcache-1.2.3.jar:/Users/lyon/current/java/j4p/jars/en_us.jar:/Users/lyon/current/java/j4p/jars/ezmorph-1.0.6.jar:/Users/lyon/current/java/j4p/jars/facialrecognition.jar:/Users/lyon/current/java/j4p/jars/filters-2.0.235.jar:/Users/lyon/current/java/j4p/jars/freeBase.jar:/Users/lyon/current/java/j4p/jars/freeGraphics.jar:/Users/lyon/current/java/j4p/jars/freehepEmf17.jar:/Users/lyon/current/java/j4p/jars/freeHepGraphicsIO17.jar:/Users/lyon/current/java/j4p/jars/freemarker.jar:/Users/lyon/current/java/j4p/jars/freetts.jar:/Users/lyon/current/java/j4p/jars/gson-2.8.0.jar:/Users/lyon/current/java/j4p/jars/HelloWorld.jar:/Users/lyon/current/java/j4p/jars/hibernate-3.2.2.ga.jar:/Users/lyon/current/java/j4p/jars/hsqldb-1.7.3.3.jar:/Users/lyon/current/java/j4p/jars/htmlunit-2.26.jar:/Users/lyon/current/java/j4p/jars/htmlunit-core-js-2.9.jar:/Users/lyon/current/java/j4p/jars/htmlunit-core-js-2.26.jar:/Users/lyon/current/java/j4p/jars/httpclient-4.1.2.jar:/Users/lyon/current/java/j4p/jars/httpclient-4.5.3.jar:/Users/lyon/current/java/j4p/jars/httpcore-4.1.2.jar:/Users/lyon/current/java/j4p/jars/httpcore-4.4.6.jar:/Users/lyon/current/java/j4p/jars/httpcore-nio-4.0.jar:/Users/lyon/current/java/j4p/jars/httpmime-4.1.2.jar:/Users/lyon/current/java/j4p/jars/httpmime-4.5.3.jar:/Users/lyon/current/java/j4p/jars/hyperjaxb2-core-0.6.2.jar:/Users/lyon/current/java/j4p/jars/hyperjaxb2-hibernate-configuration-0.6.2.jar:/Users/lyon/current/java/j4p/jars/hyperjaxb2-hibernate-customizations-0.6.2.jar:/Users/lyon/current/java/j4p/jars/hyperjaxb2-hibernate-mapping-0.6.2.jar:/Users/lyon/current/java/j4p/jars/hyperjaxb2-shared-0.6.2.jar:/Users/lyon/current/java/j4p/jars/hyperjaxb2-testing-0.6.2.jar:/Users/lyon/current/java/j4p/jars/imagej-1.47.jar:/Users/lyon/current/java/j4p/jars/imloader.jar:/Users/lyon/current/java/j4p/jars/itext-1.3.jar:/Users/lyon/current/java/j4p/jars/jaas.jar:/Users/lyon/current/java/j4p/jars/jackson-core-2.2.4.jar:/Users/lyon/current/java/j4p/jars/jai_codec.jar:/Users/lyon/current/java/j4p/jars/jai_core.jar:/Users/lyon/current/java/j4p/jars/jaranalyzer.jar:/Users/lyon/current/java/j4p/jars/jaxb1-impl.jar:/Users/lyon/current/java/j4p/jars/jaxb-api.jar:/Users/lyon/current/java/j4p/jars/jaxbcommons-core-1.0.3.jar:/Users/lyon/current/java/j4p/jars/jaxbcommons-shared-1.0.3.jar:/Users/lyon/current/java/j4p/jars/jaxbcommons-testing-1.0.3.jar:/Users/lyon/current/java/j4p/jars/jbrowserdriver-0.17.4.jar:/Users/lyon/current/java/j4p/jars/jce.jar:/Users/lyon/current/java/j4p/jars/jetty-client-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/jetty-http-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/jetty-io-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/jetty-util-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/jimi.jar:/Users/lyon/current/java/j4p/jars/jmf.jar:/Users/lyon/current/java/j4p/jars/jna.jar:/Users/lyon/current/java/j4p/jars/js.jar:/Users/lyon/current/java/j4p/jars/jsch.jar:/Users/lyon/current/java/j4p/jars/json-jena-1.0.jar:/Users/lyon/current/java/j4p/jars/json-lib-2.4-jdk15.jar:/Users/lyon/current/java/j4p/jars/json_simple-1.1.jar:/Users/lyon/current/java/j4p/jars/jsoup-1.8.1.jar:/Users/lyon/current/java/j4p/jars/jsse.jar:/Users/lyon/current/java/j4p/jars/jta-1.0.1B.jar:/Users/lyon/current/java/j4p/jars/junit-4.10.jar:/Users/lyon/current/java/j4p/jars/l2fprod-common-all.jar:/Users/lyon/current/java/j4p/jars/liblinear-1.51-with-deps.jar:/Users/lyon/current/java/j4p/jars/log4j-1.2.13.jar:/Users/lyon/current/java/j4p/jars/logback-core-1.0.7.jar:/Users/lyon/current/java/j4p/jars/mail.jar:/Users/lyon/current/java/j4p/jars/matetools-1.30.jar:/Users/lyon/current/java/j4p/jars/MRJToolkit.jar:/Users/lyon/current/java/j4p/jars/MRJToolkitStubs-1.0.jar:/Users/lyon/current/java/j4p/jars/mysql.jar:/Users/lyon/current/java/j4p/jars/natty-0.13-SNAPSHOT.jar:/Users/lyon/current/java/j4p/jars/nekohtml-1.9.15.jar:/Users/lyon/current/java/j4p/jars/openapi.jar:/Users/lyon/current/java/j4p/jars/opencsv-3.8.jar:/Users/lyon/current/java/j4p/jars/opennlp-maxent-3.0.2-incubating.jar:/Users/lyon/current/java/j4p/jars/opennlp-tools-1.5.2-incubating.jar:/Users/lyon/current/java/j4p/jars/opennlp-tools-1.6.0.jar:/Users/lyon/current/java/j4p/jars/org.eclipse.cdt.core_5.5.0.201306112328.jar:/Users/lyon/current/java/j4p/jars/org.eclipse.equinox.common_3.6.200.v20130402-1505.jar:/Users/lyon/current/java/j4p/jars/pde.jar:/Users/lyon/current/java/j4p/jars/phidget21.jar:/Users/lyon/current/java/j4p/jars/poi-3.15.jar:/Users/lyon/current/java/j4p/jars/poi-ooxml-3.16.jar:/Users/lyon/current/java/j4p/jars/poi-ooxml-schemas-3.7.jar:/Users/lyon/current/java/j4p/jars/portfolio.jar:/Users/lyon/current/java/j4p/jars/printf.jar:/Users/lyon/current/java/j4p/jars/QTJava.zip:/Users/lyon/current/java/j4p/jars/quaqua.jar:/Users/lyon/current/java/j4p/jars/resolver.jar:/Users/lyon/current/java/j4p/jars/rt.jar:/Users/lyon/current/java/j4p/jars/saaj-api.jar:/Users/lyon/current/java/j4p/jars/saaj-impl.jar:/Users/lyon/current/java/j4p/jars/sac-1.3.jar:/Users/lyon/current/java/j4p/jars/saxon-8.7.jar:/Users/lyon/current/java/j4p/jars/saxon-dom-8.7.jar:/Users/lyon/current/java/j4p/jars/secondstring.jar:/Users/lyon/current/java/j4p/jars/seg.jar:/Users/lyon/current/java/j4p/jars/selenium-firefox-driver-2.24.1.jar:/Users/lyon/current/java/j4p/jars/selenium-java-2.29.0.jar:/Users/lyon/current/java/j4p/jars/serializer-2.7.1.jar:/Users/lyon/current/java/j4p/jars/servlet.jar:/Users/lyon/current/java/j4p/jars/shippo-java-client-1.2.0.jar:/Users/lyon/current/java/j4p/jars/signpost-core-1.2.1.2.jar:/Users/lyon/current/java/j4p/jars/sjsxp.jar:/Users/lyon/current/java/j4p/jars/slf4j-api-1.7.7.jar:/Users/lyon/current/java/j4p/jars/slf4j-simple-1.7.7.jar:/Users/lyon/current/java/j4p/jars/sphinx4.jar:/Users/lyon/current/java/j4p/jars/spring-2.0.2.jar:/Users/lyon/current/java/j4p/jars/sqlite-jdbc-3.16.1.jar:/Users/lyon/current/java/j4p/jars/stanford-corenlp-3.6.0.jar:/Users/lyon/current/java/j4p/jars/stanford-parser.jar:/Users/lyon/current/java/j4p/jars/tattletale-1.1.2.Final.jar:/Users/lyon/current/java/j4p/jars/temboo_java_sdk_2.11.1.jar:/Users/lyon/current/java/j4p/jars/tools.jar:/Users/lyon/current/java/j4p/jars/util.jar:/Users/lyon/current/java/j4p/jars/velocity-1.7.jar:/Users/lyon/current/java/j4p/jars/webcam.jar:/Users/lyon/current/java/j4p/jars/webcam-capture-0.3.10.jar:/Users/lyon/current/java/j4p/jars/webserver.jar:/Users/lyon/current/java/j4p/jars/websocket-api-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/websocket-client-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/websocket-common-9.4.3.v20170317.jar:/Users/lyon/current/java/j4p/jars/whatswrong-0.2.3.jar:/Users/lyon/current/java/j4p/jars/wire-v1.3-b21.jar:/Users/lyon/current/java/j4p/jars/xalan-2.7.2.jar:/Users/lyon/current/java/j4p/jars/xercesImpl.jar:/Users/lyon/current/java/j4p/jars/xercesImpl-2.9.1.jar:/Users/lyon/current/java/j4p/jars/xml-apis-1.3.04.jar:/Users/lyon/current/java/j4p/jars/xmlsec.jar:/Users/lyon/current/java/j4p/jars/YahooFinanceAPI-3.4.0.jar:/Users/lyon/current/java/j4p/jars/joda-time-1.6.2.jar:/Users/lyon/current/java/j4p/jars/reflections-0.9.11.jar:/Users/lyon/current/java/j4p/jars/javassist-3.21.0-GA.jar:/Users/lyon/current/java/j4p/jars/20171231Jogl/j3dcore.jar:/Users/lyon/current/java/j4p/jars/20171231Jogl/j3dutils.jar:/Users/lyon/current/java/j4p/jars/20171231Jogl/jogamp-fat.jar:/Users/lyon/current/java/j4p/jars/20171231Jogl/vecmath.jar j3d.JOGLQuad WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/Users/lyon/current/java/j4p/jars/20171231Jogl/jogamp-fat.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String) WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Process finished with exit code 0 |
Administrator
|
Do you mean that my simple example doesn't crash at the end with OpenJDK 1.9 (+181)? Which update of Oracle Java 1.9 causes the crash under Mac? It would help me to understand if something has changed in Java itself as I still suspect something different from Java 1.8 to cause this bug.
Julien Gouesse | Personal blog | Website
|
The jogl-only test program works on Oracle 1.8. As you know, it crashes when exiting on Oracle 9.0.1. In the case of OpenJDK 9, the program failed to execute.
/Users/gamma/Downloads/jdk-9+181/bin/java -jar jogl-test-only.jar WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/Users/gamma/Documents/jogl-test-only/jogl-test-only.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String) WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/gamma/Downloads/jdk-9+181/lib/libfontmanager.dylib: dlopen(/Users/gamma/Downloads/jdk-9+181/lib/libfontmanager.dylib, 1): Library not loaded: /Users/jenkins/workspace/openjdk9_build_x86-64_macos/openjdk/installedfreetype/lib/libfreetype.6.dylib Referenced from: /Users/gamma/Downloads/jdk-9+181/lib/libfontmanager.dylib Reason: image not found at java.base/java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2614) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2520) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:873) at java.base/java.lang.System.loadLibrary(System.java:1857) at java.desktop/sun.lwawt.macosx.LWCToolkit$1.run(LWCToolkit.java:94) at java.desktop/sun.lwawt.macosx.LWCToolkit$1.run(LWCToolkit.java:83) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.desktop/sun.lwawt.macosx.LWCToolkit.<clinit>(LWCToolkit.java:82) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:292) at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:573) at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:568) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:567) at jogamp.nativewindow.jawt.JAWTJNILibLoader$1.run(JAWTJNILibLoader.java:58) at java.base/java.security.AccessController.doPrivileged(Native Method) at jogamp.nativewindow.jawt.JAWTJNILibLoader.<clinit>(JAWTJNILibLoader.java:52) at jogamp.nativewindow.jawt.JAWTUtil.<clinit>(JAWTUtil.java:335) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:375) at com.jogamp.nativewindow.NativeWindowFactory$3.run(NativeWindowFactory.java:344) at com.jogamp.nativewindow.NativeWindowFactory$3.run(NativeWindowFactory.java:340) at java.base/java.security.AccessController.doPrivileged(Native Method) at com.jogamp.nativewindow.NativeWindowFactory.initSingleton(NativeWindowFactory.java:340) at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1721) at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80) at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230) at java.base/java.security.AccessController.doPrivileged(Native Method) at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216) at com.jogamp.opengl.GLProfile.getDefaultDevice(GLProfile.java:2027) at com.jogamp.opengl.awt.GLCanvas.<init>(GLCanvas.java:264) at com.jogamp.opengl.awt.GLCanvas.<init>(GLCanvas.java:231) at com.jogamp.opengl.awt.GLCanvas.<init>(GLCanvas.java:218) at JOGLQuad.main(JOGLQuad.java:72) |
Hi Predrag,
The code at: http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp works fine...on the mac. Even with jdk9. FYI. - Doug On 12/31/17 2:03 PM, Predrag Boksic [via jogamp] wrote: > The jogl-only test program works on Oracle 1.8. As you know, it crashes > when exiting on Oracle 9.0.1. In the case of OpenJDK 9, the program > failed to execute. > > /Users/gamma/Downloads/jdk-9+181/bin/java -jar jogl-test-only.jar > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > com.jogamp.common.os.NativeLibrary$3 > (file:/Users/gamma/Documents/jogl-test-only/jogl-test-only.jar) to > method java.lang.ClassLoader.findLibrary(java.lang.String) > WARNING: Please consider reporting this to the maintainers of > com.jogamp.common.os.NativeLibrary$3 > WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations > WARNING: All illegal access operations will be denied in a future release > Exception in thread "main" java.lang.UnsatisfiedLinkError: > /Users/gamma/Downloads/jdk-9+181/lib/libfontmanager.dylib: > dlopen(/Users/gamma/Downloads/jdk-9+181/lib/libfontmanager.dylib, 1): > Library not loaded: > /Users/jenkins/workspace/openjdk9_build_x86-64_macos/openjdk/installedfreetype/lib/libfreetype.6.dylib > > Referenced from: > /Users/gamma/Downloads/jdk-9+181/lib/libfontmanager.dylib > Reason: image not found > at java.base/java.lang.ClassLoader$NativeLibrary.load(Native > Method) > at > java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2614) > at > java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2520) > at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:873) > at java.base/java.lang.System.loadLibrary(System.java:1857) > at > java.desktop/sun.lwawt.macosx.LWCToolkit$1.run(LWCToolkit.java:94) > at > java.desktop/sun.lwawt.macosx.LWCToolkit$1.run(LWCToolkit.java:83) > at java.base/java.security.AccessController.doPrivileged(Native > Method) > at > java.desktop/sun.lwawt.macosx.LWCToolkit.<clinit>(LWCToolkit.java:82) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:292) > at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:573) > at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:568) > at java.base/java.security.AccessController.doPrivileged(Native > Method) > at > java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:567) > at > jogamp.nativewindow.jawt.JAWTJNILibLoader$1.run(JAWTJNILibLoader.java:58) > at java.base/java.security.AccessController.doPrivileged(Native > Method) > at > jogamp.nativewindow.jawt.JAWTJNILibLoader.<clinit>(JAWTJNILibLoader.java:52) > > at jogamp.nativewindow.jawt.JAWTUtil.<clinit>(JAWTUtil.java:335) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:375) > at > com.jogamp.nativewindow.NativeWindowFactory$3.run(NativeWindowFactory.java:344) > > at > com.jogamp.nativewindow.NativeWindowFactory$3.run(NativeWindowFactory.java:340) > > at java.base/java.security.AccessController.doPrivileged(Native > Method) > at > com.jogamp.nativewindow.NativeWindowFactory.initSingleton(NativeWindowFactory.java:340) > > at > com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1721) > > at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80) > at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230) > at java.base/java.security.AccessController.doPrivileged(Native > Method) > at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216) > at > com.jogamp.opengl.GLProfile.getDefaultDevice(GLProfile.java:2027) > at com.jogamp.opengl.awt.GLCanvas.<init>(GLCanvas.java:264) > at com.jogamp.opengl.awt.GLCanvas.<init>(GLCanvas.java:231) > at com.jogamp.opengl.awt.GLCanvas.<init>(GLCanvas.java:218) > at JOGLQuad.main(JOGLQuad.java:72) > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038467.html > To unsubscribe from Jogl/Jogamp on Java 9, click here > < > NAML > <http://forum.jogamp.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > |
In reply to this post by gouessej
As testing continues to demonstrate interesting outcomes, here is what we found, so far.
JOGLQuad is now deployed to web start at: http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp We are targeting jdk9 and that is the output of the bytecode version. It all works well on a mac (jdk9). Yipee! It crashes on windows 7. Mega downer! Considering that no java3d was involved, this is indicating a jogl issue. Could be our build of the windows libs are to blame (this is likely). Probably just a dumb bug that prevents our finding a good config...hmm. Here are some details, below. Thank you for your thoughts and efforts. Regards, - Doug http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlpjava.lang.ArrayIndexOutOfBoundsException: -1 at jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(WindowsAWTWGLGraphicsConfigurationFactory.java:171) at com.jogamp.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(GraphicsConfigurationFactory.java:424) at com.jogamp.opengl.awt.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:1560) at com.jogamp.opengl.awt.GLCanvas.addNotify(GLCanvas.java:611) at java.desktop/java.awt.Container.addNotify(Unknown Source) at java.desktop/java.awt.Window.addNotify(Unknown Source) at java.desktop/java.awt.Frame.addNotify(Unknown Source) at java.desktop/java.awt.Window.show(Unknown Source) at java.desktop/java.awt.Component.show(Unknown Source) at java.desktop/java.awt.Component.setVisible(Unknown Source) at java.desktop/java.awt.Window.setVisible(Unknown Source) at j3d.JOGLQuad.main(JOGLQuad.java:96) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.executeApplication(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.executeMainClass(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) package j3d; import com.jogamp.opengl.GL; import com.jogamp.opengl.GL2; import com.jogamp.opengl.GL2ES1; import com.jogamp.opengl.GLAutoDrawable; import com.jogamp.opengl.GLEventListener; import com.jogamp.opengl.awt.GLCanvas; import com.jogamp.opengl.fixedfunc.GLLightingFunc; import com.jogamp.opengl.fixedfunc.GLMatrixFunc; import com.jogamp.opengl.util.Animator; import java.awt.*; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; /** * Self-contained example (within a single class only to keep it simple) * displaying a rotating quad */ public class JOGLQuad implements GLEventListener { private float rotateT = 0.0f; @Override public void display(GLAutoDrawable gLDrawable) { final GL2 gl = gLDrawable.getGL().getGL2(); gl.glClear(GL.GL_COLOR_BUFFER_BIT); gl.glClear(GL.GL_DEPTH_BUFFER_BIT); gl.glLoadIdentity(); gl.glTranslatef(0.0f, 0.0f, -5.0f); // rotate about the three axes gl.glRotatef(rotateT, 1.0f, 0.0f, 0.0f); gl.glRotatef(rotateT, 0.0f, 1.0f, 0.0f); gl.glRotatef(rotateT, 0.0f, 0.0f, 1.0f); // Draw A Quad gl.glBegin(GL2.GL_QUADS); gl.glColor3f(0.0f, 1.0f, 1.0f); // set the color of the quad gl.glVertex3f(-1.0f, 1.0f, 0.0f); // Top Left gl.glVertex3f( 1.0f, 1.0f, 0.0f); // Top Right gl.glVertex3f( 1.0f,-1.0f, 0.0f); // Bottom Right gl.glVertex3f(-1.0f,-1.0f, 0.0f); // Bottom Left // Done Drawing The Quad gl.glEnd(); // increasing rotation for the next iteration rotateT += 0.2f; } @Override public void init(GLAutoDrawable glDrawable) { GL2 gl = glDrawable.getGL().getGL2(); gl.glShadeModel(GLLightingFunc.GL_SMOOTH); gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); gl.glClearDepth(1.0f); gl.glEnable(GL.GL_DEPTH_TEST); gl.glDepthFunc(GL.GL_LEQUAL); gl.glHint(GL2ES1.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST); } @Override public void reshape(GLAutoDrawable gLDrawable, int x, int y, int width, int height) { GL2 gl = gLDrawable.getGL().getGL2(); final float aspect = (float) width / (float) height; gl.glMatrixMode(GLMatrixFunc.GL_PROJECTION); gl.glLoadIdentity(); final float fh = 0.5f; final float fw = fh * aspect; gl.glFrustumf(-fw, fw, -fh, fh, 1.0f, 1000.0f); gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW); gl.glLoadIdentity(); } @Override public void dispose(GLAutoDrawable gLDrawable) { } public static void main(String[] args) { final GLCanvas canvas = new GLCanvas(); final Frame frame = new Frame("Jogl Quad drawing"); final Animator animator = new Animator(canvas); canvas.addGLEventListener(new JOGLQuad()); frame.add(canvas); frame.setSize(640, 480); frame.setResizable(false); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { animator.stop(); frame.dispose(); System.exit(0); } }); frame.setVisible(true); animator.start(); canvas.requestFocus(); } } |
In reply to this post by Predrag Boksic
Hi Predrag,
Here is what happens when we run javawebstart with -verbose on; Something is not right with the dll bundle. Not sure what, yet, but webstart is not able to find the dll... That is a show-stopper! - Doug PS JAWT.DLL was not available in the jars you supplied...is that an error of omission? network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath-natives-windows-amd64.jar with proxy=DIRECT JNLPClassLoader: Finding library jawt.dll network: JNLPClassLoader: Native library jawt not found java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.executeApplication(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.executeMainClass(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(WindowsAWTWGLGraphicsConfigurationFactory.java:171) at com.jogamp.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(GraphicsConfigurationFactory.java:424) at com.jogamp.opengl.awt.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:1560) at com.jogamp.opengl.awt.GLCanvas.addNotify(GLCanvas.java:611) at java.desktop/java.awt.Container.addNotify(Unknown Source) at java.desktop/java.awt.Window.addNotify(Unknown Source) at java.desktop/java.awt.Frame.addNotify(Unknown Source) at java.desktop/java.awt.Window.show(Unknown Source) at java.desktop/java.awt.Component.show(Unknown Source) at java.desktop/java.awt.Component.setVisible(Unknown Source) at java.desktop/java.awt.Window.setVisible(Unknown Source) at j3d.JOGLQuad.main(JOGLQuad.java:96) ... 9 more #### Java Web Start Error: Java Web Start 12.0.1.0 Using JRE version 9.0.1+11 Java HotSpot(TM) 64-Bit Server VM JRE expiration date: 2/16/18, 12:00 AM User home directory = C:\Users\Moo.lyon-HP ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message m: print memory usage o: trigger logging p: reload proxy configuration q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack 0-5: set trace level to <n> ---------------------------------------------------- basic: Java part started basic: jnlpx.jvm: C:\Program Files\Java\jre-9.0.1\bin\javaw.exe basic: jnlpx.remove: false basic: jnlpx.heapsize: null network: Loading user-defined proxy configuration ... network: Done. network: Browser is ChromeHTML network: Browser is IE network: Loading proxy configuration from Internet Explorer ... network: Done. network: Loading direct proxy configuration ... network: Done. network: Proxy Configuration: No proxy basic: Using Cp1252 to encode arguments. basic: Running JVMParams: [JVMParameters: isSecure: true, args:] -> [JVMParameters: isSecure: true, args:] network: Connecting http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp with proxy=DIRECT network: ResponseCode for http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp : 200 network: Encoding for http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp : null network: Server response: (length: 582, lastModified: Mon Jan 01 10:01:32 EST 2018, downloadVersion: null, mimeType: application/x-java-jnlp-file) network: Downloading resource: http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp Content-Length: 582 Content-Encoding: null network: Wrote URL http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp to File C:\Users\Moo.lyon-HP\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\1\c52cc1-465d8abd-temp network: Disconnect connection to http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp network: Downloaded http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp: C:\Users\Moo.lyon-HP\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\1\c52cc1-465d8abd cache: Adding MemoryCache entry: http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@36174111: 1 cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@36174111: 2 basic: XMLParser with _source: <jnlp spec="1.0+" codebase="http://show.docjava.com:80/book/cgij/code/jnlp/" > <information> <title>j3d.JOGLQuad</title> <vendor>DocJava, Inc.</vendor> <homepage href="http://www.docjava.com"/> <icon href="http://show.docjava.com:80/consulti/docjava.jpe"/> <offline-allowed /> </information> <security> <all-permissions /> </security> <resources> <j2se version="1.8+"/> <extension name="Java3D" href="jogl.jnlp"> </extension> <jar href="joglquad.jar" /> </resources> <application-desc main-class="j3d.JOGLQuad" /> </jnlp> temp: returning LaunchDesc from XMLFormat.parse(): <jnlp spec="1.0+" codebase="http://show.docjava.com:80/book/cgij/code/jnlp/"> <information> <title>j3d.JOGLQuad</title> <vendor>DocJava, Inc.</vendor> <homepage href="http://www.docjava.com"/> <icon href="http://show.docjava.com:80/consulti/docjava.jpe" kind="default"/> <offline-allowed/> </information> <security> <all-permissions/> </security> <update check="timeout" policy="always"/> <resources> <java version="1.8+"/> <extension href="http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp" name="Java3D"/> <jar href="http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar" download="eager" main="false"/> </resources> <application-desc type="Java" main-class="j3d.JOGLQuad"/> </jnlp> network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp with proxy=DIRECT network: ResponseCode for http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp : 200 network: Encoding for http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp : null network: Server response: (length: 1420, lastModified: Sun Dec 31 08:40:29 EST 2017, downloadVersion: null, mimeType: application/x-java-jnlp-file) network: Downloading resource: http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp Content-Length: 1,420 Content-Encoding: null network: Wrote URL http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp to File C:\Users\Moo.lyon-HP\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\9\67880409-22434884-temp network: Disconnect connection to http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp network: Downloaded http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp: C:\Users\Moo.lyon-HP\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\9\67880409-22434884 cache: Adding MemoryCache entry: http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@a0fe6498: 1 basic: XMLParser with _source: <jnlp spec="1.0+" codebase="http://show.docjava.com:80/book/cgij/code/jnlp/" > <information> <title>Java 3D</title> <vendor>DocJava Inc.</vendor> <homepage href="http://www.docjava.com"/> <description>Java 3D library</description> </information> <security> <all-permissions/> </security> <resources os="Windows"> <jar href="libs/jogl/j3dcore.jar" download="eager"/> <jar href="libs/jogl/j3dutils.jar" download="eager"/> <jar href="libs/jogl/vecmath.jar" download="eager"/> <jar href="libs/jogl/jogamp-fat.jar" download="eager"/> </resources> <resources os="Mac"> <jar href="libs/jogl/j3dcore.jar" download="eager"/> <jar href="libs/jogl/j3dutils.jar" download="eager"/> <jar href="libs/jogl/vecmath.jar" download="eager"/> <jar href="libs/jogl/jogamp-fat.jar" download="eager"/> </resources> <resources os="Linux" arch="i386"> <nativelib href = "libs/linux/jogl-natives-linux-i586.jar" /> </resources> <resources os="Linux" arch="x86"> <nativelib href = "libs/linux/jogl-natives-linux-i586.jar" /> </resources> <resources os="Linux" arch="amd64"> <nativelib href = "libs/linux/jogl-natives-linux-amd64.jar" /> </resources> <resources os="Linux" arch="x86_64"> <nativelib href = "libs/linux/jogl-natives-linux-amd64.jar" /> </resources> <component-desc /> </jnlp> temp: returning LaunchDesc from XMLFormat.parse(): <jnlp spec="1.0+" codebase="http://show.docjava.com:80/book/cgij/code/jnlp/" href="http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp"> <information> <title>Java 3D</title> <vendor>DocJava Inc.</vendor> <homepage href="http://www.docjava.com"/> <description>Java 3D library</description> </information> <security> <all-permissions/> </security> <update check="timeout" policy="always"/> <resources> <jar href="http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar" download="eager" main="false"/> <jar href="http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dutils.jar" download="eager" main="false"/> <jar href="http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar" download="eager" main="false"/> <jar href="http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/jogamp-fat.jar" download="eager" main="false"/> </resources> <component-desc/> </jnlp> network: prepareToLaunch: offlineOnly=false network: isUpdated: true basic: not using applet lifecycle basic: not using applet lifecycle basic: Launcher: isInstaller: false, isRelaunch: false, isImport(): false, java.home:C:\Program Files\Java\jre-9.0.1, Running JRE: JREInfo for index 2: platform is: 9 product is: 9.0.1 location is: http://java.sun.com/products/autodl/j2se path is: C:\Program Files\Java\jre-9.0.1\bin\javaw.exe args is: native platform is: Windows, amd64 [ x86_64, 64bit ] JavaFX runtime is: JavaFX 9.0.1 at: null enabled is: true registered is: true system is: false basic: JREInfos basic: JREInfo: 4 entries basic: JREInfo 0: basic: JREInfo for index 0: platform is: 1.8 product is: 1.8.0_152 location is: http://java.sun.com/products/autodl/j2se path is: C:\Program Files\Java\jre1.8.0_152\bin\javaw.exe args is: native platform is: Windows, x86_64 [ x86_64, 64bit ] JavaFX runtime is: JavaFX 1.8.0_152 at: C:\Program Files\Java\jre1.8.0_152\lib\ext\ enabled is: false registered is: true system is: false basic: JREInfo 1: basic: JREInfo for index 1: platform is: 1.7 product is: 1.7.0_05 location is: http://java.sun.com/products/autodl/j2se path is: C:\Program Files\Java\jre7\bin\javaw.exe args is: native platform is: Windows, x86_64 [ x86_64, 64bit ] JavaFX runtime is: null enabled is: false registered is: true system is: false basic: JREInfo 2: basic: JREInfo for index 2: platform is: 9 product is: 9.0.1 location is: http://java.sun.com/products/autodl/j2se path is: C:\Program Files\Java\jre-9.0.1\bin\javaw.exe args is: native platform is: Windows, amd64 [ x86_64, 64bit ] JavaFX runtime is: JavaFX 9.0.1 at: null enabled is: true registered is: true system is: false basic: JREInfo 3: basic: JREInfo for index 3: platform is: 9 product is: 9.0.1 location is: http://java.sun.com/products/autodl/j2se path is: C:\Program Files\Java\jre-9.0.1\bin\javaw.exe args is: native platform is: Windows, amd64 [ x86_64, 64bit ] JavaFX runtime is: JavaFX 9.0.1 at: null enabled is: true registered is: true system is: true cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@a0fe6498: 2 cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@a0fe6498: 3 network: Downloaded extension: http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp codebase: http://show.docjava.com:80/book/cgij/code/jnlp/ ld parentCodebase: http://show.docjava.com:80/book/cgij/code/jnlp/ file: C:\Users\Moo.lyon-HP\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\9\67880409-22434884 basic: XMLParser with _source: <jnlp spec="1.0+" codebase="http://show.docjava.com:80/book/cgij/code/jnlp/" > <information> <title>Java 3D</title> <vendor>DocJava Inc.</vendor> <homepage href="http://www.docjava.com"/> <description>Java 3D library</description> </information> <security> <all-permissions/> </security> <resources os="Windows"> <jar href="libs/jogl/j3dcore.jar" download="eager"/> <jar href="libs/jogl/j3dutils.jar" download="eager"/> <jar href="libs/jogl/vecmath.jar" download="eager"/> <jar href="libs/jogl/jogamp-fat.jar" download="eager"/> </resources> <resources os="Mac"> <jar href="libs/jogl/j3dcore.jar" download="eager"/> <jar href="libs/jogl/j3dutils.jar" download="eager"/> <jar href="libs/jogl/vecmath.jar" download="eager"/> <jar href="libs/jogl/jogamp-fat.jar" download="eager"/> </resources> <resources os="Linux" arch="i386"> <nativelib href = "libs/linux/jogl-natives-linux-i586.jar" /> </resources> <resources os="Linux" arch="x86"> <nativelib href = "libs/linux/jogl-natives-linux-i586.jar" /> </resources> <resources os="Linux" arch="amd64"> <nativelib href = "libs/linux/jogl-natives-linux-amd64.jar" /> </resources> <resources os="Linux" arch="x86_64"> <nativelib href = "libs/linux/jogl-natives-linux-amd64.jar" /> </resources> <component-desc /> </jnlp> temp: returning LaunchDesc from XMLFormat.parse(): <jnlp spec="1.0+" codebase="http://show.docjava.com:80/book/cgij/code/jnlp/" href="http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp"> <information> <title>Java 3D</title> <vendor>DocJava Inc.</vendor> <homepage href="http://www.docjava.com"/> <description>Java 3D library</description> </information> <security> <all-permissions/> </security> <update check="timeout" policy="always"/> <resources> <jar href="http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar" download="eager" main="false"/> <jar href="http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dutils.jar" download="eager" main="false"/> <jar href="http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar" download="eager" main="false"/> <jar href="http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/jogamp-fat.jar" download="eager" main="false"/> </resources> <component-desc/> </jnlp> basic: LaunchDesc.selectJRE( returning selected jre: JREInfo for index 2: platform is: 9 product is: 9.0.1 location is: http://java.sun.com/products/autodl/j2se path is: C:\Program Files\Java\jre-9.0.1\bin\javaw.exe args is: native platform is: Windows, amd64 [ x86_64, 64bit ] JavaFX runtime is: JavaFX 9.0.1 at: null enabled is: true registered is: true system is: false basic: LaunchDesc location: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jarjnlp basic: Offline mode: false IsInCache: false forceUpdate: true needUpdate: true IsInstaller: false network: Total size to download: -1 network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar with proxy=DIRECT network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar with proxy=DIRECT network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dutils.jar with proxy=DIRECT security: Security check for progress jars: allSigned=true network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/jogamp-fat.jar with proxy=DIRECT network: ResponseCode for http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar : 200 network: Encoding for http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar : null network: Server response: (length: 1396868, lastModified: Sun Dec 31 07:59:54 EST 2017, downloadVersion: null, mimeType: application/x-java-archive) network: ResponseCode for http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar : 200 network: Encoding for http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar : null network: Server response: (length: 12065031, lastModified: Sun Dec 31 08:00:42 EST 2017, downloadVersion: null, mimeType: application/x-java-archive) network: ResponseCode for http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dutils.jar : 200 network: Encoding for http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dutils.jar : null network: Server response: (length: 2278939, lastModified: Sun Dec 31 08:00:09 EST 2017, downloadVersion: null, mimeType: application/x-java-archive) network: Downloading resource: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar Content-Length: 12,065,031 Content-Encoding: null network: Downloading resource: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dutils.jar Content-Length: 2,278,939 Content-Encoding: null network: Downloading resource: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar Content-Length: 1,396,868 Content-Encoding: null cache: Clean up the reference queue: http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@36174111: 1 cache: delayedRemoveResource: http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp cache: Clean up the reference queue: http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@a0fe6498: 2 cache: Clean up the reference queue: http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@a0fe6498: 1 cache: delayedRemoveResource: http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp network: ResponseCode for http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/jogamp-fat.jar : 200 network: Encoding for http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/jogamp-fat.jar : null network: Server response: (length: 11916910, lastModified: Sun Dec 31 08:00:21 EST 2017, downloadVersion: null, mimeType: application/x-java-archive) network: Downloading resource: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/jogamp-fat.jar Content-Length: 11,916,910 Content-Encoding: null network: Wrote URL http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar to File C:\Users\MOO~1.LYO\AppData\Local\Temp\jar_cache6348567518381961998.tmp security: Blacklist revocation check is enabled security: blacklist: created: NEED_LOAD, lastModified: 1514822883611 security: blacklist: check contains NjcfJDikO5d8yHuN8THWbue/O3e0ynF3Fba0tu568B4=, state now NEED_LOAD security: blacklist: loadCache security: blacklist: not found in cache security: Trusted libraries list check is enabled security: Trusted libraries list file not found security: blacklist: check contains NjcfJDikO5d8yHuN8THWbue/O3e0ynF3Fba0tu568B4=, state now IN_MEMORY security: blacklist: not found in cache network: Disconnect connection to http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar network: Downloaded http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar: C:\Users\MOO~1.LYO\AppData\Local\Temp\jar_cache6348567518381961998.tmp cache: Adding MemoryCache entry: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@f84b3acf: 1 network: Download Progress: jarsDone: 1 network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar with proxy=DIRECT network: Connecting http://show.docjava.com:80/consulti/docjava.jpe with proxy=DIRECT network: ResponseCode for http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar : 200 network: Encoding for http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar : null network: Server response: (length: 29084, lastModified: Mon Jan 01 09:56:41 EST 2018, downloadVersion: null, mimeType: application/x-java-archive) network: Downloading resource: http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar Content-Length: 29,084 Content-Encoding: null network: Wrote URL http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar to File C:\Users\MOO~1.LYO\AppData\Local\Temp\jar_cache1897523655245227213.tmp security: blacklist: check contains wDbamlaoTGxBGu11hfK/q27lh3OtJ2NfXvYzh2OS8vI=, state now IN_MEMORY security: blacklist: not found in cache security: Trusted libraries list file not found network: ResponseCode for http://show.docjava.com:80/consulti/docjava.jpe : 200 network: Encoding for http://show.docjava.com:80/consulti/docjava.jpe : null network: Server response: (length: 7688, lastModified: Thu Mar 14 11:15:08 EDT 2013, downloadVersion: null, mimeType: image/jpeg) network: Downloading resource: http://show.docjava.com:80/consulti/docjava.jpe Content-Length: 7,688 Content-Encoding: null network: Wrote URL http://show.docjava.com:80/consulti/docjava.jpe to File C:\Users\MOO~1.LYO\AppData\Local\Temp\tmp_cache4090633408823775834.tmp network: Disconnect connection to http://show.docjava.com:80/consulti/docjava.jpe network: Downloaded http://show.docjava.com:80/consulti/docjava.jpe: C:\Users\MOO~1.LYO\AppData\Local\Temp\tmp_cache4090633408823775834.tmp cache: Adding MemoryCache entry: http://show.docjava.com:80/consulti/docjava.jpe cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@9155d704: 1 security: blacklist: check contains wDbamlaoTGxBGu11hfK/q27lh3OtJ2NfXvYzh2OS8vI=, state now IN_MEMORY security: blacklist: not found in cache network: Disconnect connection to http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar network: Downloaded http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar: C:\Users\MOO~1.LYO\AppData\Local\Temp\jar_cache1897523655245227213.tmp cache: Adding MemoryCache entry: http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@63135c12: 1 network: Download Progress: jarsDone: 2 network: Wrote URL http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/jogamp-fat.jar to File C:\Users\MOO~1.LYO\AppData\Local\Temp\jar_cache4528136161620389099.tmp network: Wrote URL http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dutils.jar to File C:\Users\MOO~1.LYO\AppData\Local\Temp\jar_cache7866851918921029235.tmp security: blacklist: check contains Az41uMbQkUa8R62heNgetiqCgYdzdjQFR2q+mn5X2bU=, state now IN_MEMORY security: blacklist: not found in cache security: Trusted libraries list file not found security: blacklist: check contains 8x2MoNL5cRsWbRAhlbxL2svujQS8eyjh0dqMgOegIB4=, state now IN_MEMORY security: blacklist: not found in cache security: Trusted libraries list file not found security: blacklist: check contains Az41uMbQkUa8R62heNgetiqCgYdzdjQFR2q+mn5X2bU=, state now IN_MEMORY security: blacklist: not found in cache network: Disconnect connection to http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dutils.jar network: Downloaded http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dutils.jar: C:\Users\MOO~1.LYO\AppData\Local\Temp\jar_cache7866851918921029235.tmp cache: Adding MemoryCache entry: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dutils.jar cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@b8dcd43b: 1 network: Download Progress: jarsDone: 3 network: Wrote URL http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar to File C:\Users\MOO~1.LYO\AppData\Local\Temp\jar_cache10606523027920016222.tmp security: blacklist: check contains eeHvjwgSeypJoq0LHFyPkwOwCCZejC2peRIF4dcqkOk=, state now IN_MEMORY security: blacklist: not found in cache security: Trusted libraries list file not found security: blacklist: check contains 8x2MoNL5cRsWbRAhlbxL2svujQS8eyjh0dqMgOegIB4=, state now IN_MEMORY security: blacklist: not found in cache network: Disconnect connection to http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/jogamp-fat.jar network: Downloaded http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/jogamp-fat.jar: C:\Users\MOO~1.LYO\AppData\Local\Temp\jar_cache4528136161620389099.tmp cache: Adding MemoryCache entry: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/jogamp-fat.jar cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@c823e6b3: 1 network: Download Progress: jarsDone: 4 security: blacklist: check contains eeHvjwgSeypJoq0LHFyPkwOwCCZejC2peRIF4dcqkOk=, state now IN_MEMORY security: blacklist: not found in cache network: Disconnect connection to http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar network: Downloaded http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar: C:\Users\MOO~1.LYO\AppData\Local\Temp\jar_cache10606523027920016222.tmp cache: Adding MemoryCache entry: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@42dfbfd1: 1 network: Download Progress: jarsDone: 5 network: Downloaded http://show.docjava.com:80/consulti/docjava.jpe security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar security: Istrusted: null false security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar security: Loading Deployment certificates from C:\Users\Moo.lyon-HP\AppData\Roaming\Sun\Java\Deployment\security\trusted.certs security: Loaded Deployment certificates from C:\Users\Moo.lyon-HP\AppData\Roaming\Sun\Java\Deployment\security\trusted.certs security: Loading certificates from Deployment session certificate store security: Loaded certificates from Deployment session certificate store security: Loading certificates from Deployment session certificate store security: Loaded certificates from Deployment session certificate store security: Loading certificates from Deployment session certificate store security: Loaded certificates from Deployment session certificate store security: Loading certificates from Deployment session certificate store security: Loaded certificates from Deployment session certificate store security: Loading certificates from Internet Explorer TrustedPublisher certificate store security: Loaded certificates from Internet Explorer TrustedPublisher certificate store security: Loading certificates from Internet Explorer DISALLOWED certificate store security: Loaded certificates from Internet Explorer DISALLOWED certificate store security: Validate the certificate chain using CertPath API security: The certificate has expired, need to check timestamping info security: Timestamping info is available security: The certificate has expired, and is timestamped in valid period security: Start checking TSA certificate path security: Loading certificates from Internet Explorer ROOT certificate store security: Loaded certificates from Internet Explorer ROOT certificate store security: Even though certificate has expired, it is timestamped in valid period and has valid TSA security: Loaded blacklisted.certs file: C:\Users\Moo.lyon-HP\AppData\Roaming\Sun\Java\Deployment\security\blacklisted.certs security: SHA-256Certificate finger print: 4F0BBBA77DB43C72142ADBC41F5DED702E2E61512411A7F3DF88FF203880CE73 security: Checking if certificate is in Internet Explorer DISALLOWED certificate store security: SHA-256Certificate finger print: 5E6D2F88F617DC8B809AEE712445A41B3CDE26AF874A221A9DC98EA1DC68E3D5 security: Checking if certificate is in Internet Explorer DISALLOWED certificate store security: SHA-256Certificate finger print: 52F0E1C4E58EC629291B60317F074671B85D7EA80D5B07273463534B32B40234 security: Checking if certificate is in Internet Explorer DISALLOWED certificate store security: SHA-256Certificate finger print: 52F0E1C4E58EC629291B60317F074671B85D7EA80D5B07273463534B32B40234 security: Checking if certificate is in Internet Explorer DISALLOWED certificate store security: The OCSP support is enabled security: The CRL support is enabled network: Connecting http://ocsp.comodoca.com/ with proxy=DIRECT security: OCSP Response: GOOD network: Connecting http://ocsp.comodoca.com/ with proxy=DIRECT security: OCSP Response: GOOD security: Certificate validation succeeded using OCSP/CRL security: Saving certificates in Deployment session certificate store security: Saved certificates in Deployment session certificate store security: Checking if certificate is in Internet Explorer TrustedPublisher certificate store security: Verified non-main jar: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar security: User has granted the privileges to the code for this session only security: Saving certificates in Deployment session certificate store security: Saved certificates in Deployment session certificate store security: SHA-256Certificate finger print: 4F0BBBA77DB43C72142ADBC41F5DED702E2E61512411A7F3DF88FF203880CE73 security: Decision time stored for ai: Appinfo: type = 1 title = DocJava vendor = DocJava, Inc. from = http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jarjnlp security = 2 lapURL = http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jarjnlp appArgs = <jnlp spec="1.0+" codebase="http://show.docjava.com:80/book/cgij/code/jnlp/" > <information> <title>j3d.JOGLQuad</title> <vendor>DocJava, Inc.</vendor> <homepage href="http://www.docjava.com"/> <icon href="http://show.docjava.com:80/consulti/docjava.jpe"/> <offline-allowed /> </information> <security> <all-permissions /> </security> <resources> <j2se version="1.8+"/> <extension name="Java3D" href="jogl.jnlp"> </extension> <jar href="joglquad.jar" /> </resources> <application-desc main-class="j3d.JOGLQuad" /> </jnlp> security: Mark trusted: null cache: Cancel delay cleanup: URL: http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp | C:\Users\Moo.lyon-HP\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\9\67880409-22434884.idx security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar security: Istrusted: http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp false security: Mark trusted: http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp basic: passing security checks; secureArgs:true, allSigned:false basic: trusted app: true, -secure=false basic: JREMatcher: JREDesc: JREDesc[version 1.8+, versionType=1, secure=false, heap=-1--1, args=null, href=null, null, null] JREInfo: JREInfo for index 2: platform is: 9 product is: 9.0.1 location is: http://java.sun.com/products/autodl/j2se path is: C:\Program Files\Java\jre-9.0.1\bin\javaw.exe args is: native platform is: Windows, amd64 [ x86_64, 64bit ] JavaFX runtime is: JavaFX 9.0.1 at: null enabled is: true registered is: true system is: false Init Heap: -1 Max Heap: 67108864 Satisfying: true, true SatisfyingVersion: true SatisfyingJVMArgs: true, true SatisfyingSecure: true Selected JVMParam: [JVMParameters: isSecure: true, args:] Running JVMParam: [JVMParameters: isSecure: true, args:] basic: continuing launch in this VM security: JUT Record: javaws application http://show.docjava.com:80/book/cgij/code/jnlp/: sourceURL=http://www.docjava.com/book/cgij/code/jnlp/joglquad.jnlp app_model=eJx9U81u00AQnjZpk9IfUCsuVKCCikAIdpEqAYJT1EbIkUtDU85oa28TB8e73R2nDodKvAQSB96A9+DOM3DlDZBg1nHa0FLb0tq7/ma+75sZf/sFc9bAeqAGzKYJC6WO1YgZecQaWu+qUMYwvmZm4ZoP9YCODoWVCCt+XwwFTyTyd/v+Kx8WQ2kDE2mMVIKwOv4ci6TLO2iipEuQVZmhTCwB9qVVqQmkRbg5RqYYxbxhjBj5kUUCL/WFOYMdwylUiD9WgXAEbj/jw8JARMl2LGwOmKUgK4PURDhy2hEe+eSMkzM+dsbJGZ842+xMYYlwDiOMZZGoiiNNCe6VJjggDAXOD2USKpNHZprqueQcMSoNo9J8vv/82a3fP00Fah7Ue8L2tinYg6pWBsmCSLGnnIwJ81F0rqKnLBbvdW0UqkDFxb5CUgrKP3RRj9oIa7anTlioglwBaX/54imVmB8q9YEH3ajPXQd5P4k1R7hxEY3EiKh17mItP3V9YWd9yT79uP3lu/hagRlyYKOPMtNuOk6qbqWgJyWjtNm82P7z4Zq93NxqIgZyUlT3rE18us0Cwp3/2uqrbszcm0MtumVJZwjzLXKztZPlmZb/0fygTHPrfApL1daG0thie5Xgu1cKPk5FyGjgpzXTjTRKWyFr7b323xLi1MDDMq3TA12IhVWAzMBK3kv3N7Jmkg6mPxLJ9Ybvv28393e9Tsfbe9O5TLtRRut+g+mMTv86wmKj3fa97cYBpURY3lGBa8HjDS8J2F+VLWC/ basic: not using applet lifecycle basic: Main-class: j3d.JOGLQuad network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dcore.jar with proxy=DIRECT network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/j3dutils.jar with proxy=DIRECT network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar with proxy=DIRECT network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/jogamp-fat.jar with proxy=DIRECT network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar with proxy=DIRECT security: Grant connect perm for http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar : java.security.Permissions@5ecb546c ( ("java.net.URLPermission" "http://show.docjava.com:80/-" "*:*") ("java.net.URLPermission" "http://show.docjava.com:80" "*:*") ) security: JAVAWS AppPolicy Permission requested for: http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://show.docjava.com:80/book/cgij/code/jnlp/joglquad.jar security: Istrusted: null true security: Grant connect perm for http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar : java.security.Permissions@2e606e33 ( ("java.net.URLPermission" "http://show.docjava.com:80/-" "*:*") ("java.net.URLPermission" "http://show.docjava.com:80" "*:*") ) security: JAVAWS AppPolicy Permission requested for: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar security: Missing Application-Library-Allowable-Codebase manifest attribute for: http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath.jar security: Istrusted: http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp true network: Connecting http://show.docjava.com:80/book/cgij/code/jnlp/libs/jogl/vecmath-natives-windows-amd64.jar with proxy=DIRECT JNLPClassLoader: Finding library jawt.dll network: JNLPClassLoader: Native library jawt not found java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.executeApplication(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.executeMainClass(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(WindowsAWTWGLGraphicsConfigurationFactory.java:171) at com.jogamp.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(GraphicsConfigurationFactory.java:424) at com.jogamp.opengl.awt.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:1560) at com.jogamp.opengl.awt.GLCanvas.addNotify(GLCanvas.java:611) at java.desktop/java.awt.Container.addNotify(Unknown Source) at java.desktop/java.awt.Window.addNotify(Unknown Source) at java.desktop/java.awt.Frame.addNotify(Unknown Source) at java.desktop/java.awt.Window.show(Unknown Source) at java.desktop/java.awt.Component.show(Unknown Source) at java.desktop/java.awt.Component.setVisible(Unknown Source) at java.desktop/java.awt.Window.setVisible(Unknown Source) at j3d.JOGLQuad.main(JOGLQuad.java:96) ... 9 more #### Java Web Start Error: #### -1 java.lang.ArrayIndexOutOfBoundsException: -1 at jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(WindowsAWTWGLGraphicsConfigurationFactory.java:171) at com.jogamp.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(GraphicsConfigurationFactory.java:424) at com.jogamp.opengl.awt.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:1560) at com.jogamp.opengl.awt.GLCanvas.addNotify(GLCanvas.java:611) at java.desktop/java.awt.Container.addNotify(Unknown Source) at java.desktop/java.awt.Window.addNotify(Unknown Source) at java.desktop/java.awt.Frame.addNotify(Unknown Source) at java.desktop/java.awt.Window.show(Unknown Source) at java.desktop/java.awt.Component.show(Unknown Source) at java.desktop/java.awt.Component.setVisible(Unknown Source) at java.desktop/java.awt.Window.setVisible(Unknown Source) at j3d.JOGLQuad.main(JOGLQuad.java:96) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.executeApplication(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.executeMainClass(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) |
Administrator
|
I had the same stack trace under Windows: https://jogamp.org/bugzilla/show_bug.cgi?id=1317#c6
My next comment in the thread above helped me to fix it but it doesn't work in Java Webstart. jawt is in Java itself. If it isn't, it can't work.
Julien Gouesse | Personal blog | Website
|
Great find!
I see: https://bugs.openjdk.java.net/browse/JDK-8172986 as a webstart work-around. Allow --add-opens option for JNLP signed all permission apps Hopes dashed when I saw: The new option '--add-opens' is not handled in com.sun.deploy.config.Config, leading to run-time failure when reflective applications (using XStream, Hibernate, ...) are run https://bugs.java.com/view_bug.do?bug_id=8173166 <j2se version="1.8+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="64m" max-heap-size="384m" java-vm-args="-ea --add-modules=java.se.ee --add-opens=java.base/java.util=ALL-UNNAMED"/> I never used add-opens, before...hmm. <j2se version="1.8+" initial-heap-size="64m" max-heap-size="384m" java-vm-args="-ea --add-opens=java.base/java.util=ALL-UNNAMED" /> On a mac, I get; CacheEntry[http://show.docjava.com:80/book/cgij/code/jnlp/jogl.jnlp]: updateAvailable=true,lastModified=Sun Dec 31 08:40:29 EST 2017,length=1420 Java Web Start 12.0.1.0 Using JRE version 9.0.1+11 Java HotSpot(TM) 64-Bit Server VM JRE expiration date: 2/16/18, 12:00 AM User home directory = /Users/lyon ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message m: print memory usage o: trigger logging p: reload proxy configuration q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack 0-5: set trace level to <n> ---------------------------------------------------- Bug 1004: Caught: class com.jogamp.nativewindow.awt.AppContextInfo cannot access class sun.awt.AppContext (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @39e1d8f9 java.lang.IllegalAccessException: class com.jogamp.nativewindow.awt.AppContextInfo cannot access class sun.awt.AppContext (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @39e1d8f9 at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Unknown Source) at java.base/java.lang.reflect.AccessibleObject.checkAccess(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at com.jogamp.nativewindow.awt.AppContextInfo.fetchAppContext(AppContextInfo.java:186) at com.jogamp.nativewindow.awt.AppContextInfo.update(AppContextInfo.java:130) at com.jogamp.nativewindow.awt.AppContextInfo.<init>(AppContextInfo.java:45) at com.jogamp.nativewindow.awt.JAWTWindow.<init>(JAWTWindow.java:128) at jogamp.nativewindow.jawt.macosx.MacOSXJAWTWindow.<init>(MacOSXJAWTWindow.java:79) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source) at jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:105) at jogamp.nativewindow.NativeWindowFactoryImpl.getNativeWindowImpl(NativeWindowFactoryImpl.java:66) at com.jogamp.nativewindow.NativeWindowFactory.getNativeWindow(NativeWindowFactory.java:593) at com.jogamp.opengl.awt.GLCanvas.createJAWTDrawableAndContext(GLCanvas.java:712) at com.jogamp.opengl.awt.GLCanvas.addNotify(GLCanvas.java:623) at java.desktop/java.awt.Container.addNotify(Unknown Source) at java.desktop/java.awt.Window.addNotify(Unknown Source) at java.desktop/java.awt.Frame.addNotify(Unknown Source) at java.desktop/java.awt.Window.show(Unknown Source) at java.desktop/java.awt.Component.show(Unknown Source) at java.desktop/java.awt.Component.setVisible(Unknown Source) at java.desktop/java.awt.Window.setVisible(Unknown Source) at j3d.JOGLQuad.main(JOGLQuad.java:96) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.executeApplication(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.executeMainClass(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at jdk.javaws@9.0.1/com.sun.javaws.Launcher.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Bug 1004: Caught: class com.jogamp.nativewindow.awt.AppContextInfo cannot access class sun.awt.AppContext (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @39e1d8f9 java.lang.IllegalAccessException: class com.jogamp.nativewindow.awt.AppContextInfo cannot access class sun.awt.AppContext (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @39e1d8f9 at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Unknown Source) at java.base/java.lang.reflect.AccessibleObject.checkAccess(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at com.jogamp.nativewindow.awt.AppContextInfo.fetchAppContext(AppContextInfo.java:186) at com.jogamp.nativewindow.awt.AppContextInfo.update(AppContextInfo.java:130) at com.jogamp.nativewindow.awt.AppContextInfo.invokeOnAppContextThread(AppContextInfo.java:102) at com.jogamp.nativewindow.awt.JAWTWindow.attachSurfaceLayer(JAWTWindow.java:491) at jogamp.opengl.macosx.cgl.MacOSXCGLContext$NSOpenGLImpl$AttachGLLayerCmd.run(MacOSXCGLContext.java:764) at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:125) but it runs...so this is feeling a little broken (but hey, its making pictures!). On windows jdk9...with jws, no joy. Here are the DLLS for amd64 (broken out, to be explicit): <resources os="Windows" arch="amd64"> <nativelib href="libs/jogl/natives/windows-amd64/gluegen-rt.dll.jar" download="eager"/> <nativelib href="libs/jogl/natives/windows-amd64/joal.dll.jar" download="eager"/> <nativelib href="libs/jogl/natives/windows-amd64/jocl.dll.jar" download="eager"/> <nativelib href="libs/jogl/natives/windows-amd64/jogl_desktop.dll.jar" download="eager"/> <nativelib href="libs/jogl/natives/windows-amd64/jogl_mobile.dll.jar" download="eager"/> <nativelib href="libs/jogl/natives/windows-amd64/nativewindow_awt.dll.jar" download="eager"/> <nativelib href="libs/jogl/natives/windows-amd64/nativewindow_win32.dll.jar" download="eager"/> <nativelib href="libs/jogl/natives/windows-amd64/newt.dll.jar" download="eager"/> <nativelib href="libs/jogl/natives/windows-amd64/oculusvr.dll.jar" download="eager"/> <nativelib href="libs/jogl/natives/windows-amd64/soft_oal.dll.jar" download="eager"/> </resources> These DLLs look suspect...do you think they are OK? Thanks! - Doug On 1/2/18 3:57 AM, gouessej [via jogamp] wrote: > I had the same stack trace under Windows: > https://jogamp.org/bugzilla/show_bug.cgi?id=1317#c6 > > My next comment in the thread above helped me to fix it but it doesn't > work in Java Webstart. > > jawt <https://en.wikipedia.org/wiki/Java_AWT_Native_Interface> is in > Java itself. If it isn't, it can't work. > Julien Gouesse | Personal blog <http://gouessej.wordpress.com> | Website > <http://tuer.sourceforge.net> > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038477.html > To unsubscribe from Jogl/Jogamp on Java 9, click here > < > NAML > <http://forum.jogamp.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > |
In reply to this post by gouessej
Happy New YEar, Julien
|
Administrator
|
In reply to this post by douglaslyon
Douglas, according to your stack trace, either there is still something wrong with "--add-opens" or you forgot a part of my suggestion.
You can simply use jogamp-fat.jar and the automated native library loading will extract and load the appropriate native libraries, it would simplify your JNLP file. Happy new year everybody.
Julien Gouesse | Personal blog | Website
|
Free forum by Nabble | Edit this page |