After posting earlier I decided to download the latest available Oracle JDK 8u45 and the latest community version of Intelli-J Idea 14
ideaIC-14.1.3.tar.gz
jdk-8u45-linux-x64.tar.gz
I ran this script from command line as root to install Oracle JDK, the script assumes you downloaded the jdk-8u45-linux-x64.tar.gz to the Downloads directory and you execute the script as root from your home directory:
#!/bin/bash
# author:GeoWade
# Create script variables
ETRCJDK="Downloads/jdk-8u45-linux-x64.tar.gz"
JVMDIRLIB="/usr/lib/jvm/jdk1.8.0"
MOVJDK="jdk1.8.0_45/* /usr/lib/jvm/jdk1.8.0"
INSJAV="update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0/bin/java" 1"
INSJAVC="update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0/bin/javac" 1"
INSJAVAWS="update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.8.0/bin/javaws" 1"
INSJAVJAR="update-alternatives --install "/usr/bin/jar" "jar" "/usr/lib/jvm/jdk1.8.0/bin/jar" 1"
INSJAVDOC="update-alternatives --install "/usr/bin/javadoc" "javadoc" "/usr/lib/jvm/jdk1.8.0/bin/javadoc" 1"
INSJAVAPPVIEW="update-alternatives --install "/usr/bin/appletviewer" "appletviewer" "/usr/lib/jvm/jdk1.8.0/bin/appletviewer" 1"
VRSJAVA="java -version"
TSTJAV="java"
TSTJAVC="javac"
TSTJAVAWS="javaws"
TSTJAVJAR="jar"
TSTJAVDOC="javadoc"
UPD="updatedb"
echo "Extracting jdk-8u45"
tar -xvf $ETRCJDK
echo "Making jdk1.8.0 directory in the jvm directory"
mkdir -p $JVMDIRLIB
echo "jvm/jdk1.8.0 directory is made"
echo "Moving contents of jdk1.8.0_45 to jdk1.8.0"
mv $MOVJDK
echo "contents moved"
echo "installing java"
$INSJAV
echo "installing javac"
$INSJAVC
echo "installing javaws"
$INSJAVAWS
echo "installing jar"
$INSJAVJAR
echo "installing java doc"
$INSJAVDOC
echo "installing appletviewer"
$INSJAVAPPVIEW
echo "Testing java"
$TSTJAV
echo "Testing javac"
$TSTJAVC
echo "Testing javaws"
$TSTJAVAWS
echo "Testing jar"
$TSTJAVJAR
echo "Testing javadoc"
$TSTJAVDOC
echo "This version of the Oracle JDK is:"
$VRSJAVA
$UPD
exit;
To execute the script (titled jdk8u45.sh), I ran the following sequence of commands:
:~$ chmod +x jdk8u45.sh
:~$ sudo bash
:~# ./jdk8u45.sh
:~# exit
Then I extracted the ideaIC-14.1.3.tar.gz, created a directory in the /usr/local directory titled ideaJ, then move the contents of the extracted archive to /usr/local/ideaJ as shown below:
:~$ tar -xvf Downloads/ideaIC-14.1.3.tar.gz
:~$ sudo mkdir -p -m0755 /usr/local/ideaJ
:~$ sudo cp -rf idea-IC-141.1010.3/* /usr/local/ideaJ/
after doing so I change directories to /usr/local/ideaJ/bin and ran the idea.sh script as shown below:
:~$ cd /usr/local/ideaJ/bin
:/usr/local/ideaJ/bin$ ./idea.sh
I photo cataloged the process
In the 14 version of the Idea, with the Oracle JDK 8u45, the parameter is ignored. Your problem is the javaagenttool of /usr/share/java/jayatanaag.jar or however its spelled. I don't even have that jar installed on my system.
You can copy the script into gedit and use it.
idea.sh
to remove any occurrences of-XX:MaxPermSize=350m
.