![]() ![]() The bundler will then copy them all to the appropriate place inside the bundle (only JAR files that are directly under Contents/Java will go onto the classpath when the bundle is run, JARs in subdirectories are ignored). Yes, you should mention all the required libraries in classpath elements. Java -Xms256m -XX:PermSize=128m -jar $APP_ROOT/Contents/Java/LawSuiteSE.jar -installerĭo I need to copy these libs within the appbundle-ant-task Is there any constant pointing to the current app-folder, something like "$APP_ROOT" so that the script could look like: #!/bin/bash Now it works fine, but how can I use a relative path to the jar-executable? Something like "./Java/LawSuiteSE.jar" doesn't work and gives me the same error as before. Then I also replaced the value for the key CFBundleExecutable in ist from JavaAppLauncher to start.sh. Java -Xms256m -XX:PermSize=128m -jar /Users/salocinx/Workspace/LawSuiteSE.app/Contents/Java/LawSuiteSE.jar -installer app package on the MacBook Pro, but the same error message.ĮDIT: I meanwhile replaced the JavaAppLauncher in Contents/MacOS with a small run script (start.sh): #!/bin/bash I also tried to build the application and the corresponding. Do I need to copy these libs within the appbundle-ant-task or is it okay to copy them subsequently by hand? The application just runs fine when typing the following to the terminal: java -jar /Applications/Servitus.app/Contents/Java/LawSuiteSE.jar -installerįor clarification, here's the final folder structure: Servitus.appīy the way, my application has lots of external dependencies, all located in the "lib" folder which are properly linked by the class-path property within the MANIFEST.MF file of the executable main-jar file "LawSuiteSE.jar". jar file and the execution bits are set for the main-jar and all the jars in the lib-folder. I already checked the permissions for the. ch.: Error: Unable to access jarfile LawSuiteSE.jar ![]() app package to my MacBookPro (OS X 10.7.5), I get the following error in the log. ![]() app package is built correctly (on Windows). The Ant task works fine in Netbeans and the corresponding. I am currently using appbundler and I followed Oracle's guide. I am trying to bundle my Java application to an Mac OS X. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |