Results 1 to 2 of 2
  1. #1
    IYIaster is offline Member
    Join Date
    Jul 2009
    Rep Power

    Default Launch Java application with root privileges from gnome desktop shortcut.

    I'm trying to figure out a way to run a Java application with root privileges from an account that doesn't have root privileges. I tried using consolehelper and it will launch other applications as root but when I try using /usr/java/jdk/java -jar /location/app.jar it asks for the root password but doesn't launch the application.

  2. #2
    xcallmejudasx's Avatar
    xcallmejudasx is offline Senior Member
    Join Date
    Oct 2008
    Houston, TX & Flint, MI
    Rep Power


    Have you tried the Java Service Wrapper? ( Java Service Wrapper - What is the Java Service Wrapper? )

    I haven't used it but from my brief reading it seemed like it may help. As far as why ConsoleHelper isn't working I'm guessing when you try to launch it it's having to run something else as well and that second application isn't getting the root permissions sent down.
    Liberty has never come from the government.
    Liberty has always come from the subjects of government.
    The history of liberty is the history of resistance.
    The history of liberty is a history of the limitation of governmental power, not the increase of it.

Similar Threads

  1. creating java desktop application
    By highfive in forum New To Java
    Replies: 2
    Last Post: 03-29-2010, 04:14 PM
  2. Replies: 3
    Last Post: 12-04-2009, 12:10 PM
  3. Replies: 0
    Last Post: 08-18-2009, 04:50 PM
  4. Installer for Java desktop application
    By nitingupta183 in forum SWT / JFace
    Replies: 0
    Last Post: 03-18-2008, 07:53 AM
  5. launch a desktop icon program command
    By avaj987 in forum New To Java
    Replies: 3
    Last Post: 08-03-2007, 11:40 AM

Posting Permissions

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