|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Running Jar File in Mac » » » » Post: Running Jar File in Mac |
Print at Dec 20, 2025, 5:41:28 PM |
| Posted by Mitsaki at Sep 13, 2011, 6:42:21 PM |
Running Jar File in MacHello, I have changed the code of Sweethome3d in order to create my own application and I have created an executable jar file. I would like to run it from command line, but for some strange reason it does not. I use this command in terminal java -jar Blender.jar -Djava.ext.dirs=lib:lib/macosx but it gives me this mistake Exception in thread "main" java.lang.SecurityException: sealing violation: package javax.media.j3d is sealed at java.net.URLClassLoader.defineClass(URLClassLoader.java:234) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at com.eteks.sweethome3d.j3d.Component3DManager.setRenderingErrorObserver(Component3DManager.java:104) at com.eteks.sweethome3d.SweetHome3D.addComponent3DRenderingErrorObserver(SweetHome3D.java:491) at com.eteks.sweethome3d.SweetHome3D.init(SweetHome3D.java:383) at com.eteks.sweethome3d.Blender.main(Blender.java:181) What I have also done is change the MANIFEST.MF in order to have my main class as the main class of the program. Is that wrong? Manifest-Version: 1.0 Created-By: 1.5 (Sun Microsystems, Inc) Main-Class: com.eteks.sweethome3d.Blender Could you tell me if you have any idea what I am doing wrong? |
|
|
Current timezone is GMT Dec 20, 2025, 5:41:28 PM |