Article View: borland.public.jbuilder.java.api
Article #873run java app on Linux at boot up
From: Alan Shiers
Date: Mon, 15 Jul 2002 02:02
Date: Mon, 15 Jul 2002 02:02
33 lines
2171 bytes
2171 bytes
Hi there, I just noticed that when I loaded up J2SDK onto Linux that there is no javaw command. Does anybody know why this command has been removed from the Linux distribution? I was going to make use of it in a shell script, which brings me to my next question. Has anybody successfully launched a Java application using shell scripts on Linux at boot up so that the application runs silently in the background? Naturally, after I've logged on as root and given my password I can certainly run a java app from the prompt using something like: java myApp However, javaw was a lot more convenient. I could launch a java application without a terminal window bound to it. MAIN OBJECTIVE: I just want to set up whatever scripts are necessary to launch my java application when Linux boots up. Linux has a special command: chkconfig I don't know if it can be used or not to schedule the running of a java application upon boot up. Maybe there is another, better way? Basically, I just want to have the java application running without my having to log in, except to shut it down. Can all this be done? Please advise, Alan Shiers
Technical Details
Message-ID:
<3D322D4F.F759335B@hfx.eastlink.ca>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!demon!newshub1.nl.home.com!news.nl.home.com!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,5b5327e0fa81e574,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-07-14 18:18:03 PST Message-ID: <3D322D4F.F759335B@hfx.eastlink.ca> Date: Sun, 14 Jul 2002 22:02:55 -0400 From: Alan Shiers <ashiers@hfx.eastlink.ca> Organization: Mustard Seed Software X-Mailer: Mozilla 4.78 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api Subject: run java app on Linux at boot up Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.222.101.2 X-Trace: dnews 1026694842 24.222.101.2 (14 Jul 2002 18:00:42 -0700) Lines: 33 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!demon!newshub1.nl.home.com!news.nl.home.com!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews