::: Virtual Aleph ::: Virtualization Techniques: java.wrapper issue after Linux P2V conversion

VMworld 2017 Banner

VMworld 2017 Banner
VMworld 2017 Las Vegas

14 May, 2007

java.wrapper issue after Linux P2V conversion


Hi all,
after converting a linux box from physical to virtual could happen that the 'uname -m' command give some strange output - i?86 - and the execution of a perfectly working java programs give the error message 'Error: could not find libjava.so'. This is for java 1.3.1

from bugs.java.com here is the solution:
To fix the problem add | i?86 to the first case statement in
jdk1.3/bin/.java_wrapper and jdk1.3/jre/bin/.java_wrapper scripts
So the new case statement should look like:
case "`uname -m`" in
i[3-6]86 | ia32 | ia64 | i?86) # | i?86 is new
proc=i386
;;
# the rest is the same

NOTE: This solution has been only been tested on a Intel Pentuim 4 running
Slackware Linux Version 7.1 Kernel 2.2.16


I've tested it on RedHat 6.1 virtualized on VI 3.0.1, too.

The full article can be found in java bug ID 4414152