• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Script run from /etc/xdg/autostart

Ranch Hand
Posts: 499
Spring AngularJS Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I wrote a script and a desktop file to run my jar at startup and placed the script in /usr/bin and desktop file in /etc/xdg/autostart. When I reboot, the jar is not running. I used the top command and ps -A commands to check this. Currently I am using Ubuntu 14.04 Trusty. To test this I wrote another script file and desktop file to run a jar that just displays a JOptionPane message dialog. When I reboot, this jar runs without any problem. The script and desktop files are as follows:

For my jar:

Script file : suscript

Desktop file : su.desktop

I will change the permission using the command

For test jar:

Script file : sutscript

Desktop file : sut.desktop

I will change the permission using the command

But when I manually run the script or jar, it works. There are no exceptions or errors. Any ideas?
You can thank my dental hygienist for my untimely aliveness. So tiny:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!