 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Yam Sipes Guest
|
Posted: Thu Dec 04, 2008 6:47 am Post subject: Neophyte jar-making question... |
|
|
Using JBuilder 2008, I have a small app that has the JExcel library in the
"referenced libraries.
So, when I run the app from JBuilder, it's perfect, but when I use JB to
create an jar, the jar runs fine, but I get the exception
java.lang.NoClassDefFoundError
and it specifies a class in the JExcel API. Now, I understand that java
doesn't know where to look for the JExcel API jar (jxl.jar), but what I'd
prefer to do is import jxl.jar into the project and get it included in the
final executable jar.
Any thoughts on what I need to do?
Thanks. |
|
| Back to top |
|
 |
EricF Guest
|
Posted: Thu Dec 04, 2008 10:18 am Post subject: Re: Neophyte jar-making question... |
|
|
In article <Xns9B69C9697A91yamsipes (AT) 74 (DOT) 209.136.84>, Yam Sipes <nobody (AT) nowhere (DOT) com> wrote:
| Quote: | Using JBuilder 2008, I have a small app that has the JExcel library in the
"referenced libraries.
So, when I run the app from JBuilder, it's perfect, but when I use JB to
create an jar, the jar runs fine, but I get the exception
java.lang.NoClassDefFoundError
and it specifies a class in the JExcel API. Now, I understand that java
doesn't know where to look for the JExcel API jar (jxl.jar), but what I'd
prefer to do is import jxl.jar into the project and get it included in the
final executable jar.
Any thoughts on what I need to do?
Thanks.
|
Add jxl.jar to the classpath. |
|
| Back to top |
|
 |
Yam Sipes Guest
|
Posted: Thu Dec 04, 2008 8:55 pm Post subject: Re: Neophyte jar-making question... |
|
|
efriedNoSpam (AT) yahoo (DOT) com (EricF) wrote in
news:oQIZk.3570$UI2.2136 (AT) bignews6 (DOT) bellsouth.net:
| Quote: |
Add jxl.jar to the classpath.
|
Err... What mean? I added the .jar location to the Win classpath env var.
No dice. Do you mean add the ,jar location to the classpath in JBuilder?
Tried that, too.
May I contact you by Yahoo Messenger/email? (about this - not "commercial
stuff" ) |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|