Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > javac is not recognised as an internal or external command, operable program or batch file

Reply
Thread Tools

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

 
 
cormacdebarra@gmail.com
Guest
Posts: n/a
 
      11-11-2006
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:\PROGR A~1\BORLAND\CBUILD~1\BIN;*%SYSTEMROOT%\SYSTEM32;%S YSTEMROOT%;%SYSTEMROOT%\SYSTEM32\WBEM;C:\WWW\APACH E*2\BIN;C:\WWW\MYSQL\BIN;C:\WWW\PERL\BIN;C:\WWW\PH P5;C:\WWW\APACHE2\BIN;C:\WW*W\MYSQL\BIN;C:\WWW\PER L\BIN;C:\WWW\PHP5;C:\WINDOWS;C:\WINDOWS\SYSTEM32\W BEM*;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

 
Reply With Quote
 
 
 
 
Daniel Dyer
Guest
Posts: n/a
 
      11-11-2006
On Sat, 11 Nov 2006 22:42:34 -0000, <> wrote:

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

--
Daniel Dyer
http://www.uncommons.org
 
Reply With Quote
 
 
 
 
cormacdebarra@gmail.com
Guest
Posts: n/a
 
      11-12-2006
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

 
Reply With Quote
 
cormacdebarra@gmail.com
Guest
Posts: n/a
 
      11-12-2006
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

 
Reply With Quote
 
www.pulpjava.com
Guest
Posts: n/a
 
      11-12-2006
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


wrote:
> 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:\PROGR A~1\BORLAND\CBUILD~1\BIN;*%SYSTEMROOT%\SYSTEM32;%S YSTEMROOT%;%SYSTEMROOT%\SYSTEM32\WBEM;C:\WWW\APACH E*2\BIN;C:\WWW\MYSQL\BIN;C:\WWW\PERL\BIN;C:\WWW\PH P5;C:\WWW\APACHE2\BIN;C:\WW*W\MYSQL\BIN;C:\WWW\PER L\BIN;C:\WWW\PHP5;C:\WINDOWS;C:\WINDOWS\SYSTEM32\W BEM*;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


 
Reply With Quote
 
suken
Guest
Posts: n/a
 
      11-13-2006

wrote:
> 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


Try ading j2ee.jar in your classpath.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco Nat Internal > External > Internal dcpearso Cisco 3 03-23-2008 07:01 AM
'subst' is not recognized as an internal or external command,operable program or batch file. ME Computer Information 0 10-16-2007 03:53 PM
Access from internal hosts to internal servers using external address HangaS Cisco 2 04-19-2007 10:14 AM
External drive not recognised on boot-up Hungerdunger Computer Support 2 03-13-2007 05:08 AM
cisco ios nat from internal->external->internal Bob Cisco 0 12-11-2006 01:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57