Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

EDIT

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.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

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!

share|improve this answer
    
ok, check my update also please. –  Anonymous12345 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? –  Nick Kavadias 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? –  Anonymous12345 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. –  Nick Kavadias May 28 '10 at 14:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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