February 24th, 2003, 03:11 PM
I have written a program that compiles and runs via Forte, that uses an email facitlity which works.
I wish to run this from PC startup via a batch file.
However I get the NoClassDefFoundError: Javax/Mail/MessagingException.
I have ensured that the classpath is looking at the relevant .jar files - .;c:\Scanner\AdobeConnectables;c:\java;c:\java\package.
What have I missed?
Any takers out there?
Thanks in advance.
February 24th, 2003, 09:52 PM
February 25th, 2003, 01:50 AM
I am afraid it is. I copied all the .jar files in C:\Java\j2sdk1.4.1\jre\lib\ext and pasted them into C:\Java\Package.
Nice and neat but absolutely no difference.
February 25th, 2003, 10:32 AM
the javax mail package does not come with the standard 1.4 sdk. it is an optional download. Please see that link I posted.
February 25th, 2003, 12:21 PM
These are the .jar files I have included in my c:\Java\Packages:
Like I said in my first post, it works through Forte but not through the command line.
February 25th, 2003, 12:48 PM
In the classpath you need to specify individual jar files seperately. I.E.,
Or you need to define a new extensions directory using the method described here.
March 1st, 2003, 08:15 AM
Nemi, you rule.
That has been the first suggestion that has actually worked that I have had from this forum.
Mutch has a grassy arse. ('Thanks' in pigeon mexican)