Can I install JRE/JDK/Java on my VPS?

Yes, you can however Java requires a lot of free RAM (memory) to create Java Virtual Machine so it may not work on smaller VPS plans. Example error message on a cPanel based Freedom plan VPS:

[email protected] [/usr/java/jre1.5.0/bin]# /usr/java/jre1.5.0/bin/java 
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

As you can see, the VPS does not have enough free memory to create JVM. An Enterprise level VPS plan may be able to use Java, but again it depends on how the memory is being used already in other programs e.g. cPanel, Apache, MySQL, etc.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

VZPP shows MySQL and httpd down?

If you have cPanel, this is due to incompatiblity between the VPS system and cPanel. The VPS...

What name servers do I use for my domains on my VPS?

Please register your private name servers using the tutorial that applies to your domain...

I would like to change the OS (operating system) of my VPS. How can I do that?

If you would like to change the OS of your VPS, you need to take a complete backup of any of your...

Which Linux flavor do you recommend for my VPS and why?

We recommend enterprise level operating systems such as CentOS. This is because it has the most...

I have a shared/reseller account. Why should I upgrade to VPS?

VPS is a virtual private server that gives you a separate process environment not shared by other...