This week's book giveaways are in the Angular and TypeScript and Web Services forums.
We're giving away four copies each of Programming with Types and The Design of Web APIs and have the authors on-line!
See this thread and this one for details.
Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

Setting a path and class path

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Friends
Pease help me with this
How do I set classpath c:\jdk1.2\LIB;.c:\Java
Also, how do I set
path c:\JDK1.2\BIN; C:\JDK1.2\JRE\BIN
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go to Start>Settings>Control Panel>System
Look for Environment variables/Path there.....
Type in what u want....don't forget to end every stmt with a ";"
Click on "set" and then "ok"....
Hope this helps.
 
tumbleweed
Posts: 5089
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can either enter the values at the dos prompt or you can add them to your autoexec.bat file.
set classpath c:\jdk1.2\lib;c:\Java;
set path c:\jdk1.2\bin;C:\jdk1.2\jre\bin
if you want to see what youre current settings are, simply type in set with nothing else at the DOS prompt.
The above off course assumes that you use WinTel
Good Luck

Pse note in you lines you had spaces between the different directories. I know that in the old days when we only had DOS, DOS did not like the spaces there. I assume Windows still does not want them there.

[This message has been edited by Johannes de Jong (edited April 27, 2001).]
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What has worked well for me ---
1> get a copy of TextPad, cause it will do a lot of the work for you, and is a first-rate resource.
2> put all your classes in c:\jdk1.3\jre\classes, and the javac will automatically look there for you.
3> you can put subdirectories into the classes folder, and reference them as follows : [javac will direct itself to the classes folder, so you don't need a full pathname]
import <subfolder>.<sub2folder>. etc . <yourclass.class>
Hope this helps.
 
Johannes de Jong
tumbleweed
Posts: 5089
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Youre right Don TextPad spoiles one by doing a lot for you behind the scenes. Great editor
 
Beauty is in the eye of the tiny ad.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!