Harmony
  1. Harmony
  2. HARMONY-3251

[jdktools][samsa] jdk\bin\java without extension throws NoClassDefFoundError

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JDK
    • Labels:
      None
    • Environment:
      Windows/ia32, harmony-jdk-r533073
    • Patch Info:
      Patch Available

      Description

      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

        Activity

        Ivan Popov created issue -
        Ivan Popov made changes -
        Field Original Value New Value
        Summary [jdktools][launcher] jdk\bin\java without extension throws NoClassDefFoundError [jdktools][samsa] jdk\bin\java without extension throws NoClassDefFoundError
        Environment Windows/ia32 Windows/ia32, harmony-jdk-r533073
        Ivan Popov made changes -
        Attachment jdktools_samsa.patch [ 12360212 ]
        Ivan Popov made changes -
        Patch Info [Patch Available]
        Gregory Shimansky made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Gregory Shimansky made changes -
        Assignee Gregory Shimansky [ gshimansky ]
        Ivan Popov made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Gregory Shimansky
            Reporter:
            Ivan Popov
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development