Compatible Support Forums: paths

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

paths

#1 User is offline   jarves 

  • member
  • Group: Members
  • Posts: 154
  • Joined: 23-December 03

Posted 26 June 2004 - 02:11 PM

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.
0

#2 User is offline   Dapper Dan 

  • Pooh-Bah
  • Group: Moderators
  • Posts: 1703
  • Joined: 27-September 03

Posted 26 June 2004 - 04:07 PM

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.


0

#3 User is offline   jarves 

  • member
  • Group: Members
  • Posts: 154
  • Joined: 23-December 03

Posted 27 June 2004 - 01:54 PM

is it similar to windows' that you can execute any file as long as it is included in the path. In windows you can change the path so windows will automatically execute the executable file.
0

#4 User is offline   nebulus 

  • enthusiast
  • Group: Members
  • Posts: 214
  • Joined: 05-October 02

Posted 28 June 2004 - 10:47 AM

Yes, it is similar. That's why, as Dapper Dan said, when you make a simbolic link that points to for example /usr/bin, you'll be able to execute your java class files simply by typing java class_file.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users