Results 1 to 3 of 3
Thread: Problems, problems, problems!
- 08-28-2009, 02:32 AM #1Member
- Join Date
- Aug 2009
- Rep Power
Problems, problems, problems!
I am really having trouble on running this java file. It is the Hello World program.
I downloaded Java EE 5 SDK Update 7 (with JDK 6u16)
and then I installed it
Then I wrote the program for Hello World in notepad and saved it as a .java file.
Now, I have no clue on what I should do. What should my path be?
Where should it direct to?
I have saved the .java file on the desktop.
I tried running javac but it says 'javac' is not recognized as an internal or an external command.
what do i do?
I moved this to a new thread as this is your new problem and should not be piggy backed on an old thread.
To solve your problem, please go through this tutorial: Lesson: The "Hello World!" Application (The Java™ Tutorials > Getting Started)
Also, make sure that your system path includes the directory that holds the Java bin files (including the javac.exe).
- 08-28-2009, 05:27 AM #3
- Join Date
- Jul 2007
- Colombo, Sri Lanka
- Blog Entries
- Rep Power
If you want temporary set the classpath on the command prompt as well. But it's not a robust way at all. Each time you close and open the command prompt have to do that.
Here is the way to do that.
Change the working directory in the command prompt to your working folder, which is all your Java files are stored. Say for an example, folder Demo in C drive. So the path on command prompt would be,
And say your Java installation is in the following location.
Then type the following command,
C:\Demo>path=C:\jdk1.5\bin\ and press enter. If you didn't get any error messages everything is fine. Type the command javac and hit enter again. If everything is setup correctly you can see a list of options used in Java. Or else you get that famous message, javac is not recognized....., means something wrong with your above commands, recheck them.
Setting the system variables what do is, make the permanent in your system.
- By elad_bj in forum New To JavaReplies: 4Last Post: 04-07-2009, 04:45 AM
- By raj4u in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 02-07-2008, 11:06 AM
- By saytri in forum New To JavaReplies: 1Last Post: 12-16-2007, 11:27 PM
- By bluebirdjc in forum Advanced JavaReplies: 2Last Post: 07-23-2007, 06:38 PM
- By Ed in forum New To JavaReplies: 2Last Post: 07-04-2007, 06:34 AM