Name: szC45993 Date: 06/01/99
The Tonga/src/nsk/coverage/zip001 shows that
HotSpot Client VM (1.3beta, mixed mode, build g)
crashs (and the corresponding javac also) if CLASSPATH environment
variable additionally points to zip-file which contains, for example,
the simple class. The test example is placed below.
See LOG:
[#] cd D:/nsk/coverage/zip001
[#] ls -l
...
-rwcrwxrwa 1 Administrators None 74 May 31 22:45 exmpl.java
-rwcrwxrwa 1 Administrators None 113 May 31 22:44 tst.java
...
[#] c:/jdk1.3C/bin/javac exmpl.java
...
creation of zip-archives, containing only exmpl.class
(for Solaris: novo7% zip exmpl exmpl.class)
...
[#] ls -l
...
-rwcrwxrwa 1 Administrators None 255 Jun 1 00:31 exmpl.class
-rwcrwxrwa 1 Administrators None 74 May 31 22:45 exmpl.java
-rwcrwxrwa 1 Administrators None 309 Jun 1 00:31 exmpl.zip
-rwcrwxrwa 1 Administrators None 113 May 31 22:44 tst.java
...
[#] c:/jdk1.3C/bin/java -version
java version "1.3"
HotSpot Client VM (1.3beta, mixed mode, build g)
[#] c:/jdk1.3C/bin/javac tst.java
[#] c:/jdk1.3C/bin/java tst
TST works fine!
[#] c:/jdk1.2/bin/java -version
java version "1.2"
HotSpot VM (1.0rc1, mixed mode, internal release build)
[#] c:/jdk1.2/bin/javac tst.java
[#] c:/jdk1.2/bin/java tst
TST works fine!
[#] export CLASSPATH="${CLASSPATH};."
[#] c:/jdk1.3C/bin/javac tst.java
[#] c:/jdk1.3C/bin/java tst
TST works fine!
[#] export CLASSPATH="${CLASSPATH};.;D:/nsk/coverage/zip001/exmpl.zip"
[#] c:/jdk1.3C/bin/javac tst.java
#
# HotSpot Virtual Machine Error, EXCEPTION_INT_DIVIDE_BY_ZERO
#
# Error ID: 4F533F57494E13120E43505002AD
#
abnormal program termination
[#] ls -l
...
-rwcrwxrwa 1 Administrators None 255 Jun 1 00:31 exmpl.class
-rwcrwxrwa 1 Administrators None 74 May 31 22:45 exmpl.java
-rwcrwxrwa 1 Administrators None 309 Jun 1 00:31 exmpl.zip
-rwcrwxrwa 1 Administrators None 415 Jun 1 00:32 tst.class
-rwcrwxrwa 1 Administrators None 113 May 31 22:44 tst.java
...
[#] c:/jdk1.3C/bin/java tst
TST works fine!
[#] export CLASSPATH="D:/nsk/coverage/zip001/exmpl.zip"
[#] c:/jdk1.3C/bin/javac tst.java
#
# HotSpot Virtual Machine Error, EXCEPTION_INT_DIVIDE_BY_ZERO
#
# Error ID: 4F533F57494E13120E43505002AD
#
abnormal program termination
[#] c:/jdk1.3C/bin/java tst
#
# HotSpot Virtual Machine Error, EXCEPTION_INT_DIVIDE_BY_ZERO
#
# Error ID: 4F533F57494E13120E43505002AD
#
abnormal program termination
[#] c:/jdk1.2/bin/javac tst.java
[#] c:/jdk1.2/bin/java tst
Exception in thread "main" java.lang.NoClassDefFoundError: tst
SOURCES:
========
//--------------------- tst.java:
public class tst {
public static void main(String argv[]) {
System.out.println("TST works fine!");
}
}
//--------------------- exmpl.java:
public class exmpl {
public static void main(String argv[]) {
}
}
//---------------------
======================================================================