Article View: borland.public.jbuilder.java.api
Article #1547Package Import into Jbuilder
From: Roy McBrayer
Date: Fri, 30 Nov 2001 17:16
Date: Fri, 30 Nov 2001 17:16
29 lines
2711 bytes
2711 bytes
I have a very simple mail program using IPworks classes. It compiles and executes fine with JBuilder. When I create a jar file and execute it from the jar file I get the following error message. I am including all of the classes and resources in the archive properties. I also have made the IPWorks library a required library for my class. I have tried going to Projects/Add file and packages and adding the package to my project but this has no effect on the jar execution. What am I doing wrong?
I have had this problem in the past when I tried to import a package containing a jar file consisting only of class files. I without source code. I never have this problem if I have the source code so I must be missing the big picture here. I would guess the problem is a class path problem.
Thanks,
Roy
Error:
naraprd<mrsship$ java -jar mailtest.jar
Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.Toolkit$2.run(Toolkit.java:512)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)
at java.awt.Toolkit.getEventQueue(Toolkit.java:1150)
at java.awt.EventQueue.isDispatchThread(EventQueue.java:439)
at ipworks.CIPPMsg.waitWhileProcessingAwtEvents(Unknown Source)
at ipworks.CIPPMsg.blockConnect(Unknown Source)
at ipworks.CSMTP.doActionConnect(Unknown Source)
at ipworks.CSMTP.doActionSend(Unknown Source)
at ipworks.CSMTP.setAction(Unknown Source)
at ipworks.Smtp.setAction(Unknown Source)
at mailtest.mail.jbInit(mail.java:35)
at mailtest.mail.<init>(mail.java:19)
at mailtest.mail.main(mail.java:26)
Technical Details
Message-ID:
<3c07bee0$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,daa8127c6efd1bef,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-11-30 09:18:40 PST From: "Roy McBrayer" <roymcbrayer@austin.rr.com> Sender: "Roy McBrayer" <roymcbrayer@austin.rr.com> Reply-To: "Roy McBrayer" <roymcbrayer@austin.rr.com> Subject: Package Import into Jbuilder Newsgroups: borland.public.jbuilder.java.api X-User-Info: 63.160.3.152 63.160.3.152 NNTP-Posting-Host: 207.105.83.65 Message-ID: <3c07bee0$1_1@dnews> Date: 30 Nov 2001 09:16:16 -0800 X-Trace: dnews 1007140576 207.105.83.65 (30 Nov 2001 09:16:16 -0800) Lines: 31 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews