|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Running Jar File in Mac » » » » Post: Re: Running Jar File in Mac |
Print at Dec 20, 2025, 2:10:06 PM |
| Posted by Puybaret at Sep 15, 2011, 8:19:21 AM |
|
Re: Running Jar File in Mac There's no reason your Jar executable shouldn't work, If you try to build it the same way I used for Sweet Home 3D, meaning: - Use a main class similar to com.eteks.sweethome3d.SweetHome3DBootstrap, where you'll store in applicationClassName variable the name of your own main class, and add to applicationPackages array your own packages if you created some. The class loader used by this special main class extracts all the DLLs and JARs required by the project from the running Jar executable file, and stores them in temporary files referenced during the execution of the application (quickly said it conveniently replaces the java.ext.dirs property). - Build the Jar executable with a Ant task that gathers project class files, resources files, jar libraries and Java 3D DLLs. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 20, 2025, 2:10:06 PM |