Cannot run java as regular linux user.

Posted by Roger on Server Fault See other posts from Server Fault or by Roger
Published on 2011-01-10T23:03:52Z Indexed on 2011/01/10 23:55 UTC
Read the original article Hit count: 258

Filed under:
|

I am having problems trying to run java as a normal user on linux. It runs fine as root user but not as a regular user.

Any help would be apreciated.

Thanks

root@pro1 [~]# which java
/usr/local/jdk/bin/java
root@pro1 [~]# java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
root@pro1 [~]# su istream
istream@xxxxxxxxx [/root]# which java
/usr/local/jdk/bin/java
istream@xxxxxxxxx [/root]# java -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
istream@xxxxxxxxx [/root]#

© Server Fault or respective owner

Related posts about java

Related posts about java-runtime