X-Spam-Check-By: sourceware.org
Date: Wed, 4 Jan 2006 10:08:34 +0100
From: "Gerrit P. Haase" <freeweb@nyckelpiga.de>
Reply-To: "Gerrit P. Haase" <freeweb@nyckelpiga.de>
Message-ID: <1591197667755.20060104100834@familiehaase.de>
To: "Alireza Ghasemi" <fooladgh@gmail.com>
CC: cygwin@cygwin.com
Subject: Re: Problem with gcj and gij
In-Reply-To: <002301c610ef$5ea61a50$01d9a8c0@keloas>
References: <002301c610ef$5ea61a50$01d9a8c0@keloas>
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
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 wrote:

> Hello,
> 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 execute
> it with "gij Welcome.class" but I got the following error:
> Exception in thread "main" java.lang.NoClassDefFoundError: Welcome.class
>    <<No stacktrace available>>

> Can anyone help me run my program?
> Thanks.


gij is broken.  You can use java to run the gcj compiled classfiles.


Gerrit
-- 
=^..^=                                     http://nyckelpiga.de/donate.html



--
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/

