paths
how can i execute binaries even if i am not within the folder that contained the binary? just like my java, ican only execute java under the folder j2sdk. .
how can i execute binaries even if i am not within the folder that contained the binary?
just like my java, ican only execute java under the folder j2sdk.
just like my java, ican only execute java under the folder j2sdk.
Participate on our website and join the conversation
This topic is archived. New comments cannot be posted and votes cannot be cast.
Responses to this topic
I'm not real informed on java, but I think you'd have to make a symbolic link from the java executable to /usr/bin. Tell me more. Is there a program or files that open with java, as in:
java jarvesfile.xxx
or something?
If that is the case try this. Make a symlink as root like so:
ln -s /opt/j2sdk1.4.2_04/bin/java /usr/bin/java [enter]
That's how I'd do it on mine, but your java location and the version may differ. Just change it accordingly.
It won't hurt anything if this doen't do what you want.
java jarvesfile.xxx
or something?
If that is the case try this. Make a symlink as root like so:
ln -s /opt/j2sdk1.4.2_04/bin/java /usr/bin/java [enter]
That's how I'd do it on mine, but your java location and the version may differ. Just change it accordingly.
It won't hurt anything if this doen't do what you want.