From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57545 invoked by alias); 9 Nov 2016 13:29:44 -0000 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 Received: (qmail 57510 invoked by uid 89); 9 Nov 2016 13:29:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=haley, Haley X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Nov 2016 13:29:40 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C67707F368; Wed, 9 Nov 2016 13:29:39 +0000 (UTC) Received: from zebedee.pink (ovpn-116-26.phx2.redhat.com [10.3.116.26]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uA9DTco3004322; Wed, 9 Nov 2016 08:29:38 -0500 Subject: Re: Fwd: gcj can not import packages To: mohan NMH References: Cc: java@gcc.gnu.org From: Andrew Haley Message-ID: <9335b6e8-ed7f-1e8d-4022-656da4681770@redhat.com> Date: Wed, 09 Nov 2016 13:29:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00003.txt.bz2 On 09/11/16 12:49, mohan NMH wrote: > On Wed, Nov 9, 2016 at 5:55 PM, Andrew Haley wrote: >> On 09/11/16 11:29, mohan NMH wrote: >>> Can someone help me to understand why gcj can not import packages >>> while javac can? Any CLASSPATH setting required? >> >> java.util.Objects is Java 1.7. gcj is at the level of 1.4 - 1.5. > > Thanks Andrew. Could you please let me know what makes gcj at level of > 1.4 - 1.5? Is it /usr/share/java/eclipse-ecj.jar? It's the GCJ runtime library. > Before this installation I tried with > --with-ecj-jar=/usr/share/java/ecj4.4.jar. But the gcj failed to load > org.eclipse.jdt.internal.compiler.batch.GCCMain.class. The ecj4.4.jar > contains org.eclipse.jdt.internal.compiler.batch.Main.class while > eclipse-ecj.jar contains > org.eclipse.jdt.internal.compiler.batch.GCCMain.class. Therefore I > chose eclipse-ecj.jar > > Please advise how to upgrade gcj to Java 1.8 It'd take a few programmer-years of work, I suspect. Maybe one programmer could do it in a year, but that programmer would have to be very expert. GCJ is obsolete and its sources have been deleted from GCC. Andrew.