Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

where to edit the classpath?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I want to creat my own package, but I don't find the file that contains the classpath command.

I searched in the autoexec.bat , system.ini, and win.ini

and I didn't find.

can someone help me to find this file.

 
It is in autoexec.bat. There just may not be any entries yet, you can put something like this:

SET CLASSPATH=C:\jdk1.3\JavaMail\mail.jar;C:\jdk1.3\JavaMail\activation.jar;C:\jdk1.3\packages\;


b2 - benbiddington@surf4nix.com
 
You set the classpath either in the console window you're using to run your program, or thru an environment variable. If you use an environment variable, autoexec.bat is one of the places you can set it (though not a common one for windows). If you use Windows 2000 (and I think 98, but i'm not positive), you can set the classpath in the properties section of MyComputer.

I'd recommend setting it at the console window if at all possible...
 
hi bangers, hi plstromb;

Thank you for your help;

but the problem is still occuring.

There's no prb with windows2000 when I set the classpath in the properties section of "MyComputer".

but the prb is with windows 95, first in the autoexec.bat there's no section with classpath,so I wrote the lines :

set classpath = %classpath%; c:\jdk1.2\Mypack\me.jar
set path = %path%; c:\jdk1.2\bin
(my package is setting in a folder "rep1" and the folder is in a "me.jar" file , and "me.jar" is in c:\jdk1.2\Mypack).

but when I try to import a class in this package,
exp:import rep1.*;

the complire return me: "import not found".

and if I try to use javac or java, in other folder then c:\jdk1.2\bin , I got "command not found".

can you help me , please to find the prb?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top