Overclock.net banner

1 - 9 of 9 Posts

·
Registered
Joined
·
366 Posts
Discussion Starter #1
ok well i downloaded a java game and you have to compile it by clicking a .bat<br />
file and itsays javac is not recoggnized as a internet our external command
 

·
Registered
Joined
·
366 Posts
Discussion Starter #2
i have Java Jre and Dk not sdk
 

·
Premium Member
Joined
·
13,844 Posts
javac is a command line command that compiles a .java file into a .class file so it can be run- I doubt the browser's interface can compile files.<br />
<br />
You should have a .java file that you can compile to a .class file and do the command in the CLI- "java program.class"
 

·
Registered
Joined
·
366 Posts
Discussion Starter #4
it not in browser it in desktop
 

·
Premium Member
Joined
·
13,844 Posts
Okay, do you have any .java files or .class files?
 

·
Registered
Joined
·
366 Posts
Discussion Starter #6
yep
 

·
Premium Member
Joined
·
13,844 Posts
Which ones? Change to the directory the files are in.<br />
<br />
For a .java file: go into your command line, type javac fileName.java<br />
<br />
For a .class file: same, type java fileName.class
 

·
Registered
Joined
·
366 Posts
Discussion Starter #8
thanks it worked
 

·
Premium Member
Joined
·
13,844 Posts
<img src="/images/smilies/smile.gif" border="0" alt="" title="Smile" class="inlineimg" /> No problems.
 
1 - 9 of 9 Posts
Top