This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 83081 - Wrong JDK version on Unix systems
Summary: Wrong JDK version on Unix systems
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: Kirill Sorokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-21 13:03 UTC by dlipin
Modified: 2007-09-25 18:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dlipin 2006-08-21 13:03:48 UTC
On Linux and Solaris an error occured while searching JDK with the following 
log:
executing command: /usr/jdk/entsys-j2se/bin/java -classpath /tmp TestJDK, in 
directory: null
[2006/08/18 19:09:54]:         [stderr]: Exception in thread "main" java.lang.
ClassFormatError: Incompatible magic value -272646673 in class file TestJDK
[2006/08/18 19:09:54]:         [stderr]: 	at java.lang.ClassLoader.
defineClass1(Native Method)
[2006/08/18 19:09:54]:         [stderr]: 	at java.lang.ClassLoader.
defineClass(ClassLoader.java:620)
[2006/08/18 19:09:54]:         [stderr]: 	at java.security.SecureClassLoader.
defineClass(SecureClassLoader.java:124)
[2006/08/18 19:09:54]:         [stderr]: 	at java.net.URLClassLoader.
defineClass(URLClassLoader.java:260)
[2006/08/18 19:09:54]:         [stderr]: 	at java.net.URLClassLoader.
access$100(URLClassLoader.java:56)
[2006/08/18 19:09:54]:         [stderr]: 	at java.net.URLClassLoader$1.
run(URLClassLoader.java:195)
[2006/08/18 19:09:54]:         [stderr]: 	at java.security.AccessController.
doPrivileged(Native Method)
[2006/08/18 19:09:54]:         [stderr]: 	at java.net.URLClassLoader.
findClass(URLClassLoader.java:188)
[2006/08/18 19:09:54]:         [stderr]: 	at java.lang.ClassLoader.
loadClass(ClassLoader.java:306)
[2006/08/18 19:09:54]:         [stderr]: 	at sun.misc.Launcher$AppClassLoader.
loadClass(Launcher.java:268)
[2006/08/18 19:09:54]:         [stderr]: 	at java.lang.ClassLoader.
loadClass(ClassLoader.java:251)
[2006/08/18 19:09:54]:         [stderr]: 	at java.lang.ClassLoader.
loadClassInternal(ClassLoader.java:319)
[2006/08/18 19:09:54]:         [return]: 1


It results in the wrong version in JDKs list and some JDKs are missing at all.
Comment 1 dlipin 2006-08-22 17:53:48 UTC
Fixed.

Checking in installer/utils/FileUtils.java;
/cvs/darkhorse/configurator/.common/src/org/netbeans/installer/utils/FileUtils.
java,v  <--  FileUtils.java
new revision: 1.15; previous revision: 1.14
done