Article View: borland.public.jbuilder.java.api
Article #1548Libraries and unkown source
From: Roy McBrayer
Date: Fri, 30 Nov 2001 19:59
Date: Fri, 30 Nov 2001 19:59
29 lines
2817 bytes
2817 bytes
After reading through all of the messages on this board, I finally concluded that, in order to use any compiled class files, all I needed to do was put them in a library and add the library to my project. I am trying to use the SMTP function in IPWorks. My project has the IPworks library as a required library. The code is very simple and is just the creation of an SMTP object with associated methods for addressing and sending. It works fine from within JBuilder but will not work with the jar from the command line. I get the following error listing given below. Why is the source unknown if the library is included in my project? I can see the IP works directory and jar in the classpath statement JBuilder displays during compilation so I do not know why the class files are not being used. Can anyone help?
Thanks,
Roy
naraprd<mrsship$ cd
naraprd<mrsship$ mailtest.^?
ksh: mailtest.^?: not found
naraprd<mrsship$ jave^?
ksh: jave^?: not found
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:
<3c07e522$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news.dtag.de!news.gwi-ag.com!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,8c8c8ceeb08274f,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-11-30 12:09:39 PST From: "Roy McBrayer" <roymcbrayer@austin.rr.com> Sender: "Roy McBrayer" <roymcbrayer@austin.rr.com> Reply-To: "Roy McBrayer" <roymcbrayer@austin.rr.com> Subject: Libraries and unkown source 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: <3c07e522$1_2@dnews> Date: 30 Nov 2001 11:59:30 -0800 X-Trace: dnews 1007150370 207.105.83.65 (30 Nov 2001 11:59:30 -0800) Lines: 31 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news.dtag.de!news.gwi-ag.com!dnews