-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.2.0
-
sparc
-
solaris_2.6
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)
======================================================================
- relates to
-
JDK-4138619 Solaris is unable to exec() executable jar files
- Closed