Exception AbstractGraphicsConfiguration Java3D on MacOS Mojave

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception AbstractGraphicsConfiguration Java3D on MacOS Mojave

alex98
Hi, I'm having problems trying to use 3d java in my project.

I have version 10.14.4 of mojave macos.
I have Java SE 12.0.1 installed
I have Java3D 1.7.0-pre1

I am using apache netbeans 11.0 final version


I've been trying to solve the problem for hours, but I have not been successful.

Exception in thread "main" java.lang.NoClassDefFoundError: com/jogamp/nativewindow/AbstractGraphicsConfiguration
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Class.java:332)
        at org.jogamp.java3d.Pipeline$PipelineCreator.run(Pipeline.java:81)
        at org.jogamp.java3d.Pipeline$PipelineCreator.run(Pipeline.java:68)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:310)
        at org.jogamp.java3d.Pipeline.createPipeline(Pipeline.java:100)
        at org.jogamp.java3d.MasterControl.loadLibraries(MasterControl.java:893)
        at org.jogamp.java3d.VirtualUniverse.<clinit>(VirtualUniverse.java:267)
        at modelos3d.Panel3D.addUniverso(Panel3D.java:26)
        at modelos3d.Panel3D.<init>(Panel3D.java:20)
        at universobasico.PanelCubo.<init>(PanelCubo.java:10)
        at universobasico.UniversoBasico.main(UniversoBasico.java:9)
Caused by: java.lang.ClassNotFoundException: com.jogamp.nativewindow.AbstractGraphicsConfiguration
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 12 more
/Users/jarv/Library/Caches/NetBeans/11.0/executor-snippets/run.xml:111: The following error occurred while executing this line:
/Users/jarv/Library/Caches/NetBeans/11.0/executor-snippets/run.xml:68: Java returned: 1
BUILD FAILED (total time: 4 seconds)
Reply | Threaded
Open this post in threaded view
|

Re: Exception AbstractGraphicsConfiguration Java3D on MacOS Mojave

gouessej
Administrator
Hello

Have you strictly followed my instructions?

http://gouessej.wordpress.com/2012/08/01/java-3d-est-de-retour-java-3d-is-back/
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Exception AbstractGraphicsConfiguration Java3D on MacOS Mojave

alex98
He realizado los pasos indicados y ahora me aparece el siguiente error:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javax.media.j3d.JoglPipeline (file:/Library/Java/Extensions/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
2019-05-14 17:22:54.271 java[1067:22483] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
        0   AppKit                              0x00007fff374a6e63 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 378
        1   AppKit                              0x00007fff374a4253 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
        2   AppKit                              0x00007fff374a3c86 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
        3   libnativewindow_macosx.jnilib       0x0000000111f6f3fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
        4   ???                                 0x000000011a9ca910 0x0 + 4741441808
)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000011214ab80, pid=1067, tid=775
#
# JRE version: Java(TM) SE Runtime Environment (12.0.1+12) (build 12.0.1+12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (12.0.1+12, mixed mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C  [libosxapp.dylib+0x2b80]  -[NSApplicationAWT sendEvent:]+0x176
#
# 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/jarv/Documents/Codigos/Graficacion/Proyectos/Unidad-3/01UniversoBasico/hs_err_pid1067.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.
#
/Users/jarv/Library/Caches/NetBeans/11.0/executor-snippets/run.xml:111: The following error occurred while executing this line:
/Users/jarv/Library/Caches/NetBeans/11.0/executor-snippets/run.xml:68: Java returned: 134
BUILD FAILED (total time: 3 seconds)
Reply | Threaded
Open this post in threaded view
|

Re: Exception AbstractGraphicsConfiguration Java3D on MacOS Mojave

gouessej
Administrator
You're not using Java3D 1.7 as I still see "javax.media.j3d.JoglPipeline" which has been moved into another package in Java3D 1.7. Moreover, you're still using Java3D installed as an extension which is exactly what I advise NOT to do in my instructions.

The first warning no longer appears with the latest nightly build of JOGL.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Exception AbstractGraphicsConfiguration Java3D on MacOS Mojave

alex98
Hello, thank you very much for your enormous help. I have reinstalled everything being more careful, now install java 3d 1.6. But I'm using Java 1.7 because I did not find version 1.6 for macos, thanks to you I managed to compile and execute my project.

Just throw me the following message (is it because I do not have java 1.6?)

2019-05-15 09:44:04.973 java[1116:23532] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
        0   AppKit                              0x00007fff35ae5e63 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 378
        1   AppKit                              0x00007fff35ae3253 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
        2   AppKit                              0x00007fff35ae2c86 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
        3   libnativewindow_macosx.jnilib       0x00000001174413fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
        4   ???                                 0x00000001040b7758 0x0 + 4362827608
)

Does Java3D work with Java SE Development Kit 12.0.1?

PD, everything is inside the jre / lib / ext java 1.7 folder.

PD, forgive my English.
Reply | Threaded
Open this post in threaded view
|

Re: Exception AbstractGraphicsConfiguration Java3D on MacOS Mojave

gouessej
Administrator
You mustn't copy the JARs into jre/lib/ext, it's a typical Java beginner's mistake. If you still get a crash with Java3D under OS X Mojave, please use Java 1.8. I remember someone else having the same problem.

Please strictly follow my instructions:
http://gouessej.wordpress.com/2012/08/01/java-3d-est-de-retour-java-3d-is-back/
Julien Gouesse | Personal blog | Website