473,394 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Setting up jdk to work on win xp pro machine

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
Jul 17 '05 #1
3 8787
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.
Brian Neumann wrote:
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


Jul 17 '05 #2
Thank you very much for the help all is working now.

-Brian
"joshua" <oc*********@yahoo.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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.
Brian Neumann wrote:
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

Jul 17 '05 #3
Brian Neumann wrote:
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


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

--
XML is the programmer's duct tape.
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: JamesBV | last post by:
My PC's Region setting is set to "English (Canada)"... cause I am in Canada (eh?) (: I'm using VB.net, standard edition (v1?) So I wrote my application based on this Region. I've both Short...
4
by: Jm | last post by:
I'm trying to set up ASP.NET on my Windows 2000 server w/ IIS 5 and MS ISA Server. Here's what I have done so far without any luck. Here's the results from the pages I've created...
1
by: cade | last post by:
Does anyone know an article or how to setup a project so that more than one person can work on it at a time? We have a network of computers at work and me and another guy are the programmers. We...
16
by: Marina | last post by:
Hi, I am trying to find the minimum security settings to allow a windows control embedded in IE have full trust. If I give the entire Intranet zone full trust, this works. However, this is...
0
by: Tushar Karsan | last post by:
Please help. I would like to use the following web-services / ASP.Net code to be used in an intranet environment: MailMessage Message = new MailMessage(); Message.To = ... .......
2
by: mich_stone | last post by:
Dear world, I have an IMAGE control placed on my .aspx page with its ImageUrl property not set. In my code, i am setting it equal to something using the following statement img.ImageUrl =...
2
by: Ralph | last post by:
Hi, I've done a bit of reading on setting up an Isolated .NET environment for each of my developers. We all run Windows XP Pro, IIS and have local instances of SQL Server for development. I...
9
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso...
1
by: Rotsey | last post by:
Hi, I am using System.Net.Mail.SmtpClient to send mail. I used localhost as the host but this did not work. For my app to work on a installed PC do I have specify the SMTP server of the...
5
by: =?Utf-8?B?bWFzaXg=?= | last post by:
We have an issue with load time in several installations of our application. We've located the information regarding KB 936707 and ensured that the application config file contains the runtime...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.