LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-27-2009, 06:43 AM   #1
fhg
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Rep: Reputation: 0
Installing Java on CnMBook


i have just got a CnMBook running Linux. I'm trying to install Java so I can install/run a game. I've download a .bin file but can't run it.
Now totally confused.
 
Old 07-27-2009, 06:47 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What happens when you try to run the .bin?
 
Old 07-27-2009, 07:31 AM   #3
fhg
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
The system doesn't recognise the file type. i can see it in file manager but it has a ? over the file.
 
Old 07-27-2009, 07:38 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to run it in a terminal. Firstly, are there no instructions available from where you downloaded the file? If there are, I suggest you read those. If not, then try:

1. Open a terminal window and navigate to the directory containing the file. Use cd to change directories, e.g. "cd /home/user/foo" will take you to the directory /home/user/foo (capitalisation matters: 'A' and 'a' are not the same).

2. Make the file executable. You use chmod to do this, e.g. "chmod +x file.bin" will set executable permissions on the file file.bin (read the man page "man chmod" for information on chmod and here is some info on file permissions).

3. Execute the file with "./filename" and hopefully it does something useful.

If you're still stuck, tell us exactly what you're trying to install and which distribution you're using.

Edit: I've just read you're trying to install Java. It's probably best (or easier!) to use your distribution's package management system to do this. Tell us which distribution you're using and we can offer distro-specific help.

Last edited by Nylex; 07-27-2009 at 07:39 AM.
 
Old 07-27-2009, 09:08 AM   #5
fhg
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you for this, and I apologise if I am being particularly dim. I've been using PCs for over 15 years.
The instrcutions from where I downloaded the file all seems to assume I can simply run it.

1. Oen a terminal window: the only way I can find to access the file is through File Manager, from which I navigate to the Download directory where the file is.

2. Make the file executable: all I seem able to do to the file is 'right-click'. This gives me Open, Cut, Copy, Delete, Rename, Properties. Open does not appear to do anything. I can't find anything in the manual regarding chmod, or any apparent way I can write code. There are applications available on the CnMBook website for BwBasic, gFTP and Root Access. Do I need one of these?

3. The file I downloaded from the Java website is jre-6u14-linux-i586.bin. Another website (FreeCol) stated that the program requires Java 6 to run on Linux.

Thank you again for your help.

fhg
 
Old 07-27-2009, 11:18 AM   #6
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,385

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

Code:
cd /usr
./jre-6u14-linux-i586.bin
ln sf /usr/jre1.6.0_14/bin/java /usr/bin/java
 
Old 07-27-2009, 11:27 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
fhg, you'll need the "Root Access" patch installed to follow the steps that I (and colorpurple21859) outlined, it seems. This gives you access to a terminal in which you can run commands. Can you post a link to the installation instructions you have, please?
 
Old 07-27-2009, 11:34 AM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Also, you should note that you need to be careful when you run commands as root, as that account gives you an elevated level of power!
 
Old 07-27-2009, 12:16 PM   #9
fhg
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you, I will install the Root Access patch.
The site I've got it from is: http://www.cnmlifestyle.com/
The Java code I downloaded was from: http://www.java.com/en/download/manual.jsp
 
Old 07-27-2009, 02:14 PM   #10
fhg
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you: I've made progress.
I have accessed the root and followed the steps suggested by Nylex.
I couldn't cd to My Documents, so copied the file to Sd card and ran it from there.

It ran fine until:
Unpacking…
Checksumming…
Extracting…
./install.sfx.210: ./install.sfx.210: 1: Syntax error: “(“ unexpected
Failed to extract the files. Please refer to the Troubleshooting section of the Installation Instructions on the download page for more information.

Is this because it is on an SD card?
I have tried to create a new directory for java, but File Manager only gives noptions Refresh and Properties - even though the manual says I should be able to create directories. I can down at the My Files level - in My Documents.
 
Old 07-29-2009, 02:49 AM   #11
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I don't imagine that having the file on an SD card is causing the problem. Unfortunately, I can't see what the problem is right now. Perhaps you could post the entire output that was generated when you ran the executable?
 
Old 07-29-2009, 09:22 AM   #12
fhg
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Sorry that was it, except for the license agreement and if I accepted it.
 
Old 07-29-2009, 01:00 PM   #13
fhg
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Many thanks for all your help so far. I have to sign off now for 3 weeks, but will return then.
fhg
 
Old 08-01-2009, 02:53 AM   #14
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Honestly, I'm not sure what the problem is. Is there any help in the aforementioned troubleshooting section of the installation instructions?
 
  


Reply

Tags
java, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using cnmbook with vodafone K3565 mobile connect pay-as-you-go microbe7 Linux - Newbie 9 10-08-2009 10:01 AM
[Java] Installing Java on Debian Linux lgp171188 Linux - Software 3 06-20-2009 12:40 PM
CnMBook cliffayl LinuxQuestions.org Member Intro 0 03-31-2009 07:24 PM
T-Mobile Option Globetrotter 3g Modem on a cnmbook netbook 3rr0r-404 Linux - Laptop and Netbook 0 02-14-2009 02:49 PM
mobile modem for my cnmbook suzywong Linux - Laptop and Netbook 1 01-27-2009 09:01 PM


All times are GMT -5. The time now is 11:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration