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: compiling with gcj


thanks for your very prompt response. and yet i am having more problems :(


With gcj, all the dependencies of your program must be compiled and
linked into the program.  In the above, you are only compiling
SendMailMessage.java.  But you also need to compile TextTools.java and
link it in.

Try:

gcj -c .../SendMailMessage.java
gcj -c .../TextTools.java
gcj --main=com.planbtechnologies.SendMailMessage *.o

that moved things along. it was the *.o that i needed. so i did the first 2 commands. no problem. i did the 3rd command and it then complained that it could not find the classes for references in TextTools. no surprise there. one of the dependencies in TextTools live in j2ee.jar. so i tried to compile it and got:


11:39:26.44 - D:\MinGW\bin>gcj D:\java\j2sdkee1.2.1\lib\j2ee.jar -v -c
Reading specs from ../lib/gcc-lib/mingw32/3.2/specs
Reading specs from ../lib/gcc-lib/mingw32/3.2/../../../libgcj.spec
rename spec lib to liborig
Configured with: /extra/src/gcc/gcc-3.2/configure --prefix=/extra/wingcc --build=i686-pc-linux-gnu --host=mingw32 --target=
mingw32 --enable-languages=c,c++,java --with-gcc --with-gnu-as --with-gnu-ld --with-as=/extra/xgcc/bin/mingw32-as --with-ld
=/extra/xgcc/bin/mingw32-ld --enable-threads=win32 --disable-nls --disable-win32-registry --disable-shared --disable-debug
--disable-multilib --without-newlib --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-
debug --enable-interpreter --enable-hash-synchronization
Thread model: win32
gcc version 3.2 (mingw special 20020817-1)
..\lib\gcc-lib\mingw32\3.2\jc1.exe D:\java\j2sdkee1.2.1\lib\j2ee.jar -fuse-divide-subroutine -fcheck-references -fuse-boeh
m-gc -fkeep-inline-functions -quiet -dumpbase j2ee.jar -g1 -version -o C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccQTaaaa.s
GNU Java version 3.2 (mingw special 20020817-1) (mingw32)
compiled by GNU C version 3.2 (mingw special 20020817-1).
Class path starts here:
D:\Inetpub\classes/
D:\Inetpub\VitalID\VitalID\WEB-INF\classes/
D:\Inetpub\horizonweb\WEB-INF\classes/
d:\inetpub\tomcat\lib\servlet.jar/ (zip)
D:\java\j2sdkee1.2.1\lib\j2ee.jar/ (zip)
D:\java\payflowpro\Verisign.jar/ (zip)
d:\java\miscClasses/
D:\Inetpub\VitalID\trackit\WEB-INF\classes/
"C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar"/
"C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar"/
"C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar"/
D:\Inetpub\VitalID\trackitdev\WEB-INF\classes\/
../lib/gcc-lib/../../share/java/libgcj-3.2.jar/ (system) (zip)
javax/rmi/PortableRemoteObject.java: In class `javax.rmi.PortableRemoteObject':
javax/rmi/PortableRemoteObject.java: In method `javax.rmi.PortableRemoteObject.createDelegateIfSpecified(java.lang.String)'
:
javax/rmi/PortableRemoteObject.java:169: cannot find file for class sun.security.action.GetPropertyAction
javax/rmi/PortableRemoteObject.java:169: cannot find file for class sun.security.action.GetPropertyAction
javax/rmi/PortableRemoteObject.java:169: confused by earlier errors, bailing out


and clues about this one?


Adam Satcowitz Plan B Technologies, Inc. 212.242.5654


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