File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Cattle Drive and the fly likes Problem in start of / autoexec.bat file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Problem in start of / autoexec.bat file" Watch "Problem in start of / autoexec.bat file" New topic

Problem in start of / autoexec.bat file

Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
Hello everybody... hope you all are fine there.
I have successfully run default example of jsp and servlet mentioned in the instruction page with orion.
Now I try to go through with example and make a new directory like c:\java and put also JavaRanchCommon.jar (i rename .zip ext to .jar) in this dir and trying to run it on DOS command using: javac and it shows the following errors:

My autoexec.bat file is as follows:

I think i'm forgetting the basic rules for setting the paths and classpaths setting in .bat file.
I installed orion.jar and install it in c:\orion direcotry.
Please note that i have also installed j2sdkee1.3 from the sun to run servlet and installed it properly and tried to set j2ee.jar path to the above .bat file.
Could anybody help me and figure out the problem and oblige.
Thanks and best regards
Rashid Ali
jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
Make sure you put the JavaRanchCommon.jar in the c:\orion\lib\ directory, or else Orion can't find the appropriate classes. Also, make sure the c:\java\JavaRanchCommon.jar is in your classpath.
Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
Thank you very much.
Problem is solved with your suggestion.
Kind regards
Rashid Ali
It is sorta covered in the JavaRanch Style Guide.
subject: Problem in start of / autoexec.bat file