Where is a programs JAR file? - Printable Version +- BP Forums (https://bpforums.info) +-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55) +--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56) +---- Forum: Java (https://bpforums.info/forumdisplay.php?fid=19) +---- Thread: Where is a programs JAR file? (/showthread.php?tid=731) |
Where is a programs JAR file? - Derek275 - 01-17-2013 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! Re: Where is a programs JAR file? - brandonio21 - 01-17-2013 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! Hopefully this answers your question! Re: Where is a programs JAR file? - WitherSlayer - 04-23-2013 a JAR file is actually compressed folder for holding java source code and other java-related things Re: Where is a programs JAR file? - andrei.xd23 - 05-07-2013 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. Re: Where is a programs JAR file? - WitherSlayer - 05-07-2013 Try .java instead Re: Where is a programs JAR file? - andrei.xd23 - 05-07-2013 how can i export it as .java? i can only export it as .jar .javadoc and java runnable jar file and i tried all of them..still nothing Re: Where is a programs JAR file? - WitherSlayer - 05-08-2013 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] Re: Where is a programs JAR file? - andrei.xd23 - 05-08-2013 wtf? those java files are text files ... just tell me how can i compile an aplication so i can give it to someone else Re: Where is a programs JAR file? - brandonio21 - 05-08-2013 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 files! - WitherSlayer - 05-08-2013 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. Re: Where is a programs JAR file? - andrei.xd23 - 05-08-2013 sry <!-- s --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!-- s --> i didn't mean to be rude |