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 jar file using gcj


i am using ubuntu 9.04 32 bit desktop edition.

gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
gcj (Ubuntu 4.3.3-5ubuntu4) 4.3.3
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)

i created a java project using netbeans. it uses 2 libraries RXTXcomm.jar & mysql-connector-java-5.1.7-bin.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 -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

i am getting a segmentation fault error (file attached)


i am also attaching strace of gcc & gcj

Attachment: strace-gcc.txt
Description: Text document

Attachment: strace-gcj.txt
Description: Text document

Attachment: Segmentation fault.txt
Description: Text document



kindly let me know if any more information you need.

--------------------------------
Swapnil Jain
Indore
-----------------------------------------------



On 31-Aug-09, at 4:13 PM, Andrew Haley wrote:

Swapnil Jain wrote:
Hi,

now i am getting the following Segmentation fault error.

If you provide me with a complete test case (all files, all the commands you use) I'll have a look.

Andrew.


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