Reply – Re: Jogl/Jogamp on Java 9
Your Name
Subject
Message
or Cancel
In Reply To
Re: Jogl/Jogamp on Java 9
— by Douglas Lyon Douglas Lyon
Has anyone tested jogl on java 9 with a mac?
How about Java3d?
I am getting crashing with the simplest of cube examples using java3d..
Thanks!
 - Doug

package j3d.examples.shape.cube;


import com.sun.j3d.utils.geometry.ColorCube;
import com.sun.j3d.utils.universe.SimpleUniverse;

import javax.media.j3d.BranchGroup;
import javax.media.j3d.Canvas3D;
import java.awt.*;


public class StillCube  {


    public StillCube() {

        GraphicsConfiguration config =
                SimpleUniverse.getPreferredConfiguration();

        Canvas3D c3d = new Canvas3D(config);


        // SimpleUniverse is a Convenience Utility class
        SimpleUniverse su = new SimpleUniverse(c3d);

        // This will move the ViewPlatform back a bit so the
        // objects in the scene can be viewed.
        su.getViewingPlatform().setNominalViewingTransform();

        su.addBranchGraph(getBranchGroup());
        Frame f = new Frame();
        f.setLayout(new BorderLayout());
        Panel p = new Panel(new BorderLayout());
        p.add(BorderLayout.CENTER, c3d);
        f.add(p, BorderLayout.CENTER);
        f.setSize(200,200);
        f.setVisible(true);
    } // end of HelloJava3Da (constructor)

    public BranchGroup getBranchGroup() {
        // Create the root of the branch graph
        BranchGroup bg = new BranchGroup();
        bg.addChild(new ColorCube(.25));
        bg.compile();

        return bg;
    } // end of CreateSceneGraph method of HelloJava3Da

    //  The following allows this to be run as an application
    //  as well as an applet

    public static void main(String[] args) {
        StillCube cube = new StillCube();


    }

} // end of class HelloJava3Da

/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/bin/java --illegal-access=permit -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/vecmath.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/j3d/jogamp-java3d/j3dcore.jar:/Users/lyon/current/java/j4p/jars/j3d/jogamp-java3d/j3dutils.jar:/Users/lyon/current/java/j4p/jars/j3d/jogamp-java3d/vecmath.jar:/Users/lyon/current/java/j4p/jars/j3d/jogamp-fat/jogamp-fat.jar:/Users/lyon/current/java/j4p/jars/j3d/jogamp-fat/jogamp-fat-test.jar j3d.examples.shape.cube.StillCube --illegal-access=permit
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javax.media.j3d.JoglPipeline (file:/Users/lyon/current/java/j4p/jars/j3d/jogamp-java3d/j3dcore.jar) to method sun.awt.AppContext.getAppContext()
WARNING: Please consider reporting this to the maintainers of javax.media.j3d.JoglPipeline
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
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000001323fe0cc, pid=10875, tid=775
#
# JRE version: Java(TM) SE Runtime Environment (9.0+11) (build 9.0.1+11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (9.0.1+11, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C  [libosxapp.dylib+0x20cc]  -[NSApplicationAWT sendEvent:]+0x179
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/lyon/current/java/j4p/hs_err_pid10875.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)