Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 84316 invoked from network); 20 Jun 2007 15:40:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2007 15:40:50 -0000 Received: (qmail 69847 invoked by uid 500); 20 Jun 2007 15:40:53 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 69826 invoked by uid 500); 20 Jun 2007 15:40:53 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 69800 invoked by uid 99); 20 Jun 2007 15:40:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 08:40:53 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 08:40:48 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7C30B7141E3 for ; Wed, 20 Jun 2007 08:40:28 -0700 (PDT) Message-ID: <17516792.1182354028505.JavaMail.jira@brutus> Date: Wed, 20 Jun 2007 08:40:28 -0700 (PDT) From: "Ivan Popov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3251) [jdktools][samsa] jdk\bin\java without extension throws NoClassDefFoundError In-Reply-To: <8129499.1172575805826.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ivan Popov updated HARMONY-3251: -------------------------------- Attachment: jdktools_samsa.patch Samsa wrapper checks for ".exe" extension of the started tools. However, if tool is started without extension Windows adds ".EXE" extension in upper case, which is not recognized by the wrapper. This lead to the described problem. I fixed samsa wrapper to convert tool name to lower case before checking for extension, this resolves any possible problem with case-insensitive file names on Windows. With attached patch both 'java' and 'javac' wrappers are successfully launched with and without extension: > jdk\bin\java -version Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. java version "1.5.0" pre-alpha : not complete or compatible svn = r548946, (Jun 20 2007), Windows/ia32/msvc 1310, debug build http://harmony.apache.org > jdk\bin\java.exe -version Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. java version "1.5.0" pre-alpha : not complete or compatible svn = r548946, (Jun 20 2007), Windows/ia32/msvc 1310, debug build http://harmony.apache.org > jdk\bin\javac -version Eclipse Java Compiler 0.755, 3.3.0 milestone-7, Copyright IBM Corp 2000, 2007. All rights reserved. > jdk\bin\javac.exe -version Eclipse Java Compiler 0.755, 3.3.0 milestone-7, Copyright IBM Corp 2000, 2007. All rights reserved. > [jdktools][samsa] jdk\bin\java without extension throws NoClassDefFoundError > ---------------------------------------------------------------------------- > > Key: HARMONY-3251 > URL: https://issues.apache.org/jira/browse/HARMONY-3251 > Project: Harmony > Issue Type: Bug > Components: JDK > Environment: Windows/ia32, harmony-jdk-r533073 > Reporter: Ivan Popov > Attachments: jdktools_samsa.patch > > > Java launcher from jdktools module fails on Windows if started without .exe extension. I've used HDK build (r512155) created with federated build. > > jdk\bin\java.exe -version > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r512155, (Feb 27 2007), Windows/ia32/msvc 1310, release build > http://incubator.apache.org/harmony > > jdk\bin\java -version > Uncaught exception in main: > java.lang.NoClassDefFoundError: org/apache/harmony/tools/java/EXE/Main > Caused by: java.lang.ClassNotFoundException: org.apache.harmony.tools.java.EXE.Main > at java.net.URLClassLoader.findClass(URLClassLoader.java:623) > at java.lang.ClassLoader.loadClass(ClassLoader.java:534) > at java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:920) > at java.lang.ClassLoader.loadClass(ClassLoader.java) > FAILED to invoke JVM. > Launcher from jdk/jre directory works fine in both cases: > > jdk\jre\bin\java.exe -version > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r512155, (Feb 27 2007), Windows/ia32/msvc 1310, release build > http://incubator.apache.org/harmony > > jdk\jre\bin\java -version > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r512155, (Feb 27 2007), Windows/ia32/msvc 1310, release build > http://incubator.apache.org/harmony -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.