Yeah, its easy. But hey, thanks for helping out some noobs.
|
Note: I realize that some people will probably flame me for posting this as it's simple. But honestly, some people don't know how to do this and there is almost always a help thread based off this issue.
I have looked around on these forums for a while and I realize that a few people use "C:\Program Files\Java\jdk1.6.0_20\bin\javac.exe *.java" to compile their classes. Well there is a solution, why not just set an environment variable?
Instead of compiling using that long code you can just use 'javac *.java' which in my opinion is better as it is smaller.
Step 1:
You'll need to find where the java compiler (javac.exe) is located
So it will be somewhere like "C:/Program Files/Java/jdk_version/bin/javac.exe"
Once you find that, note it down in notepad or something.
Example of what I got: "C:\Program Files\Java\jdk1.6.0_20\bin"
Step 2:
Right-click My Computer and then select properties
Click the advanced tab and then click the environment variables button
Step 3:
Under 'User variables' click 'New' and name the variable Path
Now for the variable value field add the path of the Java compiler which you found earlier
Step 4:
Press 'Ok' and then you're done
Now instead of compiling using that long command line code you can just use javac which will do exactly the same thing.
Yeah, its easy. But hey, thanks for helping out some noobs.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |