Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Help With Linking Application Pls ?!, Im sure its simple but i need help
crazydark
post Mar 3 2005, 10:24 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 10
Joined: 23-February 05
Member No.: 4,691



OK.. basically i have java installed somewhere odd.. but i like it this way i know where it is..

i want to be able to type "java" from anywhere in the console - or call it from an application that just uses that call or whatever

I think i just need to know how to add it to my "path" or summut but i havent managed to find anything that had done the trick yet..isn't there just somewhere i can put a little file saying where java is and it will work from anywhere? pls! ?

Ive got mandrake 10 with KDE.. i use it for everything on my old laptop and i love it but little things like this are holding me back at the moment.. - 1 yr in and im getting better but not leet yet lol .. smile.gif
Go to the top of the page
 
+Quote Post
joelkeeble
post Mar 9 2005, 10:50 AM
Post #2


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 25-January 05
Member No.: 4,579



You are right, you need to set your PATH to include the directory that java is in, without removing the current path . the way I to do it manually(though there isprobally an easierway) is:

echo $PATH

This will show your current path then type:

export PATH="$PATH(the current pathe):(the pathe where java is installed)"

so to simplify if your current path is : "/sbin" and your java path is "/usr/local/lib" you will add type the following command:

export PATH="$PATH/sbin:/usr/local/lib"

how ever this will be deleted every time you log out.
Go to the top of the page
 
+Quote Post
DS2K3
post Mar 9 2005, 11:28 AM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



put the following in ~/.bashrc (assuming you use bash, which you probably do)

CODE
export PATH=$PATH:/path/to/java


There is a java tutorial which should be reoughly aplciable to all ditros at: http://goland.org/Tech/Installing_Java_in_...ndrake_9_1.html

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post
crazydark
post Mar 9 2005, 08:14 PM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 10
Joined: 23-February 05
Member No.: 4,691



wow.. thanks for the replies.. im hoping that after i follow the step mentioned in the tutorial, it will stay there for good, even after i log out or reboot etc..

Great, one more item off the list thank you thank you smile.gif wub.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd October 2017 - 03:29 AM