A few days ago Java installed on my machine, an update "jre1.5.0_09". I then
deleted what I thought was an earlier version - "jdk1.5.0_06". Now my Java
programs work OK but I can not compile - it says "javac is not recognized as
an internal or external command, operable program or batch file."
Any one have any ideas on what I did wrong and how to correct - please?
Ed skrev:
> A few days ago Java installed on my machine, an update "jre1.5.0_09". I then
> deleted what I thought was an earlier version - "jdk1.5.0_06". Now my Java
> programs work OK but I can not compile - it says "javac is not recognized as
> an internal or external command, operable program or batch file."
>
> Any one have any ideas on what I did wrong and how to correct - please?
You can download two Java environments: the SDK or the JRE.
The JDK is the Java software developer kit, which is for people who
write Java programs and so contains the java command to run java, and
the javac command to compile java.
The JRE is the Java runtime environment, which is for people who don't
want to write Java programs, but do want to run them, so it contains
the java command but not the javac command.
Looks like you deleted the _06 JDK and installed the _09 JRE.
You should delete the _09 JRE and install the _09 JDK.
.ed
--
www.EdmundKirwan.com - Home of The Fractal Class Composition
Daniel Dyer - 08 Dec 2006 20:55 GMT
> Looks like you deleted the _06 JDK and installed the _09 JRE.
>
> You should delete the _09 JRE and install the _09 JDK.
Or the _10 JDK, if you want the latest.
Dan.

Signature
Daniel Dyer
http://www.uncommons.org
Thanks guys for your help.
>A few days ago Java installed on my machine, an update "jre1.5.0_09". I
>then
[quoted text clipped - 4 lines]
>
> Any one have any ideas on what I did wrong and how to correct - please?
Lew - 09 Dec 2006 18:15 GMT
> ...
In future, if you want to post in multiple groups it is considered good form
to cross-post rather than multi-post. That way, you get your question answered
in one thread, and all respondents can see that you've already had your
question answered.
- Lew