download j2se

I

ivan

Hello, I need to download j2se 1.6 + for Linux but have not found it. Please
help me to get it.
Ivan
 
M

Manish Pandit

ivan said:
Hello, I need to download j2se 1.6 + for Linux but have not found it. Please
help me to get it.
Ivan

1. Go to http://java.sun.com/javase/downloads/index.jsp
2. Under Downloads tab, locate JDK 6. This should be the first block.
3. Click Download Button
4. On the next page, Select 'Accept' radio button.
5. Second block has 2 linux distributions. Pick one of the two.
(jdk-6-linux-i586-rpm.bin or jdk-6-linux-i586.bin).

-cheers,
Manish
 
I

ivan danicic

Manish said:
1. Go to http://java.sun.com/javase/downloads/index.jsp
2. Under Downloads tab, locate JDK 6. This should be the first block.
3. Click Download Button
4. On the next page, Select 'Accept' radio button.
5. Second block has 2 linux distributions. Pick one of the two.
(jdk-6-linux-i586-rpm.bin or jdk-6-linux-i586.bin).

-cheers,
Manish
Hello Manish, many thanks, this certainly installed the jdk6 but I still
can't find j2se 1.6 or higher. This seems required to run some examples
"using swing components". Any suggestions gratefully received.
Ivan
 
L

Lew

ivan said:
Hello Manish, many thanks, this certainly installed the jdk6 but I still
can't find j2se 1.6 or higher. This seems required to run some examples
"using swing components". Any suggestions gratefully received.

Sometimes it helps to set the JAVA_HOME environment variable in your operating
system - using the Control Panel in Windows or a .profile / .bashrc (or
whatever for your shell) in Linux, etc.

For example, if your Linux JDK 6 were rooting in the /usr/java/jdk6/ directory
(wherein resides bin/), you would

export JAVA_HOME=/usr/java/jdk6

(or the equivalent for your shell).

Many if not most Java systems check for this envar. Other systems, like
Eclipse and Netbeans, have their own configuration files that specify which
JVM to use. (Those files are set by the respective installers from the envar.)

Installing the plugin for your browser was the job of the JRE part of the
installation. If it didn't work, or you skipped that part, google around to
find instructions on installing the JRE plugin for your browser flavor.

- Lew
 
M

Manish Pandit

can't find j2se 1.6 or higher. This seems required to run some examples
"using swing components". Any suggestions gratefully received.
Ivan

I agree with Lew. You might be missing JAVA_HOME env. variable.

Try 'which java' and see if the desired location is picked up. I
believe it'd be a symbolic link, so you can do a java -version to see
if 1.6 is being picked up.

If setting JAVA_HOME does not work, create a symbolic link from
wherever java is (typically /usr/bin/java) which would be pointing to
non 1.6 version. Change this to point to the 1.6 version. You might
have to do the same for javac and jar. Do a 'man ln' to see how to
remove/replace symbolic links. You can do a ls -l on the file returned
by 'which java' to see where it is linked to.

-cheers,
Manish
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top