LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-20-2004, 04:17 PM   #1
asavage97
LQ Newbie
 
Registered: Nov 2004
Location: Edinburgh
Distribution: RH8, RH9, Smoothwall
Posts: 6

Rep: Reputation: 0
weird java problem


ok I downloaded 1.4.2 sdk extracted it to /usr/java/version

next I made a file called java.sh containing the line
export PATH=$PATH:/usr/java/version/bin

stuck that file in profile.d and did chmod +x to it

logged out logged in again and typed
echo $PATH

I said to myself yay because the bin directory is in the path

however upon typing java -version in a terminal I got a error saying command not found

a very weird thing if you ask me

furthermore I can goto the java bbin directory and type ./java -version and it shows version fine.

can anybody help

Distro is redhat 8

ebit btw i wrote version in the paths for this post because I can't remember what the folder is called and my other computer is upstairs.

Last edited by asavage97; 11-20-2004 at 04:20 PM.
 
Old 11-20-2004, 05:19 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
It would be better to simply add the path line to your .bashrc file or the /etc/profile file.
My .bashrc file sources the /etc/profile file anyway.
 
  


Reply



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
weird, weird problems with logitech precision USB gamepad ikataii Linux - Hardware 4 10-14-2005 04:31 AM
Weird, weird apache2 problem atheist Debian 1 09-17-2004 08:26 PM
Weird keyboard error in Java IDE's larstj Linux - Software 1 03-16-2004 12:56 PM
weird kernel problem and fs mount problem intense Slackware 5 03-16-2004 12:36 PM
weird problem... Elez Programming 2 05-06-2003 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:04 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
Open Source Consulting | Domain Registration