Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 566505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:59:04+00:00 2026-05-13T12:59:04+00:00

My application consists of a server a and client interface. I want the client

  • 0

My application consists of a server a and client interface. I want the client to be able to request the server to write a registry key. Now i did my research on libraries for java that do that and i found a few. The problem lies with admin rights. When i run a simple java program to read from the registry i get an error that informs me that i don’t have sufficient rights. I am guessing it has to do with UAC in vista and 7 but the same problem also occurs when i run the program from windows XP.

Is there a way to run my server program with elevated rights so that when the client requests a registry update, the server will run it with no problems? (right click run as admin is not an option i’m afraid)

EDIT :

What my question actually boils down to is whether there is a way to launch a jar file as an executable with elevated permissions. I mean something as simple as that should be available no?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:59:05+00:00Added an answer on May 13, 2026 at 12:59 pm

    I found a “hacky” solution to this problem. I create a shortcut to the java.exe program, modify it’s target to pass parameters that launch my jar and then simply tick “Run as administrator”. But i still think that there should be an option to launch with elevated rights for jars…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing test code to test a client-server application. The application under test consists
I have developed a basic Chat application in Java. It consists of a server
I am writing an application which consists of a master server database (most probably
I've written a layered web application that consists of a rich-web client (PHP) that
I'm developing an project, which consists in a webservice and a client application. It's
I am writing a simple Python web application that consists of several pages of
Currently i am working on a desktop application which consists mathematical analysiss.I am using
I am working on localization for a asp.net application that consists of several projects.
I am in the process of developing a web application that consists visually of
There is an application with an extensive object graph. This graph mainly consists of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.