I am currently working on a note-taking application, and thought since my dad uses stuff like this alot with his work, I could pass it to him so he could use it. The problem is, I don't want him to have to download Eclipse, open the main class, and compile it to run. So where can I find the main .jar file so he can just click on it and pull it up? Thanks to any and all help!
You can actually export a program's JAR file in Eclipse itself. Just right click on a project in the Package Explorer, Press Export, and choose Java>JAR file. You can then choose a path to export to and the JAR file will save!
Hello guys, i tried to export and make it a .jar
It worked but when i open it nothing happens...
It's just a simple program which asks you for the first number and the second one which you want to sum...
I just want to know for further experiments.
Yes, I've found that problem too. Dunno. If you go into your workspace folder you can find that .java files that eclipse stores them in.[attachment=0]<!-- ia0 -->Snap 0001.png<!-- ia0 -->[/attachment]
andrei.xd23 Wrote:wtf? those java files are text files ... just tell me how can i compile an aplication so i can give it to someone else
Calm down. No one likes someone who is overly rude or overly demanding. In order to run a .jar file, you need to start it from the Windows command prompt using the jar command. For example,
Code:
java -jar helloworld.jar
Where helloworld.jar is the name of your JAR file.
You can compile .java file through cmd prompt, but Runnable .JAR files would probably work better. Runnable .JAR files can be compiled but actually stores files like normal .JAR files do. Try using 7-Zip if you want to view them.