• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Class Path

 
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do I set the classpath on win 98 system so I can compile my java file in any directory without having to type the entire path where of directory where my jdk resides ?
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure if this is the same, but for NT you right click on MyComputer and go to Properties. Then go to environment and under system variables, look for PATH. Then add the directory to the path under VALUE. I am not positive if this is how 98 does it, but I think it is similar.
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in order to compile your java files no matter what directory you are working in you need to change your PATH not classpath. to do this open you autoexec.bat file and add the line
;c:\jdk1.3\bin

to your path statement. then you need to reboot your computer or run autoexec.bat in your current msdos window
------------------
I hope its helps, feel free to email me noahcarroll@juno.com
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Windows 95 and 98 Configuration.
To set your computer's PATH variable on a Windows 95 or 98 system, use the Windows Notepad text editor to open the AUTOEXEC.BAT file on your computer. It should be located in the root folder of the main hard drive on your computer (usually C .
Scroll down to the bottom of the AUTOEXEC.BAT and add a new line that has the following format:
PATH SDKFolder\bin;%PATH%
Replace SDKFolder with the name of the folder where you installed the SDK and add the rest without modification. For example, if you installed the SDK into C:\jdk1.3, the line should be the following:
PATH C:\jdk1.3\bin;%PATH%
After you make this change, keep AUTOEXEC.BAT open and look for any lines that begin with the text SET CLASSPATH= .
If you don't find any, you're done setting up the SDK. Save AUTOEXEC.BAT and reboot your computer.
If you find any CLASSPATH lines, add a new blank line at the bottom of AUTOEXEC.BAT and enter a line with the following format:
SET CLASSPATH=.;SDKFolder\lib\tools.jar;%CLASSPATH% (don't forget the period !)
As you did with the PATH variable, replace SDKFolder with the folder where the SDK was installed. Save AUTOEXEC.BAT and reboot
Hope this helps
Patrick
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic