Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4177807

Bug 4138619 not fixed in 1.2beta4 as claimed

    XMLWordPrintable

Details

    Description



      Name: tb29552 Date: 09/30/98


      Executable jar files still do not work under Solaris 2.6 with
      latest JDK for Solaris. Reference bug report 4138619.


      Java Version:

       > java -version
       java version "1.2"
       Solaris VM (build
       Solaris_JDK_1.2_01_dev04_beta4K, native threads,
       sunwjit)

      Test Program:

       > more HelloWorld.java
       public class HelloWorld {
         public static void main(String[] args) {
           System.out.println("Hello World");
         }
       }

      Manifest file:

       > more META-INF/MANIFEST.MF
       Manifest-Version: 1.0
       Main-Class: HelloWorld
       Name: HelloWorld.class

      Compile:

       > javac HelloWorld.java

      Create jar file with manifest:

       > jar cfm HelloWorld META-INF/MANIFEST.MF HelloWorld.class

      Give jar file executable permission:

       > chmod +x HelloWorld

      Try to execute the jar file:

       > HelloWorld
       HelloWorld: syntax error at line 1: `\2161 264\260\306\321\343\330\340\330\344\330r`\3
       00\266\321\202
       [deleted rest]


      Run jar file using -jar option:

       > java -jar HelloWorld
       Hello World


      OS Info:
       Hostname: cypher
       Hostid: 809344bc
       Release: 5.6
       Kernel architecture: sun4u
       Application architecture: sparc
       Hardware provider: Sun_Microsystems
       Domain:
       Kernel version: SunOS 5.6 Generic 105181-06
         April 1998
      (Review ID: 39733)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              zlisunw Zhenghua Li (Inactive)
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: