Find the answer to your Linux question:
Results 1 to 5 of 5
I created a sym link using n -s /opt/vuze/vuze to the executable for vuze. If I run the executable directly opt/vuze/ ./vuze the application runs just find, but from any ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    3

    Application will not run from symbolic link. Why?


    I created a sym link using n -s /opt/vuze/vuze to the executable for vuze. If I run the executable directly opt/vuze/ ./vuze the application runs just find, but from any symbolic linkd it fails. I'm running on centOS 6. Here's the out put:

    Starting Azureus...
    Suitable java version found [java = 1.7.0_09-icedtea]
    Configuring environment...
    Java exec found in PATH. Verifying...
    Error: Could not find or load main class org.gudy.azureus2.platform.unix.ScriptBeforeStartu p
    Loading Azureus:
    java -Xmx128m -cp "./*.jar" -Djava.library.path="/home/Guest/Desktop" -Dazureus.install.path="/home/Guest/Desktop" -Dazureus.script="./vuze" -Dazureus.script.version=3 org.gudy.azureus2.ui.swt.Main
    Error: Could not find or load main class org.gudy.azureus2.ui.swt.Main
    Exit from Azureus complete
    Error: Could not find or load main class org.gudy.azureus2.platform.unix.ScriptAfterShutdow n
    Azureus TERMINATED.

    Thank you for your help in advance

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    896
    Looks like the application is trying to find the java libraries using the path the application is started from.

  3. #3
    Just Joined!
    Join Date
    Mar 2013
    Posts
    3
    That's what I was thinking, but wasn't sure because I don't understand symbolic links very well. Does the link not tell bash where the file it that it's referencing?

  4. #4
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    896
    What you could do, if you want to make a shortcut, is make a simple bash script that launches the application from the actual installed spot.

    #!/bin/bash
    /opt/myapp/vuze

  5. #5
    Just Joined!
    Join Date
    Mar 2013
    Posts
    3
    I ended up doing that and it worked.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •