-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Failed to initialize Terasology - Caused by: java.lang.SecurityException: sealing violation: package javax.vecmath is sealed #818
Comments
Interesting. I assume this is using the 'develop' branch? Sealed packages is a java feature that prevents a different jar injecting classes into a package, generally to prevent other code from using package-private features. I have no idea why vecmath uses that feature, but that's another story. We don't try to inject new classes into vecmath, so possible sources of the issue are:
The stacktrace shows it happens when the AssetTypes enum is first loaded, because the AtlasLoader uses Vector2i (which extends Tuple2i from Vecmath). But this doesn't tell a huge amount. However, Tuple2i comes from a new version of vecmath, so possibly you have an old version present as well somehow. I would suggest opening IntelliJ's Project Structure dialog and under Modules->engine check if multiple vecmath versions are present. |
Thank you.
|
Find a recent upgrade of vecmath - 8019eb5, I will try downgrading it back to 1.3.1. |
Sounds good, thanks. |
Not luck. ··· Type 'help' to see a list with available commands. |
Ah, make sure you do a full clean and project rebuild. Noise3D is a recent addition. |
Ok. Apparently, Macs have a Java3D package that partially installs into the JRE, which includes its own version of vecmath that is sealed (the one we use is not sealed). You will need to track down this stray vecmath library and delete it, or uninstall the Java3D package if that is even possible. Seems like all the more reason to stop using vecmath. |
The old version 1.3.1 is likely identical to the one included on macs, so that is why we had not encountered the issue before. |
shakes tiny fist at Mac OS First LWJGL, now vecmath. It seems Apple is of the conviction that Mac users cannot have shiny things not made by Apple :-) Thanks for helping us with the troubleshooting, @nielinjie ! |
Removed /System/Library/Java/Extensions/vecmath.jar |
Much appreciated - added it at https://github.com/MovingBlocks/Terasology/wiki/Dev-Setup#common-issues :-) That whole page needs a bit of an overhaul, but at least not we won't forget! |
Nielinjie is absolutely correct. Macbook 13 2012 and deleting vecmath.jar was the answer. Thank you! |
I am really new to Terasology, and I had failed to the first running.
I just cloned this git repository, and run : grandlw idea. And then, run main class in idea IDE.
Any advise?
Full stack is here. Thanks a lot.
The text was updated successfully, but these errors were encountered: