From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21237 invoked by alias); 31 Aug 2009 11:23:08 -0000 Received: (qmail 21229 invoked by uid 22791); 31 Aug 2009 11:23:07 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_50,J_CHICKENPOX_73,J_CHICKENPOX_83,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 31 Aug 2009 11:23:00 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7VBMwZr026544; Mon, 31 Aug 2009 07:22:58 -0400 Received: from zebedee.pink (vpn1-4-219.ams2.redhat.com [10.36.4.219]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7VBMvOD028173; Mon, 31 Aug 2009 07:22:57 -0400 Message-ID: <4A9BB290.7050708@redhat.com> Date: Mon, 31 Aug 2009 11:23:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.17 (X11/20081009) MIME-Version: 1.0 To: Swapnil Jain CC: java@gcc.gnu.org Subject: Re: Compiling jar file using gcj References: <5872C486-D36C-4D9D-BB9A-3EB13639CCD4@pisces.net.in> <4A9943CF.9050302@redhat.com> <2DEA1F47-3C0F-4FA4-AACB-AF5CC63413FE@pisces.net.in> <4A9BA957.1080604@redhat.com> <4CA58F47-3BC3-4750-AC1D-6044CA5B0B9C@pisces.net.in> In-Reply-To: <4CA58F47-3BC3-4750-AC1D-6044CA5B0B9C@pisces.net.in> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00066.txt.bz2 Swapnil Jain wrote: > 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 > > > kindly let me know if any more information you need. All files. I need to know how to get the exact same versions you are using. Of course, this includes RXTXcomm.jar. Andrew.