jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes Compilation problem--javac not recognised Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Compilation problem--javac not recognised" Watch "Compilation problem--javac not recognised" New topic
Author

Compilation problem--javac not recognised

Shweta Pershad
Greenhorn

Joined: Sep 08, 2004
Posts: 23
Hi,

I just inatalled J2EE 1.4 SDK on my PC running Windows XP. I am trying to compile my first program now and keep getting a message that 'javac' is not recognised as an internal or external command, operable program or batch file.

I checked the PATH. It said C:\java\bin (java being the directory where my SDK is inatalled).

I do not know where I am going wrong. Please help!
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

The J2EE SDK includes a servlet container, an EJB container, Web services tools, and other paraphernalia needed for J2EE development. It doesn't include a Java compiler or runtime; for that you need the "J2SE SDK", also called the J2SDK or simply JDK. To do J2EE development, you want both.


[Jess in Action][AskingGoodQuestions]
 
Don't get me started about those stupid light bulbs.
 
subject: Compilation problem--javac not recognised
 
Similar Threads
Greenhorn with 64-bit can't set path
Cannot run program from another directory other than c:\Sun\SDK\jdk\bin
Java Beginner
basic servlet compilation difficulty
how to set classpath