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

ClassPath not being updated.

Asuthosh Borikar
Ranch Hand

Joined: Sep 29, 2000
Posts: 75
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?
Nathan Pruett

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

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!

Asuthosh Borikar
Ranch Hand

Joined: Sep 29, 2000
Posts: 75
Nate & Allen,
Thanks for your help!
I agree. Here's the link:
subject: ClassPath not being updated.
It's not a secret anymore!