Jvm 1.5

hello

please excuse me for my bad english.

i have a question.

i had installed the wildfire server (2.4.1) on an suse 9.3 linux vserver.

then i had installed the jre 1.5.0.06 from sun but when i will start the server i become only the error:

No suitable Java Virtual Machine could be found on your system.

The version of the JVM must be at least 1.5.

Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

what can i do to fix it.

thx for help

First, please switch to Wildfire 2.4.2 (just released). Unfortunately, there was a problem in our build process so we had to make another release.

Wildfire is telling you that it can’'t find Java. Basically, you just need to set the INSTALL4J_JAVA_HOME environment variable to point to the directory where you installed Java.

Regards,

Matt

i’'ve update my wildfire version to 2.4.2 and have changed the INSTALL4J_JAVA_HOME environment variable. now i get the same error but more detailed:

testing JVM in /opt/wildfire/jre …

testing JVM in /usr …

testing JVM in /usr/java/j2re1.4.2_10 …

testing JVM in /usr/java/jre1.5.0_06 …

testing JVM in /usr/lib/java/jre …

testing JVM in /usr/lib/java …

testing JVM in /usr/lib/jre …

testing JVM in /usr/lib/jvm/java …

No suitable Java Virtual Machine could be found on your system.

The version of the JVM must be at least 1.5.

Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

You can also try to delete the JVM cache file /root/.install4j

i’'ve also delete the .install4j in my homedirectory but nothing had changed.

I am having the same problem on a new VPS I just got.

If I run:

/usr/java/jre1.5.0_06/bin/java -Xms8m -Xmx16m -version

I get:

java version “1.5.0_06”

Java™ 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)

Java HotSpot™ Server VM (build 1.5.0_06-b05, mixed mode)

Everything looks good right? Well, whenever I run /opt/wildfire/wildfire I get this error:

/wildfire start

testing JVM in /opt/wildfire/jre …

testing JVM in /usr/java/jdk1.5.0_06 …

testing JVM in /usr/java/jre1.5.0_06 …

No suitable Java Virtual Machine could be found on your system.

The version of the JVM must be at least 1.5.

Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

You can also try to delete the JVM cache file /root/.install4j

I have edited wildfire to have this entry for ADD_VM_PARAMS:

INSTALL4J_ADD_VM_PARAMS="-Xms8m -Xmx16m"

But to be perfectly honest I don’‘t think it’‘s listening. I also tried changing the INSTALL4J_JAVA_HOME_OVERRIDE param to something bogus and got ansolutely no difference in errors. If it’‘s actually an OVERRIDE it doesn’'t do a very good job…

Any more hints or ideas to help here?

Hi,

so you may want to edit the code around the exit (line 209 for 2.5.0’'s bin/wildfire) from

echo You can also try to delete the JVM cache file $HOME/.install4j

exit 83

fi

/code

to

echo You can also try to delete the JVM cache file $HOME/.install4j

#exit 83

app_java_home=/usr/java/jre1.5.0_06

fi

/code

This should help you to get the script executed, and hopefully you can launch Wifi.

LG

Booya!

That worked man. Thanks!

I have a VPS, have exactly the same problem, version number everything… my jre is installed in

/usr/local/jdk/jre1.5.0_06

so i put:

app_java_home=/usr/local/jdk/jre1.5.0_06

in the file as suggested

No Luck, same output:

root@hspc /opt/wildfire/bin# ./wildfire start

testing JVM in /opt/wildfire/jre …

testing JVM in /usr/local/jdk …

testing JVM in /usr/java …

testing JVM in /usr/java/jre …

testing JVM in /usr/java/jre1.5.0_06 …

testing JVM in /usr/local/jdk1.5.0_05 …

testing JVM in /usr/local/jre …

No suitable Java Virtual Machine could be found on your system.

The version of the JVM must be at least 1.5.

Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

You can also try to delete the JVM cache file /root/.install4j

Hi,

did you also comment the “exit” to “#exit”?

LG

… I forgot to do that… however even when I do, I get a completely different error… -_-;

root@hspc /opt/wildfire/bin# wildfire start

testing JVM in /opt/wildfire/jre …

testing JVM in /usr/local/jdk …

testing JVM in /usr/java …

testing JVM in /usr/java/jre …

testing JVM in /usr/java/jre1.5.0_06 …

testing JVM in /usr/local/jdk1.5.0_05 …

testing JVM in /usr/local/jre …

No suitable Java Virtual Machine could be found on your system.

The version of the JVM must be at least 1.5.

Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

You can also try to delete the JVM cache file /root/.install4j

Starting wildfire

nohup: appending output to `nohup.out’’

/usr/local/bin/wildfire: line 255: -Dinstall4j.jvmDir=/usr/local/jdk/jre1.5.0_06: No such file or directory

But…

root@hspc /opt/wildfire/bin# /usr/local/jdk/jre1.5.0_06

-bash: /usr/local/jdk/jre1.5.0_06: is[/b] a directory

My nohup.out output:

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

Message was edited by: fishyghost

Hi,

"[i]nohup: appending output to `nohup.out’’

/usr/local/bin/wildfire: line 255: -Dinstall4j.jvmDir=/usr/local/jdk/jre1.5.0_06: No such file or directory[/i]" should not be displayed. Is it possible that you did copy this line below the line which launches Wifi?

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.[/i]

it seems that you don’'t have enough free memory. Try to set Xmx and Xms in the script:

INSTALL4J_ADD_VM_PARAMS="-Xms8m -Xmx16m"

I wonder how much free memory your partition has, this seems to be a problem with a lot of virtual servers.

LG

My VPS has a maximum of 1.5GB of RAM for short periods (less that 5minutes) at other times I can use 768MB Maximum. However there are blocks in the Virtuozzo Kernel to stop one process on its own from using up all the avaliable ram; java tries to do this, and of course fails. Anyway… I am going to reinstall Wildfire from the RPM… And just edit those three lines and see what happens

Message was edited by: fishyghost

It works, I feel in some later release of Wifi you should include a file for loading wifi on a VPS server e.g. with the Xmx32m etc things already punched in and a command line entry for the activation of Wifi with a custom Java dir

Message was edited by: fishyghost