Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Knoppix Help Forum > Installing JAVA

Forgot Password?
 Knoppix Help Forum   For all discussions about Knoppix, the Linux "Live CD" that lets you run Linux without needing to install on your hard drive.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-15-2007   #1 (permalink)
LAF
Just Joined!
 
Join Date: Jun 2007
Posts: 22
Installing JAVA

Hi,

I'm fairly new to LINUX. I've downloaded the updated version of Java JDK. It's on y desktop has a ".bin".

How do I install/execute a .bin (self extracting file). I've tried clicking on it, but Kwrite opens the file as a document .

Please Help,

Marc.
LAF is offline  


Reply With Quote
Old 06-15-2007   #2 (permalink)
Linux Newbie
 
objuan's Avatar
 
Join Date: Jul 2006
Location: california
Posts: 218
Quote:
Originally Posted by LAF View Post
Hi,
How do I install/execute a .bin (self extracting file).
First in a terminal or console you will need to change the file permissions so the file will execute. Change user to root then chmod 755 filename.
To execute the file, change directories to where the file is.
now type ./filename note period before the slash.
objuan is offline   Reply With Quote
Old 06-15-2007   #3 (permalink)
Just Joined!
 
Nautilus's Avatar
 
Join Date: Jun 2007
Location: London,UK and Athens,GR
Posts: 42
You will need to open up a console and manualy execute the file.

So open up the console and do:

Quote:
cd <directory where your .bin file lives>
./<the name of your bin file>
If the file comes with no execution rights set, do:

Quote:
chmod +x <name of your bin file>
and then execute it.

And don't forget to TAB complete!
Nautilus is offline   Reply With Quote
Old 06-18-2007   #4 (permalink)
LAF
Just Joined!
 
Join Date: Jun 2007
Posts: 22
Thanks Nautilus,

Now that I installed it, how do I run the Runtime JAVA?

Marc.
LAF is offline   Reply With Quote
Old 06-19-2007   #5 (permalink)
Just Joined!
 
Nautilus's Avatar
 
Join Date: Jun 2007
Location: London,UK and Athens,GR
Posts: 42
It is in the bin directory, at the directory you have installed it. Just:

Quote:
cd <the directory you have installed your java>/bin/
./java


I would suggest to add to your .bshrc or profile the following if you haven't done already:

Quote:
export JAVA_HOME=<the directory you have installed your java>
export PATH=$PATH:<the directory you have installed your java>/bin/
Like this whenever you get a new shell, you will have the java binaries (executables) in your path, so a simple:

Quote:
java
will do the job from whichever directory you are in, and also other programs that might need java, will know where it is installed.
Nautilus is offline   Reply With Quote
Old 06-19-2007   #6 (permalink)
LAF
Just Joined!
 
Join Date: Jun 2007
Posts: 22
Thanks a bunch Nautilus !


LAF is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:32 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2