🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8042

Re: Compiling and Accessing Packages?

#8042
From: Joi Ellis [TeamB]
Date: Sun, 29 Apr 2001 15:14
30 lines
1623 bytes
hi <noneofyourbusiness@none.com> wrote:
> Hi,

> Thanks for the response.  This worked:

> D:\java\Chap5>java -classpath .;D:\java TestPackage

> If I didn't use the ".;", I got an error:

> D:\java\Chap5>java -classpath D:\java TestPackage
> Exception in thread "main" java.lang.NoClassDefFoundError: TestPackage

Ah.  Yes, you have TestPackage physically sitting in directory
Chap5, so to run it you'd use:

java -classpath D:\java Chap5.TestPackage

But, TestPackage.java is lacking a package statement, so it would actually
want to live right in D:\Java.  So, right now you'd use:

java -classpath D:\java;D:\java\Chap5 TestPackage




-- 
Joi Ellis (TeamB) 
No direct email, please.
For best results, post on news server newsgroups.borland.com!
Newsgroup Info: http://www.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <3aec2fc7_2@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mail
References: <3aeb6dd9_1@dnews> <3aeb86a7_1@dnews> <3aec0bd5_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e13db2519d61bb0d
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-29 08:16:04 PST
Message-ID: <3aec2fc7_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Supersedes: <3aec2895$1_2@dnews>
Subject: Re: Compiling and Accessing Packages?
Newsgroups: borland.public.jbuilder.java.language
References: <3aeb6dd9_1@dnews> <3aeb86a7_1@dnews> <3aec0bd5_1@dnews> 
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 29 Apr 2001 08:14:15 -0700
X-Trace: dnews 988557255 209.46.41.66 (29 Apr 2001 08:14:15 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mail