Subject: kern/36505: java doesn't work anymore
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Bernd Ernesti <pr200705@veego.de>
List: netbsd-bugs
Date: 06/17/2007 11:55:00
>Number:         36505
>Category:       kern
>Synopsis:       java doesn't work anymore
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 17 11:55:00 +0000 2007
>Originator:     Bernd Ernesti
>Release:        NetBSD 4.99.20
>Organization:
	
>Environment:
System: NetBSD 4.99.20 as of 2007-06-17 11:00 UTC
Architecture: i386
Machine: i386
>Description:
	The postinstall script of the java 1.5 packages fails to create the
	classes.jsa file. This happend with the NetBSD native version, but the
	same command line option fails with the linux version too.

	I still have the linux package installed where the classes.jsa file
	was created during the installation, but running the same command now
	cause it to fail, so this is not a pkgsrc problem.

	Andrew Doran mentioned this:
With -client -Xshare:dump it works? Perhaps something has changed around how
much memory is reported to Java.

	It works with the '-client' option.

>How-To-Repeat:
	Run the following command, but remember to not do it as root, otherwise
	it will recreate a jsa file if it works:
 /usr/pkg/bin/sun15-java -Xshare:dump

This will result in the following output:
  Error occurred during initialization of VM
  Dumping a shared archive is not supported on the Server JVM.

Instead of
  Loading classes to share ... done.
  Rewriting and unlinking classes ... done.
  [..] 

>Fix:

>Unformatted: