File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Where is javac Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Where is javac" Watch "Where is javac" New topic
Author

Where is javac

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1446
    
    1
If my machine class path is

C:\WDSC\JAVA;.;C:\WDSC\sdk;C:\Program Files\Ibm\Client Access\jt400\lib\uitools.jar;C:\Program Files\Ibm\Client Access\jt400\lib\jui400.jar;C:\Program Files\Ibm\Client Access\jt400\lib\data400.jar;C:\Program Files\Ibm\Client Access\jt400\lib\util400.jar;C:\Program Files\Ibm\Client Access\jt400\jre\lib\jhall.jar;C:\Program Files\IBM\Client Access\jt400\lib\x4j400.jar;C:\Program Files\IBM\Client Access\jt400\lib\jt400.jar;C:\Program Files\IBM\Client Access\jt400\lib\reportwriter.jar;C:\Program Files\IBM\Client Access\jt400\lib\composer.jar;C:\Program Files\IBM\Client Access\jt400\lib\outputwriters.jar;C:\Program Files\IBM\Client Access\jt400\lib\jasperreports.jar;C:\Program Files\IBM\Client Access\jt400\lib\JRtest1.jasper

And the javac is located in the c:\WDSC\sdk\bin folder.

Shouldn't I be able to call the javac from any directory command line?
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Is "c:\WDSC\sdk\bin" part of your PATH?? if yes then is it correct that you should call javac from any folder.


Regards, Rene Larsen
Dropbox Invite
David Gill
Greenhorn

Joined: Feb 24, 2005
Posts: 19
Originally posted by Rene Larsen:
Is "c:\WDSC\sdk\bin" part of your PATH?? if yes then is it correct that you should call javac from any folder.


Yes before you need to add ;c:\WDSC\sdk\bin

and yes you need to add the semi-colon in there to tell the path that this is a seperate directory from the one before it. Currently Your path does not have the c:\WDSC\sdk\bin in it yet.
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1446
    
    1
Thanks. I was tring to put it in the wrong place.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Steve Dyke:
If my machine class path...

I'm not sure if this was made clear, but it's the PATH variable that should contain javac's location. The CLASSPATH is an entirely different thing.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where is javac