Jump to content

Compiling .Java Files to .Jar Files?


Recommended Posts

Posted

 

i donot understand with this.... i remember i use to use a java program and had to make a keytool or somthing that was how i did it back in the day

does anyone know of the java program that makes you make a key, or at least any cmd.exe command lines that i can use to compile them into .class files then compile the class files in a .jar file?

Posted

i donot understand with this.... i remember i use to use a java program and had to make a keytool or somthing that was how i did it back in the day

does anyone know of the java program that makes you make a key, or at least any cmd.exe command lines that i can use to compile them into .class files then compile the class files in a .jar file?

In cmd prompt cd into the directory of your .java files. Then type in "javac *.java" this will compile all files ending in .java.

Posted (edited)

Your system doesn't have your JDK properly registered.

 

You can fix it by appending the path to your 'Path' environment variable for your system

this can be done with the command:
 

 

set Path=%Path%;{YOUR_JDK_PATH_HERE}

 

 

example (don't use this path, use your own):

 

set Path=%Path%;C:\Program Files\Java\jdk1.7.0_02\bin

 

 

this should allow your system to recognize the javac command

Edited by FrostBug
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...