Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java3d error on Draw module #1

Open
Strauteka opened this issue Dec 2, 2021 · 1 comment
Open

Java3d error on Draw module #1

Strauteka opened this issue Dec 2, 2021 · 1 comment

Comments

@Strauteka
Copy link
Owner

Java3d error on Draw module
java 17
windows 10

java.lang.IllegalAccessError: class javax.media.j3d.Win32NativeConfigTemplate3D (in unnamed module @0x1a4555f8) cannot access class sun.awt.Win32GraphicsConfig (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x1a4555f8
        at javax.media.j3d.Win32NativeConfigTemplate3D.getBestConfiguration(Win32NativeConfigTemplate3D.java:57)
        at javax.media.j3d.NativePipeline.getBestConfiguration(NativePipeline.java:3296)
        at javax.media.j3d.Renderer.doWork(Renderer.java:495)
        at javax.media.j3d.J3dThread.run(J3dThread.java:256)

Runs on java 11
For development preview please use java 1.8 or java 11. Java3d is Old library and best solution would me migrate to Ardor3D or similar library for java 17.

@zzw-dream
Copy link

no j3dcore-ogl-chk in java.library.path
java 1.8
Windows 10

No error is reported, but execute Java - jar \demo\target\demo-jar-with-dependencies. Jar reported an error. Why!

java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path Exception in thread "main" java.lang.UnsatisfiedLinkError: no j3dcore-d3d in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at javax.media.j3d.NativePipeline$1.run(NativePipeline.java:189) at java.security.AccessController.doPrivileged(Native Method) at javax.media.j3d.NativePipeline.loadLibrary(NativePipeline.java:180) at javax.media.j3d.NativePipeline.loadLibraries(NativePipeline.java:137) at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:948) at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:280) at org.strauteka.jbin.draw3d.Draw3d.<init>(Draw3d.java:79) at org.strauteka.jbin.draw3d.Draw3d.draw(Draw3d.java:468)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants