Thread: Odd Java Issue
View Single Post
  #1   (View Single Post)  
Old 12th May 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 507
Default Odd Java Issue

I updated Java 1.5 to the latest version yesterday only because one port demanded it. To be thorough, I installed both jdk and jre (both as binaries), and pointed the browser_plugins entry to the jre libjavaplugin_oji.so. "about: plugins" shows the right plugins are installed. So far so good.

The odd thing is that the new plugin generates an error on the standard Sun Java test page (http://www.java.com/en/download/help/testvm.xml). The error message in the java console window reads:

Code:
Java Plug-in 1.5.0
Using JRE version 1.5.0 Java HotSpot(TM) Client VM
User home directory = /home/xxxx
...
TestVM 4.18 sc
Copyright (c) 2008 Sun Microsystems, Inc.
All Rights Reserved.
Current JRE version set in file: 605
java.lang.NumberFormatException: For input string: " "
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:447)
	at java.lang.Integer.<init>(Integer.java:620)
	at testvmDynamicJavaCom.init(testvmDynamicJavaCom.java:195)
	at sun.applet.AppletPanel.run(AppletPanel.java:378)
	at java.lang.Thread.run(Thread.java:595)
Other various java testers pass fine. But I have always considered Sun's test to be the best one, since it is their product after all.

Has anyone else seen this? I'm on 6.3, Gnome 2.22.1, and the behavior is the same on three Gecko-based browsers. The old linux Java 1.4 still works as expected.
Reply With Quote