Results 1 to 10 of 10
Thread: HELP installing JDK please!
- 01-16-2009, 07:09 AM #1
Member
- Join Date
- Jan 2009
- Posts
- 2
- Rep Power
- 0
HELP installing JDK please!
so I installed the java 6 JDK update 11 and eveyrthing seems fine I think...I did my hello world code which I copied from a website as a test and then when I try to compile my code it gives me the error "javac is not recognized as an internal or external command, operable program or batch file. I am doing this in the command prompt window. I did set the CLASS AND CLASSPATH, is there anything else I need to setup before start writting code?
- 01-16-2009, 07:29 AM #2
Member
- Join Date
- Jan 2009
- Posts
- 31
- Rep Power
- 0
my suggestion..
why don't you try downloading and installing Netbeans IDE 6.5, or other IDE's??
They have automatic compilation properties so you don't have to re-type
your *.java file for it to compile.. I'm using one too... IDE's saves time atleast, instead of going through the Command Prompt over and over again...
But hey, 'tis jst my suggestion, you may disagree if you want...
- 01-16-2009, 07:34 AM #3
Member
- Join Date
- Jan 2009
- Posts
- 31
- Rep Power
- 0
my suggestion..
Oh yeah... I forgot, just try this site "sun.com"
just click on netbeans (on the top left corner), and you'll find alot of stuff there...
IDEs can support different languages, there's one that can support C#, C++, PHP, RUBY, and others, so just take your pick...
- 01-16-2009, 07:49 AM #4
Senior Member
- Join Date
- Sep 2008
- Posts
- 564
- Rep Power
- 5
The way you're doing it, you need to cd into the bin directory, but that's not the proper way to do things. You need to set your environment variables for PATH and JAVA_HOME. JAVA_HOME should be the directory for the JDK, and PATH should be the bin directory in the JDK. Actually, I might have it switched around, but I'm pretty sure that this is correct. Anyways, after setting this up, you don't need to bother going into the actual java directory to try to compile.
- 01-16-2009, 08:03 AM #5
use this in cmd. its only a temp fix, for you to try it out.
for permanent fix, right click on my computer, choose properties. advanced tab. enviroment variable.Java Code:set PATH=C:\Program Files\Java\jdk1.6.0_11\bin echo %path% javac....
find path. then add that to it using semicolon (;). like this
c:\windows;C:\Program Files\Java\jdk1.6.0_11\bin;
its ez to do, difficult to describe. or maybe i'm lazy.
- 01-16-2009, 08:13 AM #6
Member
- Join Date
- Jan 2009
- Posts
- 2
- Rep Power
- 0
ill try out all suggestions and ill get back tomorrow at night thank you all
-tru
- 01-16-2009, 09:12 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Actually that set command is not necessary to set the path to the Java bin. You can do it in this way as well.
Yes, this is not permanent. If you close the command prompt and open it again to use, must do the same thing again.Java Code:PATH=C:\Program Files\Java\jdk1.6.0_11\bin
If you are clever on AUTOEXEC.Bat editing, through that able to set the path permanently.
- 01-16-2009, 07:26 PM #8
Senior Member
- Join Date
- Sep 2008
- Posts
- 564
- Rep Power
- 5
oops, forgot to mention what it means to set environmental variables. d'oh!
- 01-16-2009, 08:14 PM #9
wait winxp still uses autoexec.bat??
If you do put it in autoexec.bat, then its prob better like this:
PATH=%path%;C:\Program Files\Java\jdk1.6.0_11\binUSE CODE TAGS--> [CODE]...[/CODE]
Get NotePad++ (free)
- 01-17-2009, 06:31 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yes Windows XP still use that.
Similar Threads
-
Need Help installing java - can you help me?
By Menre in forum New To JavaReplies: 4Last Post: 02-22-2010, 12:33 PM -
Installing j2s in eclipse3.4
By ravjot28 in forum EclipseReplies: 0Last Post: 07-07-2008, 06:51 PM -
installing j2s
By ravjot28 in forum EclipseReplies: 9Last Post: 06-27-2008, 11:10 AM -
Installing JMF
By vinnieza in forum EclipseReplies: 0Last Post: 05-04-2008, 07:11 PM -
Installing Java
By Adv3nt in forum New To JavaReplies: 3Last Post: 12-12-2007, 11:29 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks