Results 1 to 3 of 3
Thread: Jar executable
- 10-09-2011, 05:39 AM #1
Senior Member
- Join Date
- Oct 2011
- Posts
- 106
- Rep Power
- 0
Jar executable
I created an app and created a .jar file with all the needed files. I can double click on it in the destination folder and it will run. I emailed it to a friend and when he tries to run it he gets a java error that says cannot find main class. How do I make an executable or install the .jar file so it can be executed by clicking on a shortcut or by clicking on the .jar file?
- 10-09-2011, 10:45 AM #2
Senior Member
- Join Date
- Jul 2011
- Location
- Melbourne, Victoria, Australia
- Posts
- 155
- Rep Power
- 10
Re: Jar executable
You need to create and executable jar. If you are using eclipse or NetBeans you can select an executable jar when exporting your project. Otherwise read this:Distributing your Application as an Executable JAR file
- 10-09-2011, 12:46 PM #3
Member
- Join Date
- Oct 2011
- Posts
- 13
- Rep Power
- 0
Similar Threads
-
create windows executable using executable jar file
By sarwar1234 in forum New To JavaReplies: 2Last Post: 02-07-2011, 09:29 PM -
executable jar with images
By tascoa in forum EclipseReplies: 3Last Post: 05-05-2009, 01:06 PM -
executable files
By akinpam in forum Advanced JavaReplies: 10Last Post: 01-06-2009, 05:01 AM -
executable
By smooth in forum New To JavaReplies: 4Last Post: 06-14-2008, 06:12 PM -
Executable JAR
By bugger in forum New To JavaReplies: 4Last Post: 12-05-2007, 06:41 PM
Bookmarks