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: root@vps [/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. A higher 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.
|
Add to Favourites
Print this Article |