![]() If you have the JRE installed you will se an i beside a package that begins with openjdk-7-jre $ aptitude search openjdk-7 Checking all Java packagesįor completeness, you can check what Java packages you have installed by running aptitude search openjdk-7. If sqldeveloper.sh is not executable run chmod +x sqldeveloper.sh and run the script again. Once the JDK is installed and the JAVA_HOME environment variable set, you can move into the sql developer directory and run the sqldeveloper.sh script. This will set JAVA_HOME for your current terminal session, to not have to worry about setting it again, you can add it to your ~/.bashrc file. Next, set the JAVA_HOME environment variable, in Bash I would set it by running this from the terminal: $ export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64Ĭheck to make sure it was set correctly. This means I only have one JDK installed, java-1.7.0-openjdk-amd64, and its JAVA_HOME is /usr/lib/jvm/java-1.7.0-openjdk-amd64. You can see all the installed JDKs on your machine by running update-java-alternatives -l, choose the one you want to use and copy the third field, this field is the JAVA_HOME for that JDK.įor example, on my machine $ update-java-alternatives -l Setting JAVA_HOMEĪfter installing the JDK you need to set the JAVA_HOME environment variable. Install by running sudo apt-get install openjdk-7-jdk in a terminal. To install in the JDK in ubuntu you need to install the package openjdk-7-jdk. ![]() If the package does not have an i beside it, then it is not installed. P openjdk-7-jdk:i386 - OpenJDK Development Kit (JDK) I openjdk-7-jdk - OpenJDK Development Kit (JDK) ![]() For example, I have the 64-bit JDK installed on my machine, this is the output. If you see an i beside either package then it is installed. To check if you have the JDK installed, type aptitude search openjdk-7-jdk in the terminal. Install the JDK, type sudo apt-get install openjdk-7-jdk in a terminal. You only have the Java JRE installed, you need to install the JDK in order for Oracle SQL Devloper to work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |