Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2005

Tip: Looking for answers? Try searching our database.

Setting up jdk to work on win xp pro machine

Thread view: 
Brian Neumann - 06 Mar 2005 22:48 GMT
I just installed jdk2 release 1.4.1 and I set the variables under User
environment variables as
Variable: JAVA
Value: C:\j2sdk1.4.1\bin

but when i got into the dos prompt using cmd via the run command, i get the
following error:

'javac' is not recognized as an internal or external command,
operable program or batch file.

any body know what is going on and if so can someone help me.

-Brian
joshua - 07 Mar 2005 08:31 GMT
you have to set 'path'.
add 'path' variable to system variables of your system.
and set the value of the variable as c:\j2sdk1.4.1\bin

re-run cmd, and run javac.

> I just installed jdk2 release 1.4.1 and I set the variables under User
> environment variables as
[quoted text clipped - 10 lines]
>
> -Brian
Brian Neumann - 07 Mar 2005 23:28 GMT
Thank you very much for the help all is working now.

-Brian
> you have to set 'path'.
> add 'path' variable to system variables of your system.
[quoted text clipped - 18 lines]
>>
>> -Brian
Raymond DeCampo - 08 Mar 2005 01:45 GMT
> I just installed jdk2 release 1.4.1 and I set the variables under User
> environment variables as
[quoted text clipped - 10 lines]
>
> -Brian

Brian,

This is an issue with your OS configuration, in particular the PATH
environment variable.  You have a couple of ways to fix this:

1) Use the full path when referencing the javac command
(C:\j2sdk1.4.1\bin\javac.exe)
2) Set the PATH in the local shell to include the C:\j2sdk1.4.1\bin
directory (set PATH=%PATH%;C:\j2sdk1.4.1\bin)
3) Edit the PATH environment variable (user or system) using the Windows
GUI.  Be sure to start a new command shell afterwards.

HTH,
Ray

Signature

XML is the programmer's duct tape.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.