I get this error almost when installation is finished:

/proc is not mounted; some java apps may fail
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Ignoring error generating classes.jsa

Why is this?

I just entered sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

Is there something I must do first? What is Proc?

If you need more input let me know. Thanks


Is there a way to test if the java machine works on the ubuntu server? Example, put a file which uses Java and then access it via the website to see if the server supports java.

Note: I have windows xp, using PuTTY to communicate with my Server, and on my own computer I have java installed also, so thats a bit confusing.


I'm sure your system has /proc it's a virtual filesystem used to access/config things relating to the kernel & system info.

how to check that java is working? compile something simple like hello world & try to run it!

  • ok, check my update also please. May 28 '10 at 14:17
  • So the first line is an error you can probably ignore, but 'Could not reserve enough space for object heap' sounds serious! how much free RAM does the server have? do you have swap? is this a VPS? May 28 '10 at 14:29
  • Actually, just checked and might be a RAM problem yes... Do you know of any way to stop or disable java, to check how much free ram there is without java activated? May 28 '10 at 14:39
  • 'installing' java the way you have will not take up any RAM, just disk space. It's not a service, just a compiler with some libraries. May 28 '10 at 14:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.