aspose file tools*
The moose likes Beginning Java and the fly likes ClassPath not being updated. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ClassPath not being updated." Watch "ClassPath not being updated." New topic
Author

ClassPath not being updated.

Asuthosh Borikar
Ranch Hand

Joined: Sep 29, 2000
Posts: 75
Hi,
I have installed Weblogic Server on Windows '98 and I am trying to compile the example beans. The compiler is not finding the javax packages. I have included the weblogicaux.jar file in classpath, by editing autoexec.bat file. But, when I open an MS-DOS prompt window and type ehco%classpath%, I don't see the changes I've made to the autoexec.bat file. Could someone please help me?
Thanks.
Asuthosh.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

I think you have to restart your computer for changes in the autoexec.bat file to take effect in Windows 98...
-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Allen Alchian
Ranch Hand

Joined: Oct 11, 2000
Posts: 83
As an alternative to changing the CLASSPATH environmental variable in your autoexec.bat and then rebooting, you can simply change the CLASSPATH environmental variable right at the dos prompt by entering...
c:\>set classpath=.;c:\jdk1.2.2\jre\classes;c:\whatever
Then you can see that the change has taken effect by using the dos command ...
echo %classpath%
...and all without rebooting!


Allen
Asuthosh Borikar
Ranch Hand

Joined: Sep 29, 2000
Posts: 75
Nate & Allen,
Thanks for your help!
-Asuthosh.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ClassPath not being updated.