From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17833 invoked by alias); 24 Oct 2008 15:34:25 -0000 Received: (qmail 17741 invoked by uid 22791); 24 Oct 2008 15:34:24 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 24 Oct 2008 15:33:38 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KtOfO-0001Nf-9P for java@gcc.gnu.org; Fri, 24 Oct 2008 08:33:34 -0700 Message-ID: <20152337.post@talk.nabble.com> Date: Fri, 24 Oct 2008 15:34:00 -0000 From: Little To: java@gcc.gnu.org Subject: gcj 4.3.2 on windows MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: little369@gmail.com 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: 2008-10/txt/msg00024.txt.bz2 Hi, I tried gcj on windows (mingw). Unfortunately, I could not make it work. I set two environment variables, PATH to gcj, and CLASSPATH to ecj.jar. The error message is as follow: C:\TEMP\java>gcj -C j1.java Exception in thread "main" java.lang.NullPointerException <> The file j1.java prints "Hello World". If I used javac (from SUN.COM) to get class file first, gcj can generate .exe. For example javac j1.java gcj --main=j1 j1.class Executable file a.exe was generated. a.exe works correctly, and prints "Hello World". Could you provide information to help me? thanks. -- View this message in context: http://www.nabble.com/gcj-4.3.2-on-windows-tp20152337p20152337.html Sent from the gcc - java mailing list archive at Nabble.com.