This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: javax.mail, classpath and classpathx


On Mon, 2003-10-27 at 16:56, chris burdess wrote: 
> Ãyvind Harboe wrote:
> > Here is the sequence that worked this time(Linux Redhat9):
> > 
> > $ cvs -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/classpathx co mail
> > $ ./configure
> > $ make
> > 
> > I only have GCJ installed, no javac. lib/inetlib.jar and
> > lib/activation.jar are indeed present. 
> 
> and it compiles? what version of (lib)gcj are you using?

[oyvind@famine mail]$ gcj -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libgcj.spec
rename spec lib to liborig
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
[oyvind@famine mail]$ 


> > I now get further, but it still does not work:
> > 
> > - When I try to run my example program from within Suns JRE, I get the
> > error below. I can't find any references to it in classpath or
> > classpathx
> > 
> > java.lang.NoClassDefFoundError: javax/security/sasl/SaslException
> 
> you need either j2re 1.4 or the javax-security.jar from gnu crypto at
> runtime. i will make this explicit in the documentation. the
> javax-security.jar is included in inetlib cvs.
> 
> you will also require an implementation of jsse (j2re 1.4, sun's jsse
> implementation, and jessie are known to work) if you want to do starttls
> (option enabled by default, see the provider javadoc).

Ah! Much better. I'm now able to send email from within the JRE w/these classes. 

The next step is to try to get GCJ to compile the thing:

\thisiscool-gcc\gcc-3.4\bin\gcj -c --classpath javax-security.jar -o inetlib.o inetlib.jar 
gnu/inet/smtp/SMTPConnection.java: In class `gnu.inet.smtp.SMTPConnection':
gnu/inet/smtp/SMTPConnection.java: In method `gnu.inet.smtp.SMTPConnection.start
tls()':
gnu/inet/smtp/SMTPConnection.java:476: error: cannot find file for class javax.n
et.ssl.SSLSocketFactory
gnu/inet/smtp/SMTPConnection.java:476: error: cannot find file for class javax.n
et.ssl.SSLSocketFactory
gnu/inet/smtp/SMTPConnection.java:476: error: cannot find file for class javax.n
et.ssl.SSLSocketFactory
gnu/inet/smtp/SMTPConnection.java:476: internal compiler error: Segmentation fau
lt
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


Below is the beginning of my "build procedure"

@echo off
\thisiscool-gcc\gcc-3.4\bin\gcj -c -o javax-security.o javax-security.jar 
\thisiscool-gcc\gcc-3.4\bin\gcj -c --classpath javax-security.jar -o inetlib.o inetlib.jar 
\thisiscool-gcc\gcc-3.4\bin\gcj -c --classpath inetlib.jar;activation.jar -o gnumail.o gnumail.jar
\thisiscool-gcc\gcc-3.4\bin\gcj -c -o activation.o activation.jar
\thisiscool-gcc\gcc-3.4\bin\gcj -c --classpath gnumail.jar;inetlib.jar -o smtp.o smtp.jar
\thisiscool-gcc\gcc-3.4\bin\gcj --classpath gnumail.jar -c -o send.o Send.class





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]