Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-01-2003, 01:32 PM   #1
Registered: Nov 2003
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 269

Rep: Reputation: 30
Java SDK installation - Newbie needs help!

Hi, I'm totally new to Linux, and I want to be able to program in Java on my machine.
I dowloaded the sdk bin file from, extracted it and clicked on the rpm file. It seems the the sdk is now installed (since I can go to the directory), but the java and javac commands are not recognized.
Anyone see the obvious mistake I'm making? Thanks!
Old 11-01-2003, 01:48 PM   #2
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Hi there,

and welcome to LQ.

I don't know what exactly the RPM
does during the installation. But the
binaries only put the actual SDK in
your filesystem, but don't come with
any startup scripts.

If you search here, you'll
find several answers to that question.

In brief you'll need to put the path's
to hte binaries in either the system
wide configuration files (/etc/profile,
or creating /etc/profile.d/ - I
prefer the second technique since
it will still work if you install an upgrade
of your linux) or in your users ~/.bash_rc
or ~/.bash_login.


Old 11-01-2003, 01:49 PM   #3
Registered: Jul 2003
Location: Canada
Posts: 214

Rep: Reputation: 31
It is most likely that the directory where java and javac are located is not in your path. To see your path, try 'echo $PATH'.

You can add this directory to your path, or create a symlink (man ln) of java and javac to a directory that is already in your path (eg. /bin). Good luck!


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
Java SDK installation trouble vous Linux - Software 6 03-02-2005 12:56 PM
Java 2 SDK 1.4.2 Installation smacarth Linux - Software 20 02-22-2004 01:11 PM
Newbie LimeWire and Java Installation bdika Linux - Software 10 09-27-2003 11:52 PM
java sdk 1.4 installation steelrose Linux - Newbie 3 03-12-2002 02:53 PM
java 1.4 sdk installation steelrose Linux - Software 1 03-11-2002 07:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:17 AM.

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