views:

106

answers:

3

Hello All, I am Student and I have developed a project in java using Netbeans 6.1. I need to add 2 third party jar's to it and 2 licence files in a jdk/jre/bin location.

Now i want it to distribute it for the trials.I have no experience of creating exe of a java project.Can anybody please explain me how to create it? I have a tried some commands before posting question here .... but I not able to do it.....

Can anybody please help me.....

+1  A: 

You can use JSmooth for creating Windows .exe files (user manual is here). Or you can make your deployed JAR file executable by adding some manifest options (tutorial for Eclipse).

AndiDog
A: 

You can also use Tanuki's Java Service Wrapper

Jorn
A: 

I need to add 2 third party jar's to it and 2 licence files in a jdk/jre/bin location.

You should not be adding anything to that directory. Third party JARs and license files that need to go along with your executable JAR belong with your project.

If your .java files are in a /src directory, create a /lib directory and put the 3rd party JARs and license files into it. Add them to your NetBeans CLASSPATH so your code will compile and run.

When you're ready to create your executable JAR, make sure you create a META-INF/manifest.mf file that points to your main class and adds these JARs to its classpath.

If that works, you'll have one more step to deploy. You'll have to ZIP up your executable JAR and the 3rd party libraries so your clients can unpack everything they need to run.

duffymo
thanks...I will work it out
PPB