tags:

views:

155

answers:

3

Hi using jar bundler of Mac 10.5.7. I can set any file as classpath. I have a folder which contains some database files. In my java program I am using this path. So how to set my folder in "class path and file section" in jarbundler.

http://developer.apple.com/Mac/library/documentation/Java/Conceptual/Jar%5FBundler/Packaging/Packaging.html

Thanks Sunil Kumar Sahoo

A: 

In noway we can add a folder as an class path using jar bundler. We can only work on files using jarbundler. means we can set classpath for files that may or maynot be jar file. If we zip a folder and using as class path then there is no use of that file in future

Thanks Sunil Kumar Sahoo

Deepak
A: 

Hi Jar Bundler can create .APp file by taking some library jar files but not a directory.

Deepak
A: 

This question belong to serverfault. If I am not wrong then your problem is to give a single application to the end user which will run simply by double clicking on it. But the problem is that ur application refers to some path. so better compress those database file embed those things in your jar and then write the logic to extract the file and store the data in the path that you actually want. I would be preferred if u do the same for home directory means the data must be saved in home directory.

The above (extraction of zip file) should run for once only.

Thanks Deepak

Deepak
Thanks Deepak, your response really helped me alot. I achieved my result
Deepak