Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old June 22nd, 2002, 03:14 PM
itsource itsource is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 181 itsource User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 7 m 31 sec
Reputation Power: 7
Is I set classpath correct

I'm read Installation Note jdk 1.4 for win in sun website. but it not explain about classpath.

I'm install classpath on windows.

Some book suggess to set classpath to c:\jdk1.4\jre\lib; (Is it true ?)
Some book suggess to set to directory that compile java code such as c:\javaprogram;

When I not set classpath when use javac. I got message class not found
and when I set classpath only classpath=.; It work.

Why each book tell me different to set classpath.

What really classpath should I set? Is it sufficient to set classpath=.;

Thanks.

Reply With Quote
  #2  
Old June 25th, 2002, 03:43 PM
tron's Avatar
tron tron is offline
SwollenMember
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: the master control
Posts: 234 tron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 46 sec
Reputation Power: 9
sun suggests setting your class path by using your SDK "tool" (for example):

java -c <classpath>

Use the SDK file structure to help you make your decision:

http://java.sun.com/j2se/1.3/docs/t...2/jdkfiles.html

Reply With Quote
  #3  
Old June 28th, 2002, 10:49 AM
AnotherKen AnotherKen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 0 AnotherKen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
why don't you listen to all of them, and set CLASSPATH to all those paths. You can divide them with ";" symbol like CLASSPATH=c:\jdk\lib;.;c:\widows;c:\games

you may have as many as you need

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Is I set classpath correct


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway