I've connected to a linux-based server using ssh. Recently, I've installed JDK using following command:
sudo yum install java-1.6.0-openjdk-devel
And jdk installed successfully, but whenever I run command java
or javac
I get following error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Even, running command java -version
, will bring that error. When I try to give java more space using java -Xmx512m -Xms256m -version
, I'll get following error:
*** glibc detected *** java: double free or corruption (!prev): 0x00007fc84400e270 ***
*** glibc detected *** java: double free or corruption (fasttop): 0x00007fc8440089f0 ***
#
Aborted (core dumped)
How can I resolve this?
Thanks in advance