Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 42001 invoked from network); 29 Nov 2000 16:59:09 -0000 Received: from analytik.analytikerna.se (192.58.197.10) by locus.apache.org with SMTP; 29 Nov 2000 16:59:09 -0000 Received: from lentus.se (IDENT:petern@dhcp-lin18 [192.168.105.68]) by analytik.analytikerna.se (8.9.3/8.9.3) with ESMTP id RAA29091 for ; Wed, 29 Nov 2000 17:54:40 +0100 (MET) Sender: petern@analytik.analytikerna.se Message-ID: <3A2535BB.3F2F5368@lentus.se> Date: Wed, 29 Nov 2000 17:58:35 +0100 From: Peter Nordlund Organization: Lentus AB X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: ant-dev@jakarta.apache.org Subject: Re: rmic fails with jdk/1.3.0 from IBM References: <20001128151042.86453.qmail@locus.apache.org> <3A23D29A.D85D136@lentus.se> <3A24BF7A.C6D30968@lentus.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi Stefan, Strings ... produces the same output as you get. >>strings $JAVA_HOME/bin/exe/rmic | grep Main Main-Class is '%s' Failed to load Main-Class manifest attribute from getMainAttributes Main-Class sun.rmi.rmic.Main Sorry for bothering you, but now that I knew that it worked ok for you, I started to investigate my problem more thorougly and backed a version of IBM jdk .... Eventually I found out what probably caused the failure. I had by misstake included suns 1.3.0/lib/tools.jar in my classpath. Somehow this seems to generate the failure. /Peter Stefan Bodewig wrote: > > Peter Nordlund wrote: > > > I downloaded 1.3.0 from IBM 17 nov 2000 and it fails. > > I can run IBMs rmic manually on the command line, but from inside > > ant it fails. > > I have an older version > > bodewig@bodewig ~/java/tests >java -version > java version "1.3.0" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) > Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20000623 (JIT enabled: jitc)) > > and it seems to work for me - I don't have a package starting with > com.sun.corba either, neither in tools.jar nor in dt.jar or rt.jar. > > The same class is not part of Sun's own JDK 1.3 for Linux either BTW, > there is a package com/sun/corba/se/idl but not > com/sun/corba/se/internal. > > My best guess would be that comand line rmic doesn't use > sun.rmi.rmic.Main. Does "strings JAVA_HOME/bin/exe/rmic | grep Main" > give a result similar to mine? > > bodewig@bodewig ~/tmp/rmic >strings /usr/local/java/jdk1.3/bin/exe/rmic | grep Main > Main-Class is '%s' > Failed to load Main-Class manifest attribute from > getMainAttributes > Main-Class > sun.rmi.rmic.Main > > Stefan