I
have problems when installing ireport in linux (linux tea),
notifications appear as below:
Java
HotSpot(TM) Server VM warning: ignoring option MaxPermSize=512m;
support was removed in 8.0
The
problem turned out to be the JDK that we install, I use the JDK
version 1.8, while the ireport not support ireport 1.8,
we
have to do is install the JDK version 1.7 and change the access JDK 7
to be first.
I
did command :
- see JDK version that we use :
java
-version
- remove jdk
sudo update-alternatives
--remove "java" "/usr/lib/jvm/jdk[version]/bin/java"
but
after I remove and JDK 7 has become a priority, still occur error as
above:
ireport
still recognize that we are using the JDK 8, although we've replaced
with JDK 7:
we
must do dalah remove java folder in / usr / lib / jvm /
- I did command :
- see anywhere file java (jdk) are :
sudo
update-alternatives --display java
java
- manual mode
link
currently points to /usr/lib/jdk1.7.0_04/bin/java
/usr/lib/jdk1.7.0_04/bin/java
- priority 1
/usr/lib/jvm/j2sdk1.6-oracle/jre/bin/java
- priority 315
slave
java.1.gz: /usr/lib/jvm/j2sdk1.6-oracle/man/man1/java.1.gz
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
- priority 1051
slave
java.1.gz: /usr/lib/jvm/java-7-openjdk-amd64/jre/man/man1/java.1.gz
Current
'best' version is '/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java'.
- if there JDK 8 then delete it :
sudo
update-alternatives --remove "java" \
"/usr/lib/jvm/jdk1.7.0_04/bin/java"
- entry into the JDK directory:cd /usr/lib/jvm
- delete the folder jdk :
sudo
rm -rf jdk1.7.0_04
- choose the JDK that will be used
sudo
update-alternatives --config java
source : http://akbarahmed.com/2012/06/24/uninstall-java-from-ubuntu-linux/
Tidak ada komentar:
Posting Komentar