> Looks like a missing classpath problem from first sight, afraid I know
> little about GCJ.
>
> Hope this helps
no,
in the output below it shows, that both mail.jar and activation.jar are
found.
it must be something else which goes wrong.
8< snip:
>GNU Java version 4.2.1 (SUSE Linux) (i586-suse-linux)
> compiled by GNU C version 4.2.1 (SUSE Linux).
[quoted text clipped - 4 lines]
> /usr/share/java/libgcj-4.2.1.jar/ (system) (zip)
> /usr/lib/gcc/i58
8< snap:
thanks anyway ...
Matthias
DBloke - 07 Feb 2008 22:13 GMT
Hi Matthias,
Ok sorry I did notice one other thing I am not sure it is relevant but
below it looks like there is a disable flag for libgjc "--disable-libgcj"
not sure if this helps?
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.2.1
--enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib
--with-system-zlib --enable-shared --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--program-suffix=-4.2 --enable-version-specific-runtime-libs
--without-system-libunwind --with-cpu=generic --host=i586-suse-linux
Matthias Griem - 07 Feb 2008 22:32 GMT
> Hi Matthias,
>
[quoted text clipped - 13 lines]
> --program-suffix=-4.2 --enable-version-specific-runtime-libs
> --without-system-libunwind --with-cpu=generic --host=i586-suse-linux
sorry, iforgot to mention that the usual 'HelloWorld' can be compiled and
run successfully.
there must be something else, probably compile/link the two jar-files
mail.jar and activation.jar
any ideas?
Matthias
Lew - 08 Feb 2008 02:08 GMT
>> Hi Matthias,
>>
[quoted text clipped - 21 lines]
>
> any ideas?
Yes. GCJ is lame and not compatible with Java.

Signature
Lew
Mark Space - 07 Feb 2008 22:32 GMT
>>GNU Java version 4.2.1 (SUSE Linux) (i586-suse-linux)
>> compiled by GNU C version 4.2.1 (SUSE Linux).
[quoted text clipped - 6 lines]
>
> 8< snap:
It really does appear that there is a third .jar (at least) that is not
found:
MailSender.java:(.text+0x108): undefined reference to
`javax::mail::Session*
So MailSender can't find javax.mail.Seseion package.
Matthias Griem - 07 Feb 2008 22:51 GMT
>>>GNU Java version 4.2.1 (SUSE Linux) (i586-suse-linux)
>>> compiled by GNU C version 4.2.1 (SUSE Linux).
[quoted text clipped - 14 lines]
>
> So MailSender can't find javax.mail.Seseion package.
it is for shure in 'mail.jar' - i checked it.
And the Program works fine using javac/java or Eclipse
so there must be something else ... gcj does not
find/use/compile/link ???...
thanks anyway
Matthias