delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/04/12:02:21

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?windows-1256?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT 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 AT keloas>
Mime-Version: 1.0
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 AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019