Hi guys,
So I am writing my "Hello World" for Java (very excited) and even thou I have eclipse installed I thought it would be better to learn using notepad(2). So I set up a new library for programming and put a java folder and in it i put my project folder. I went to cmd line and typed javac MyFirstApp.java like my book told me but it says that it is not a valid comand. I checked a few sites and they all said somthing about javac as well. So what am i screwing up here? (I have never compiled anything from command line before)
How to compile at command line?
Started by zeroradius, Aug 02 2010 11:46 AM
5 replies to this topic
#1
Posted 02 August 2010 - 11:46 AM
|
|
|
#2
Posted 02 August 2010 - 11:51 AM
Install JDK and be sure javac is in the PATH environment variable. Try seeing if you have javac included elsewhere first and set it up if so.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#3
Posted 02 August 2010 - 12:16 PM
EDIT1: Thanks for the help. I checked the java board but i just remembered that we have a tutorial section and i found a tut in there. Thanks again ^_^
Edit 2: :crying: I can not get it to work. I set the enviroment path variable
and it still won't work.
Edit 3: I'm just going to use eclipse and be done with it
Edit 2: :crying: I can not get it to work. I set the enviroment path variable

and it still won't work.
Edit 3: I'm just going to use eclipse and be done with it
Edited by zeroradius, 02 August 2010 - 01:55 PM.
#4
Posted 02 August 2010 - 03:22 PM
You set the PATH variable! (not javac) It may already have some entries within, so separate each path with a semicolon, this will allow the command line to access javac from its folder without manually pointing to it.
Although, you're on the right track using an IDE, you best still finish this step to be able to do it later on.
Although, you're on the right track using an IDE, you best still finish this step to be able to do it later on.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#5
Posted 03 August 2010 - 11:40 AM
How do I develop mobile apps????
Thankz....
Sophi.....D
Thankz....
Sophi.....D
#6
Posted 03 August 2010 - 11:53 AM
Alright thanks NullWorm I'll give it a shot later. I feel prety silly now because you told me PATH variable to begin with. I was so frustrated I guess it did not register with me.
Sophisticated. You should start a new thread for your topic. You are more likely to get a responce
Sophisticated. You should start a new thread for your topic. You are more likely to get a responce


Sign In
Create Account


Back to top









