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 / First Aid / December 2006

Tip: Looking for answers? Try searching our database.

javac problem

Thread view: 
Ed - 08 Dec 2006 19:05 GMT
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 - 08 Dec 2006 20:24 GMT
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

Ed - 09 Dec 2006 14:49 GMT
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


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.