Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: How to run a Java / .jar file automatically?

  1. #1
    Join Date
    Feb 2013
    Location
    Idaho, USA
    Posts
    18

    Default How to run a Java / .jar file automatically?

    Hi Everyone! I need some help.

    I just downloaded a program called Oulook Messenger that my family uses to communicate. The program uses Java to run on Linux machines and I would like it to start automatically with my computer. I can run it by going to to folder, opening the terminal there, and typing in:
    Code:
    java -jar OutlookMessenger.jar
    However when I close the terminal, Outlook Messenger closes too. Is there a way to open this when my computer starts without having the terminal open? Thanks!

  2. #2

    Default Re: How to run a Java / .jar?

    Ham Radio wrote:
    > i have tried typing in
    > Code:
    > --------------------
    > java -jar OutlookMessenger.jar
    > --------------------
    > but that doesn't work.
    >
    > Any ideas? Thanks!


    Well the first idea might be that you post the error message you got?

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,872

    Default Re: How to run a Java / .jar file automatically?

    You forhot to tell:
    a) which level of openSUSE you use;
    b) which desktop you use.

    When you say " when my computer starts", do you mean on boot (thus without anybody loged in), or on login of a certain user. In the first case it is a system thing (should go in boot.local or the like), for the second case it should go into the autostart of the user's desktop.
    Henk van Velden

  4. #4
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: How to run a Java / .jar file automatically?

    Quote Originally Posted by Ham_Radio View Post
    Hi Everyone! I need some help.

    I just downloaded a program called Oulook Messenger that my family uses to communicate. The program uses Java to run on Linux machines and I would like it to start automatically with my computer. I can run it by going to to folder, opening the terminal there, and typing in:
    Code:
    java -jar OutlookMessenger.jar
    However when I close the terminal, Outlook Messenger closes too. Is there a way to open this when my computer starts without having the terminal open? Thanks!
    press alt+f2 and then type in java -jar /home/<fullpath>/abc.jar
    GNOME Version 3.20.2
    openSUSE Leap 42.3 64-bit

    www.vazhavandan.blogspot.com

  5. #5
    Join Date
    Feb 2013
    Location
    Idaho, USA
    Posts
    18

    Default Re: How to run a Java / .jar file automatically?

    Quote Originally Posted by hcvv View Post
    You forhot to tell:
    a) which level of openSUSE you use;
    b) which desktop you use.

    When you say " when my computer starts", do you mean on boot (thus without anybody loged in), or on login of a certain user. In the first case it is a system thing (should go in boot.local or the like), for the second case it should go into the autostart of the user's desktop.
    You are so right! Sorry about that. I just installed openSUSE last night, so I am kinda new to it

    I am running openSUSE 12.2 with KDE 4.9.5.

    So if I go into the autostart, (Not really sure where that is) and choose it to start, will it start like it should with java, or just the archive manager?

  6. #6
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,044

    Default Re: How to run a Java / .jar?

    On Wed, 20 Feb 2013 16:46:01 +0000, Ham Radio wrote:

    > but that doesn't work.


    Specific error message would be helpful.

    If you get it working, from a terminal you can run it in the background
    with:

    java -jar <jarfile.jar> &

    Then when you close the window, the app will continue to run.

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  7. #7

    Default Re: How to run a Java / .jar file automatically?

    Quote Originally Posted by Ham_Radio View Post
    Hi Everyone! I need some help.

    I just downloaded a program called Oulook Messenger that my family uses to communicate. The program uses Java to run on Linux machines and I would like it to start automatically with my computer. I can run it by going to to folder, opening the terminal there, and typing in:
    Code:
    java -jar OutlookMessenger.jar
    However when I close the terminal, Outlook Messenger closes too. Is there a way to open this when my computer starts without having the terminal open? Thanks!
    The proprietary java has something called jexec that does exactly this. I'm sure there might be something in the open source world as well.

  8. #8
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: How to run a Java / .jar file automatically?

    Quote Originally Posted by me3064 View Post
    The proprietary java has something called jexec that does exactly this. I'm sure there might be something in the open source world as well.
    They don't even package oracle / sun java due to licensing issue. You can forget about FUDware
    GNOME Version 3.20.2
    openSUSE Leap 42.3 64-bit

    www.vazhavandan.blogspot.com

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to run a Java / .jar file automatically?

    On 2013-02-21 02:06, vazhavandan wrote:
    > me3064;2528856 Wrote:
    >> > The proprietary java has something called jexec that does exactly this.
    >> > I'm sure there might be something in the open source world as well.

    > They don't even package oracle / sun java due to licensing issue. You
    > can forget about FUDware


    Well, you can not get oracle/sun java from openSUSE via yast or zypper
    as we did in the past, but of course that you can download and install
    it if you want it.

    The license issue simply impedes distributors from distributing it. It
    is a silly move, IMO, but they are very happy if you download it from
    them directly and install it.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  10. #10
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: How to run a Java / .jar file automatically?

    Quote Originally Posted by robin_listas View Post
    On 2013-02-21 02:06, vazhavandan wrote:
    > me3064;2528856 Wrote:
    >> > The proprietary java has something called jexec that does exactly this.
    >> > I'm sure there might be something in the open source world as well.

    > They don't even package oracle / sun java due to licensing issue. You
    > can forget about FUDware


    Well, you can not get oracle/sun java from openSUSE via yast or zypper
    as we did in the past, but of course that you can download and install
    it if you want it.

    The license issue simply impedes distributors from distributing it. It
    is a silly move, IMO, but they are very happy if you download it from
    them directly and install it.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)
    The main problem with doing it from sun/oracle download is that , we need to do those syslink tricks for browsers to detect in case we need applets etc.. Not a very pleasant process per se :-)
    GNOME Version 3.20.2
    openSUSE Leap 42.3 64-bit

    www.vazhavandan.blogspot.com

Page 1 of 2 12 LastLast

Posting Permissions

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