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 / General / November 2006

Tip: Looking for answers? Try searching our database.

javac is not recognised as an internal or external command, operable program or batch file

Thread view: 
cormacdebarra@gmail.com - 11 Nov 2006 22:42 GMT
Hi
I get the above error when i try to compile a java program. I have
included it in the CLASSPATH. The CLASSPATH looks like this:

C:\PROGRA~1\BORLAND\CBUILD~1\PROJECTS\BPL;C:\PROGRA~1\BORLAND\CBUILD~1\BIN;­%SYSTEMROOT%\SYSTEM32;%SYSTEMROOT%;%SYSTEMROOT%\SYSTEM32\WBEM;C:\WWW\APACHE­2\BIN;C:\WWW\MYSQL\BIN;C:\WWW\PERL\BIN;C:\WWW\PHP5;C:\WWW\APACHE2\BIN;C:\WW­W\MYSQL\BIN;C:\WWW\PERL\BIN;C:\WWW\PHP5;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM­;C:\WINDOWS\SYSTEM32;c:\Program

Files\Java\jdk1.5.0_09\bin;

The last one is for java . ive checked if javac  is in that bin folder
and it is

Please help before i go insane
Thanks
Daniel Dyer - 11 Nov 2006 22:45 GMT
> Hi
> I get the above error when i try to compile a java program. I have
> included it in the CLASSPATH. The CLASSPATH looks like this:

The Java tools (java.exe and javac.exe) need to be on the PATH, not the  
CLASSPATH.  You shouldn't even need a CLASSPATH environment variable.

Dan.

Signature

Daniel Dyer
http://www.uncommons.org

cormacdebarra@gmail.com - 12 Nov 2006 01:57 GMT
Javac works now. My program also extends the servlet class. but it now
gives me 6 errors.....package javac.servlet does not exist.

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class BeerSelect extends HttpServlet
{

    public void doPost(HttpServletRequest request,HttpServletResponse
response)throws IOException, ServletException
    {.........................

How would one go about fixing this?
Thanks
cormacdebarra@gmail.com - 12 Nov 2006 01:57 GMT
Javac works now. My program also extends the servlet class. but it now
gives me 6 errors.....package javac.servlet does not exist.

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class BeerSelect extends HttpServlet
{

    public void doPost(HttpServletRequest request,HttpServletResponse
response)throws IOException, ServletException
    {.........................

How would one go about fixing this?
Thanks
suken - 13 Nov 2006 04:50 GMT
> Javac works now. My program also extends the servlet class. but it now
> gives me 6 errors.....package javac.servlet does not exist.
[quoted text clipped - 12 lines]
> How would one go about fixing this?
> Thanks

Try ading j2ee.jar in your classpath.
www.pulpjava.com - 12 Nov 2006 13:00 GMT
Try actually running the javac command from the bin directory. That's
probably the best start.

I've got some free multimedia tutorials on running compiling and
running code with javac and the java command line utilities. Check them
out at www.mcnz.com  They're free. ;)

Cheers!

-Cameron McKenzie

Free Java Certification Mock Exams: www.scja.com
Free Multimedia Tutorials: www.mcnz.com

www.examscam.com www.technicalfacilitation.com www.cameronmckenzie.com

> Hi
> I get the above error when i try to compile a java program. I have
[quoted text clipped - 9 lines]
> Please help before i go insane
> Thanks


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



©2009 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.