X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?windows-1256?Q?Ren=E9_Berber?= <r.berber@computer.org>
Subject:  Re: Problem with gcj and gij
Date:  Wed, 04 Jan 2006 10:59:53 -0600
Lines: 40
Message-ID: <dpguu6$g7s$1@sea.gmane.org>
References:  <002301c610ef$5ea61a50$01d9a8c0@keloas>
Mime-Version:  1.0
Content-Type:  text/plain; charset=windows-1256
Content-Transfer-Encoding:  quoted-printable
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
In-Reply-To: <002301c610ef$5ea61a50$01d9a8c0@keloas>
OpenPGP: url=ldap://keyserver.pgp.com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Alireza Ghasemi wrote:

> I tried to compile a simple Hello,world program with gcj. The code was :
> public class Welcome {
>  public static void main( String args[] )
>      {
>      System.out.println( "Welcome to Java Programming!" );
>      }
>  }
> I created Welcome.class with "gcj -C Welcome.java" .then I tried to execu=
te
> it with "gij Welcome.class" but I got the following error:
----------------------^^^^^^

That's not the way to use gij (or java), do:

gij Welcome

or

java Welcome

(i.e. the class extension is not used)

> Exception in thread "main" java.lang.NoClassDefFoundError: Welcome.class
>    <<No stacktrace available>>
>=20
> Can anyone help me run my program?

And gij 3.4.4 is broken as Gerrit said, but you probably have another versi=
on
because yours seems to be working, otherwise you would have seen:

Segmentation fault (core dumped)

and a "gij.exe.stackdump" file produced.
--=20
Ren=E9 Berber



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

