Compile java app into one app file

Hi,

I have a java executable (jsut runs in a command shell). I want to give it to a friend to run, but it has many external dependencies. Is there some way to compile it such that all the dependencies are stored inside some output executable file I can give to them to run? They obviously won't have all the support libraries I'm using.

Thanks
DJ_AM_JuiceboxAsked:
Who is Participating?
 
cmalakarConnect With a Mentor Commented:
Make an executable jar with all your class files, you have written..

and use your jar manifest to put the classpath of other jars  
0
 
Ryan_KemptCommented:
To the best of my knowledge JAR's package all dependencies for proper program execution.

http://java.sun.com/docs/books/tutorial/deployment/jar/
0
 
Ajay-SinghCommented:
This article would be very informative
 
http://www.excelsior-usa.com/articles/java-to-exe.html
0
 
objectsCommented:
0
All Courses

From novice to tech pro — start learning today.