A
AC
I'm a beginner to programming in Java (I'm switching over from VB because
I'm in a company that is beginning the transition from MS environments and I
need to start porting software to a platform that can run on Linux and
Windows machines). I'm telling you this so you'll be kind
Anyways, I'm using the NetBeans 4.0 IDE and have a small application that
downloads some data from one of our internal web sites, massages the data
and sends it out via email. I've managed to get to the email point, and
downloaded the JAF and JavaMail APIs, sticking mail.jar and activation.jar
into the jre/lib/ext directory (I'm actually doing the the development on a
Windows box). I can run my application without a hitch in NetBeans, but
when I try to run the jar file straight from the command prompt I get the
following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/mail/Message
I don't have any of the jar files set in the NetBeans project itself, so I'm
assuming I don't need to muck around with class paths because it is in the
jre/lib/ext. Is there something I'm missing?
I'm in a company that is beginning the transition from MS environments and I
need to start porting software to a platform that can run on Linux and
Windows machines). I'm telling you this so you'll be kind
Anyways, I'm using the NetBeans 4.0 IDE and have a small application that
downloads some data from one of our internal web sites, massages the data
and sends it out via email. I've managed to get to the email point, and
downloaded the JAF and JavaMail APIs, sticking mail.jar and activation.jar
into the jre/lib/ext directory (I'm actually doing the the development on a
Windows box). I can run my application without a hitch in NetBeans, but
when I try to run the jar file straight from the command prompt I get the
following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/mail/Message
I don't have any of the jar files set in the NetBeans project itself, so I'm
assuming I don't need to muck around with class paths because it is in the
jre/lib/ext. Is there something I'm missing?