Find the answer to your Linux question:
Results 1 to 6 of 6
how to i set it so that if i type 'eclipse' it will launch eclipse? thanks! i tried linking a shortcut to the executable file into /usr/bin, but it gives ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2005
    Location
    Chicago
    Posts
    74

    command to eclipse


    how to i set it so that if i type 'eclipse' it will launch eclipse? thanks!

    i tried linking a shortcut to the executable file into /usr/bin, but it gives me an error message:

    Code:
    JVM terminated. Exit code=1
    /usr/bin/java
    -jar startup.jar
    -os linux
    -ws gtk
    -arch x86
    -launcher /usr/bin/eclipse
    -name Eclipse
    -showsplash 600
    -exitdata bd0002
    -vm /usr/bin/java
    -vmargs
    -jar startup.jar

  2. #2
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,619
    Java is installed right? How exactly did you link it?

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  3. #3
    Just Joined!
    Join Date
    Oct 2005
    Location
    Chicago
    Posts
    74
    yea, java is installed, i can launch eclipse when i just go to my apps folder, and click on the eclipse file. but when i create a link to that file in the /usr/bin folder, that link doesn't work and gives that error. would creating an alias for it work?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,619
    Give aliasing a try:
    Code:
    alias eclipse='/path/to/eclipse'
    If not, did you link symbolically?

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  6. #5
    Just Joined!
    Join Date
    Oct 2005
    Location
    Chicago
    Posts
    74
    i did the alias thing, but it only works if i don't exit the console, once i exit the console, the alias is gone because when i do the alias command when re-entering the console, the eclipse command doesn't show up.

  7. #6
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Righto.

    Open up your ~/.bashrc file (assuming that you use a Bash shell). Add the alias line to that and it will be executed everytime you enter the terminal.

Posting Permissions

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