Java in Ubuntu is usually located in /usr/lib/jvm/<your_java_version>
, but ubuntu usually creates a symlink to the current version of java in /usr/lib/jvm/java-7-sun
. A symbolic link may or may not exist depending on how you installed java on your computer, now that it is no longer available in repositories.
Go to /usr/lib/jvm/
and enter the ls
to find the appropriate folder where java is located. After you dot the spot, find the file named libjvm.so
.
In my machine, -vm arg looks like this:
-vm /usr/lib/jvm/java-6-sun/jre/lib/amd64/server/libjvm.so
Make sure the path is on a new line below -vm
or it will not work.
source share