windows xp runs java application but does not compile it - urgent please

HiMy new PC(portable) does not compile my java progran:'javac' is not recognized as an internal or external command, operatable program or batch file.If you have any suggestion, please let me know!Aria
[238 byte] By [ariaa] at [2007-11-27 4:01:40]
# 1
download jdk from the link shown below: http://java.sun.com/javase/downloads/index_jdk5.jspand install it!V.V.
viravana at 2007-7-12 9:06:24 > top of Java-index,Desktop,I18N...
# 2

Thanks.

I have installed jdk1.4 and 5 and 6; JDK6 is useless for me(it hungs one of my programs). JDK5 passed the general requirements. JDK1.4 runs very well under XP.

None of JDK compiles java applications although javac exists in its directory. MS-DOS does not exists in XP but another command prompt cac give access to autoexec.nt( bot bat extension), so that we can run our java clacc.

Is there any downloadable java program which takes a directory of java classes and makes a directory of it under windows? self-installing(extracting) can be a good namae. I just want to avoid command prompt and autoexec file. Having short-cut for java class under windows is not possible.

If you have any information regarding this issue please let me know.

Thanks

ariaa at 2007-7-12 9:06:24 > top of Java-index,Desktop,I18N...
# 3

>MS-DOS does not exists in XP

check out %SystemRoot%\system32\cmd.exe

>None of JDK compiles java applications although javac exists in its directory

You must set the environment variables. In XP, you will:

1. Right click on My Computer

2. Go to Properties

3. Select the Advanced Tab

4. Go to the bottom and click on Environment Variables

5. Go down to the second box and click Add.

6. Variable Name will be JAVA_HOME depending on which one you are setting.

There may be other Environment Variables that you need, thest best place to start is to read the installation guide.

V.V.

viravana at 2007-7-12 9:06:24 > top of Java-index,Desktop,I18N...
# 4

Hi,

I thank you very much.

I followed your instruction down to Environment Variables having two choices: Uber and systen variables

Which alternative shall I choose?

SystemRoot%\system32\cmd.exe is the first alternative in systen variables.

If I choose system variable nad make a new variable and call it JAVA_HOME, What is the value?

Thanks

Aria

ariaa at 2007-7-12 9:06:24 > top of Java-index,Desktop,I18N...
# 5

1) Set the System variable:

Variable name: JAVA_HOME

Variable value: C:\jdk1.5.0_11 or wherever you installed it

2) add to the end of your Path variable:

;%JAVA_HOME%\bin

3) create:

Variable name: CLASSPATH

Variable value: .;

If you still can't compile java program, post your question here:

http://forum.java.sun.com/forum.jspa?forumID=54

The above is the forum for newbies!

V.V.

viravana at 2007-7-12 9:06:24 > top of Java-index,Desktop,I18N...
# 6

Thanks anyhow;

The following information is sent to beginners site.

I have talked to british, belgian and others regarding this problem. They said it is very expensive and we laughed.

Hi,

Windows XP runs java application but does not compile it. I get following message:

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

MS-DOS does not exists but a command line edits autoexec.nt having allinformation regarding installed jdk5. I run my java applicat

ion from here. But no compilation.

Environment variables has following information.

JAVA_HOMEC:\jdk5.0

CLASSPATHC:\jdk5.0\myPrograms

path %JAVA_HOME%bin

All information in autoexec.nt exists as windows 98 and I run it from command line.

Would you please tell me what is wrong?

Thanks

Aria

ariaa at 2007-7-12 9:06:24 > top of Java-index,Desktop,I18N...