Results 1 to 3 of 3
Thread: Problems, problems, problems!
- 08-28-2009, 01:32 AM #1
Member
- Join Date
- Aug 2009
- Posts
- 1
- Rep Power
- 0
Problems, problems, problems!
Hey guys,
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?
please help.
-
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, 04:27 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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,
C:\Demo>
And say your Java installation is in the following location.
C:\jdk1.5\
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.
Similar Threads
-
Few Problems Help!
By elad_bj in forum New To JavaReplies: 4Last Post: 04-07-2009, 03:45 AM -
Problems in JSP : Need help
By raj4u in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 02-07-2008, 10:06 AM -
GUI problems.
By saytri in forum New To JavaReplies: 1Last Post: 12-16-2007, 10:27 PM -
gui problems
By bluebirdjc in forum Advanced JavaReplies: 2Last Post: 07-23-2007, 05:38 PM -
problems with JPA
By Ed in forum New To JavaReplies: 2Last Post: 07-04-2007, 05:34 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks