LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Have trouble installing java in my Asus eee 2G surf (https://www.linuxquestions.org/questions/linux-newbie-8/have-trouble-installing-java-in-my-asus-eee-2g-surf-796498/)

bj-torb 03-19-2010 08:44 AM

Have trouble installing java in my Asus eee 2G surf
 
Hello.
I have just bought a used Asus Eee pc 2g surf. I travel a lot and the Asus fits my needs on travels, but i have serious problrms installing java. I have never used Linux before. I have manage to download java and open and accepted the licens. The problem now
is to go further and get it to work. I don't know Linux and wher to go ind and give the right commands to link Java to Mozilla.I
have read a lot about how to do it. It is so easy they say but
for me it is not. I dont know where i am going in, program to open. I have struggled for a week now. Please someone help meeeee!!!!!!!!

Regards
Bjorn-Tore Bugge

tredegar 03-19-2010 09:43 AM

So, it's a used EEE2G surf.

Which version of linux is it running? I think the original (xandros) came with java pre-installed.

2GB is very small, I plugged an 8GB SD card into my EEE701 and installed ubuntu9.10 on that. It works well.

Lots of good instructions for installing different versions of linux on your EEE, and fixing problems, can be found here:

http://wiki.eeeuser.com

Welcome to LQ!

colorpurple21859 03-19-2010 10:08 AM

This is one way to install java, have to be root: get jre-6u7-linux-i586.bin from sun-java and copy to /usr and make sure it is executable.
Code:

cd /usr
./jre-6u7-linux-i586.bin
ln -sf /usr/jre1.6.0_12/bin/java /usr/bin/java

have to agree to sun-java terms
will work on most systems
note: version of java has changed since this was posted, change version numbers to the version you are using.
this is from one of my previous posts

bj-torb 03-19-2010 11:33 AM

Quote:

Originally Posted by colorpurple21859 (Post 3904575)
This is one way to install java, have to be root: get jre-6u7-linux-i586.bin from sun-java and copy to /usr and make sure it is executable.
Code:

cd /usr
./jre-6u7-linux-i586.bin
ln -sf /usr/jre1.6.0_12/bin/java /usr/bin/java

have to agree to sun-java terms
will work on most systems
note: version of java has changed since this was posted, change version numbers to the version you are using.
this is from one of my previous posts

This is one of my problem.....i dont know what root is.....i dont know what to open and write code in...... You have to tell me....Have never used Linux before.

colorpurple21859 03-19-2010 05:37 PM

The preferable way to install java is to use your software installer, which is usually under menu/administration heading, but varies depending on which distro you are using, so it would help if we knew what distro you have. To install java manually open a root terminal to become root user from your main menu or open a terminal window from the menu and type either "su" or "sudo" without the quotation marks to become root user, once again it depends on what distro you are using. Will ask for password to proceed. Once you get a root terminal open then type the following
Code:

cp /<path to java file>/jre-6u7-linux-i586.bin /usr/
cd /usr
./jre-6u7-linux-i586.bin
ln -sf /usr/jre1.6.0_12/bin/java /usr/bin/java

just remember version of java has changed.
"cd" is to change directories and "ls" is to view the files in the current directory. The first line above copies the java file to the /usr directory.

reed9 03-19-2010 06:23 PM

Quote:

it would help if we knew what distro you have
It is almost certainly Xandros. Obviously, the OP hasn't it changed it, and I gather it's unlikely the previous owner did.

Press CTRL+ALT+T to open a terminal.

This guide is a little old, but presumably it still works.
http://wiki.eeeuser.com/howto:upgrade_java?s[]=java

For adding the repository, just copy and paste this into a terminal.
Code:

echo "deb http://geekconnection.org xandros4 main" | sudo tee -a /etc/apt/sources.list


All times are GMT -5. The time now is 12:02 AM.