Compiling jar file using gcj
Swapnil Jain
swapnil@pisces.net.in
Mon Aug 31 10:13:00 GMT 2009
Hi,
now i am getting the following Segmentation fault error.
----- COMMAND -----
gcj -o iRemote.sh --main=iremote.controller.Controller --
classpath=RXTXcomm.jar:mysql-connector-java-5.1.7-bin.jar: iRemote.jar
RXTXcomm.jar mysql-connector-java-5.1.7-bin.jar -v
----- OUTPUT -----
Using built-in specs.
Reading specs from /usr/lib/gcc/i486-linux-gnu/4.3.3/libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcj-4.3/
README.Bugs --enable-languages=c$
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
COLLECT_GCC_OPTIONS='-ffilelist-file' '-o' 'iRemote.sh' '-v' '-
fbootclasspath=RXTXcomm.jar:mysql-connector-java-5.1.7-bin.jar:./:/usr/
share/java/libgcj-4.3$
COLLECT_GCC_OPTIONS='-ffilelist-file' '-o' 'iRemote.sh' '-v' '-
fbootclasspath=RXTXcomm.jar:mysql-connector-java-5.1.7-bin.jar:./:/usr/
share/java/libgcj-4.3$
/usr/lib/gcc/i486-linux-gnu/4.3.3/jc1 /tmp/ccy8jwzgjx -fhash-
synchronization -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-
exceptions -fkeep-inline$
GNU Java (Ubuntu 4.3.3-5ubuntu4) version 4.3.3 (i486-linux-gnu)
compiled by GNU C version 4.3.3, GMP version 4.2.4, MPFR
version 2.4.0.
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-
heapsize=128197
Class path starts here:
/tmp/cckBLqcq.zip/ (zip)
RXTXcomm.jar/ (system) (zip)
mysql-connector-java-5.1.7-bin.jar/ (system) (zip)
./ (system)
/usr/share/java/libgcj-4.3.jar/ (system) (zip)
java/io/BufferedWriter.java:0: internal compiler error: Segmentation
fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcj-4.3/README.Bugs> for instructions.
--------------------------------
Swapnil Jain
Indore
-----------------------------------------------
On 29-Aug-09, at 8:35 PM, Andrew Haley wrote:
> Swapnil Jain wrote:
>
>> i created a java project using netbeans. it uses 2 libraries
>> RXTXcomm.jar & mysql-connector-java.jar
>>
>> after building the project thru netbeans i get the iRemote.jar file
>> in
>> the dist folder.
>>
>> i want to compile it using gcj to create a binary file. i am using
>> the
>> following command
>>
>> gcj --classpath=lib/RXTXcomm.jar --
>> main=iremote.controller.Controller -o
>> iRemote.bin iRemote.jar
>>
>>
>> i get the following error
>>
>> /tmp/cc6GjIBu.o: In function
>> `iremote::device::light::innlink::SignalSender::SignalSender()':
>> iRemote.jar:(.text+0x180a7): undefined reference to
>> `gnu::io::CommPortIdentifier*
>
> You need to compile RXTXcomm.jar as well, not just point the classpath
> at it. i.e. it's a runtime dependency, not just a compile-time
> dependency.
>
> Andrew.
>
>
More information about the Java
mailing list