X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?windows-1256?Q?Ren=E9_Berber?= Subject: Re: Problem with gcj and gij Date: Wed, 04 Jan 2006 10:59:53 -0600 Lines: 40 Message-ID: References: <002301c610ef$5ea61a50$01d9a8c0 AT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 > <> >=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/