Results 1 to 4 of 4

Thread: Creating a launcher for a Java program.

  1. #1
    Join Date
    Oct 2008
    Beans
    41

    Creating a launcher for a Java program.

    I went through the long roundabout method of installing Webcamstudio, and would like to not always have to use the terminal to launch it.

    I've installed it in home/webcamstudio
    When I open the terminal and type the following command, it runs just fine.
    Code:
    java -jar ~/webcamstudio/WebcamStudio.jar
    But when I right-click on the desktop, and try to create a launcher for an "Application in Terminal" the launcher doesn't work.

    What's up?

  2. #2
    Join Date
    Jun 2006
    Location
    $ pwd _
    Beans
    3,999
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Creating a launcher for a Java program.

    If it is a GUI application, you could use javaw so you don't have to specify 'Application in Terminal' in the launcher. I'd use absolute path to the JAR, like so
    Code:
    javaw -jar /home/<user-id>/path/to/jar/app.jar

  3. #3
    Join Date
    Oct 2005
    Location
    Oklahoma
    Beans
    427

    Re: Creating a launcher for a Java program.

    Quote Originally Posted by kpkeerthi View Post
    If it is a GUI application, you could use javaw ...
    ms/windows has a javaw command but I'm not aware that it exists for any other system.

  4. #4
    Join Date
    Oct 2005
    Location
    Oklahoma
    Beans
    427

    Re: Creating a launcher for a Java program.

    Quote Originally Posted by wonderbriefs View Post
    I went through the long roundabout method of installing Webcamstudio, and would like to not always have to use the terminal to launch it.

    I've installed it in home/webcamstudio
    When I open the terminal and type the following command, it runs just fine.
    Code:
    java -jar ~/webcamstudio/WebcamStudio.jar
    But when I right-click on the desktop, and try to create a launcher for an "Application in Terminal" the launcher doesn't work.

    What's up?
    Did you try the Application type of launcher? Since it sounds like a GUI program it might not need the terminal launcher.

    How does it fail? Does it output any errors to the .xsession-errors file?

    You might also ask the author, perhaps by posting to this thread:

    http://ubuntuforums.org/showthread.php?t=943774

Tags for this Thread

Bookmarks

Posting Permissions

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