Parallels Forums
> Server Virtualization Products Discussion > Parallels Virtuozzo Containers for Linux > General Discussion  
Problems installing JDK 5 on VM with Debian 4.0  
  

Problems installing JDK 5 on VM with Debian 4.0

Jan 16, 2008, 05:27 PM
#1  

ulf80
Junior Member


Join: Jan 2008
Posts: 1
Problems installing JDK 5 on VM with Debian 4.0
I've rented a virtual server at a local company which uses Virtuozzo 3.0.0 on their hostsystem. I've installed Debian 4.0 on my VM.

When I try to install the package "sun-java5-bin" I get the following error message:

Richte sun-java5-bin ein (1.5.0-10-3) ...
Could not create the Java virtual machine.
dpkg: Fehler beim Bearbeiten von sun-java5-bin (--configure):
Unterprozess post-installation script gab den Fehlerwert 1 zurück

Roughly translated this means:

Configuring sun-java5-bin ein (1.5.0-10-3) ...
Could not create the Java virtual machine.
dpkg: Error processing sun-java5-bin (--configure):
Sub process post-installation script returned error code 1

I already talked to my hoster and posted this problem on a debian specific forum without any satisfying answers.

I hope anyone here can help me.

I want to run Tomcat 5.5 on that VM but without a JVM I fear I can't really run it.
Jun 28, 2008, 02:48 AM
#2  

plux
Junior Member


Join: Apr 2008
Posts: 7
Hi,
You can do this:
1st:
Code:
#vim /var/lib/dpkg/info/sun-java5-bin.postinst
2nd: Comment this line (In my system line 72)
Code:
$basedir/bin/java -client -Xshare:dump > /dev/null
after commenting is should look like:
Code:
# $basedir/bin/java -client -Xshare:dump > /dev/null
(also can do vim +72 /var/lib/dpkg/info/sun-java5-bin.postinst)

and try apt-get install sun-java5-bin again


Thread tools Display modes
Linear Mode