🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1559

Re: Libraries and unkown source

#1559
From: Joi Ellis
Date: Sun, 02 Dec 2001 13:13
45 lines
2645 bytes
Roy McBrayer <roymcbrayer@austin.rr.com> wrote:

> I'm not sure why it can't find the IPWorks library.  If I include it
> as a required library for the project, shouldn't JBuilder include all
> of the required files in the jar?  I am specifying that all classes and
> resources for IPWorks be included in the jar.  I encountered this problem
> before with trying to use class files in a third party package and have
> never been able to figure out how to integrate them into a project in
> JBuilder so that they can be found at run time.  I thought that was what
> the library functionality provided.  Can anyone explain this?

By default, the archive builder excludes everything in required libraries.
You have to visit the node's properties | dependencies tab and change
this behavior.  However, beware that doing so may violate the license
agreement with IP*Works.  I can't find the reference, but I think that
jar is a developer license only, not a deployment license.  

For using the app's manifest to control the classpath, see here:
http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=252

> Roy

> John McGrath  [TeamB] <ng-b@JPMcGrath.net> wrote:
>>On 30 Nov 2001 11:59:30 -0800, Roy McBrayer wrote:
>>
>>> It works fine from within JBuilder but will not work with the
>>> jar from the command line.
>>
>>> $ java -jar mailtest.jar
>>> Exception in thread "main" java.lang.NoClassDefFoundError
>>
>>It cannot find the IPWorks library.  You can specify it with the java 
>>-classpath option.
>>
>>There is also a mechanism for specifying required libraries in the 
>>manifest, but I have not used it.
>>
>>-- 
>>Regards,
>>
>>John McGrath [TeamB]
>>
>>---------------------------------------------------
>>Before sending me e-mail, please read:
>>    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <3c0a28df_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mail
References: <3c07e522$1_2@dnews> <MPG.1671e5059dff63f498ac96@forums.borland.com> <3c090696$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,8c8c8ceeb08274f
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-12-02 05:20:35 PST
Message-ID: <3c0a28df_2@dnews>
From: Joi Ellis <joi@artoo.gyles19.visi.com>
Subject: Re: Libraries and unkown source
Newsgroups: borland.public.jbuilder.java.api
References: <3c07e522$1_2@dnews>  <MPG.1671e5059dff63f498ac96@forums.borland.com> <3c090696$1_2@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.19-6.2.7 (i686))
NNTP-Posting-Host: 209.98.6.107
Date: 2 Dec 2001 05:13:04 -0800
X-Trace: dnews 1007298784 209.98.6.107 (2 Dec 2001 05:13:04 -0800)
Lines: 46
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mail