Review your favorite Linux distribution.
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 06-19-2003, 01:07 PM   #1
LQ Newbie
Registered: Jun 2003
Posts: 1

Rep: Reputation: 0
Question Setting Paths for Java

I'm new to linux and am running Mandrake 9.0.

I just installed java 1.4.1 into /usr/local/j2sdk1.4.1_02 and I want to set the path as root so that all users have access to the javac command without having to use the full path to the compiler. Can someone tell me how to do this?


Last edited by ken22; 06-19-2003 at 01:31 PM.
Old 06-19-2003, 01:45 PM   #2
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
It may be easier to create a link to javac from something that is already in all users path like /usr/bin:

ln -sf /usr/local/j2sdk1.4.1_02/bin/javac /usr/bin/javac


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
Setting up paths Pyro-dragon Linux - Newbie 5 03-07-2005 06:04 PM
Setting Library paths RedHAT9 (N00B) Jaykay3k Linux - Software 1 03-03-2005 01:15 AM
Setting Paths? bluelaguna Linux - Software 2 08-07-2004 02:31 PM
setting paths bmagyar Linux - Software 10 11-01-2003 05:08 PM
Automatically resolving WINDOWS paths to pre-configured Linux paths gazzy Linux - General 1 09-05-2003 10:15 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:32 PM.

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