LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-01-2003, 02:32 PM   #1
jacksmash
Member
 
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 sun.com, 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, 02:48 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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/java.sh - 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.

HIH

Cheers,
Tink
 
Old 11-01-2003, 02:49 PM   #3
peace
Member
 
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!
 
  


Reply


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


All times are GMT -5. The time now is 08:34 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration