Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Java JDK

  Date: Dec 04    Category: Unix / Linux / Ubuntu    Views: 443

I'm new to ubuntu and having some issues with an attempt to install Sun Java
JDK, If anyone has any ideas of why I getE: Couldn't find package
jdk-6u18-linux-x64.bin please let me know,the package is in the directory as you
can see from the terminal output,
Any help would be greatly appreciated,
vladpaln@LT:/usr/lib/jvm$ ls -altotal 82892drwxr-xr-x 4 root root 4096
2010-02-04 13:26 .drwxr-xr-x 196 root root 61440 2010-02-03 19:45
..lrwxrwxrwx 1 root root 14 2010-02-03 19:45 java-1.6.0-openjdk ->
java-6-openjdkdrwxr-xr-x 5 root root 4096 2010-02-03 19:45
java-6-openjdk-rw-r--r-- 1 root root 2313 2009-11-09 22:41
.java-6-openjdk.jinfolrwxrwxrwx 1 root root 19 2010-02-03 19:40
java-6-sun -> java-6-sun- 6 root root 4096 2010-02-03
19:40 java-6-sun- 1 root root 2313 2009-08-11 06:40
.java-6-sun.jinfo-rwxrwxrwx 1 root root 84794182 2010-02-04 13:26
jdk-6u18-linux-x64.binvladpaln@LT:/usr/lib/jvm$ sudo apt-get install
jdk-6u18-linux-x64.binReading package lists... DoneBuilding dependency tree
Reading state information... DoneE: Couldn't find package



3 Answers Found

Answer #1    Answered On: Dec 04    

I am not sure if you tried this or not, but I would try to installthe package
again as 'sudo' or the 'root' user on your system.
I don't know if you have admin rights as your normal user,so I'm only taking a
guess here. Also, the .bin filejdk-6u18-linux- x64.bin needs to be made
executable if I'm not mistaken,and since "root" is the owner of that file, you
need to be root(or use "sudo") to run the chmod command below.

if you are inside the directory wherejdk-6u18-linux- x64.bin exists, then you
issue the commandsudo chmod +x jdk-6u18-linux- x64.bin

Answer #2    Answered On: Dec 04    

I'm not sure what the characters below are indicative of, but I perceive
that you didn't use the package management system to install the JDK.

Go to system->administration->package management, entering your password
when prompted for administrative access, select the sun java jdk from
the list, and click to install it.

Answer #3    Answered On: Dec 04    

Unless you are developing Java code, JDK is not needed. If you are installing
Java for its JavaScript capability to view websites from your browser (as
JavaScript is used to display many websites), then all that is necessary to
install is JRE.

Didn't find what you were looking for? Find more on Java JDK Or get search suggestion and latest updates.