Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where is a programs JAR file?
#1
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!
#2
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!
My Blog | My Setup | My Videos | Have a wonderful day.
#3
a JAR file is actually compressed folder for holding java source code and other java-related things
#4
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.
#5
Try .java instead
#6
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
#7
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]


Attached Files Thumbnail(s)
   
#8
wtf? those java files are text files ... just tell me how can i compile an aplication so i can give it to someone else
#9
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.
My Blog | My Setup | My Videos | Have a wonderful day.
#10
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.
#11
sry <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile --> i didn't mean to be rude


Possibly Related Threads…
Thread Author Replies Views Last Post
  One of my first object oriented programs WitherSlayer 1 10,001 01-03-2013, 09:44 PM
Last Post: brandonio21

Forum Jump:


Users browsing this thread: 1 Guest(s)