LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-13-2008, 09:00 AM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Rep: Reputation: 78
java aplication autostartup


Hello.

I need to autostart one java aplication when xwindow (KDE) is started.
The aplication starts with no problem when runing from the shell with command "java -classpath start.jar".
I need the KDE to load it automatically when started.

I get a script how to do that but it doesn't work. I should add to Xclients this.

if [ -e $APP_HOME/start.jar ] ; then
(
cd $APP_HOME
java -classpath start.jar
)
fi

Should this script work??

My OS is: CentOS5

Last edited by hua; 05-13-2008 at 09:07 AM.
 
Old 05-13-2008, 09:37 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
If you want any program to load automatically when KDE starts, create a script to run the program in ~/.kde/Autostart.

That script should work, just make sure you "chmod +x" the script after you put it in the directory.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fbdesk for fluxbox autostartup eastsuse Linux - Newbie 6 04-30-2005 12:11 AM
what aplication should i use citizen_x Linux - Software 1 04-05-2004 08:45 AM
Help with X aplication.... hulf_slo Linux - Software 1 07-19-2003 12:22 PM
X autostartup in RH8 darchon Linux - General 12 03-25-2003 07:47 PM
autostartup problems mark_888 Linux - General 1 03-10-2001 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration