PDA

View Full Version : save Jar Bundler settings or automate java to .app




svenwillmann
Aug 25, 2008, 03:20 PM
Hi,

I am using Jar Bundler to create a .app from my java application.
Every time I change my java application, I have to reenter all settings in Jar Bundler e.g. Build Information, Classpath and Files, Properties.

Do you know of a way to save the Jar Bundler settings?

Do you know of any way or can you point me to a tutorial to automate the process of java to .app?

Thanks,
Sven



foidulus
Aug 25, 2008, 05:03 PM
Hi,

I am using Jar Bundler to create a .app from my java application.
Every time I change my java application, I have to reenter all settings in Jar Bundler e.g. Build Information, Classpath and Files, Properties.

Do you know of a way to save the Jar Bundler settings?

Do you know of any way or can you point me to a tutorial to automate the process of java to .app?

Thanks,
Sven

There is a much simpler way to do this, creating the jar bundle doesn't do anything all that special, it creates an Info.plist file which points to your jar, and gives you a JavaApplicationStub(which is the same for all Java apps)

The simpler way to do what you are trying to do is to copy the jar into the Application directory when you build the Jar(I think its in YourApp.app/resources, but check the Info.plist to be sure)

Ant works great for this, at work I have ant automatically copy the jar to its final destination whenever I build our apps in Eclipse.

svenwillmann
Aug 28, 2008, 02:53 PM
Works like a charm,

Thank you