Article View: borland.public.jbuilder.java.language
Article #8245Re: CLASSPATH
From: Alan
Date: Wed, 18 Apr 2001 01:06
Date: Wed, 18 Apr 2001 01:06
25 lines
2068 bytes
2068 bytes
Yes, I had the same problem but now solved, set the classpath to where your java file is. eg. you create you own source file helloworld.java, set the classpath to this folder. But what if I have different source file in different folders. > > > > c:\src> edit Test.java > > c:\src> javac Test.java > > c:\src> java Test > > Hi > > c:\src> cd \ > > c:\> java Test > > Exception in thread "main" java.lang.NoClassDefFoundError: Test > > c:\> set CLASSPATH=c:\src > > c:\> java Test > > Hi > > > > -- > > Jon Skeet - skeet@pobox.com > > http://www.pobox.com/~skeet > > > >
Technical Details
Message-ID:
<9bipc9$do$1@taliesin.netcom.net.uk>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!wanadoo.fr!opentransit.net!news.tele.dk!194.42.224.136!diablo.netcom.net.uk!netcom.net.uk!not-for-mailReferences:
<991cm4$i8t$1@slb7.atl.mindspring.net> <kdet6.8303$Im6.949287@newsread1.prod.itd.earthlink.net> <MPG.151f8aa2d27c39de989ea5@10.1.1.51> <_Ebv6.8792$P4.690901@newsread1.prod.itd.earthlink.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a146,21ace6450f42c0b X-Google-Attributes: gid10a146,public X-Google-Thread: 113ae9,21ace6450f42c0b X-Google-Attributes: gid113ae9,public X-Google-Thread: f74b3,21ace6450f42c0b X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-04-17 18:10:06 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!wanadoo.fr!opentransit.net!news.tele.dk!194.42.224.136!diablo.netcom.net.uk!netcom.net.uk!not-for-mail From: "Alan" <alanpltse@yahoo.com.au> Newsgroups: borland.public.jbuilder.java.language,comp.lang.java.help,comp.lang.java.programmer Subject: Re: CLASSPATH Date: Wed, 18 Apr 2001 11:06:28 +1000 Organization: (Posted via) GTS Netcom - Public USENET Service http://pubnews.netcom.net.uk Lines: 27 Sender: alanpltse@yahoo.com.au Message-ID: <9bipc9$do$1@taliesin.netcom.net.uk> References: <991cm4$i8t$1@slb7.atl.mindspring.net> <kdet6.8303$Im6.949287@newsread1.prod.itd.earthlink.net> <MPG.151f8aa2d27c39de989ea5@10.1.1.51> <_Ebv6.8792$P4.690901@newsread1.prod.itd.earthlink.net> NNTP-Posting-Host: tra23493-2.gw.connect.com.au X-Trace: taliesin.netcom.net.uk 987556043 440 210.10.87.54 (18 Apr 2001 01:07:23 GMT) X-Complaints-To: abuse@corp.netcom.net.uk NNTP-Posting-Date: Wed, 18 Apr 2001 01:07:23 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200