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 8438115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:37:08+00:00 2026-06-10T07:37:08+00:00

I have a runnable jar file, that I start with java -jar myFile.jar on

  • 0

I have a runnable jar file, that I start with

java -jar myFile.jar

on Windows. A customer stated that he had problems starting the application (which is this jar file wrapped into an executable). I have the suspicion that it has something to do with admin rights. So I’d like to run my jar file without admin rights for testing purposes (because this way I get the System.out/err which helps greatly for debugging).

I realize that I can just create a non-admin account and start the application there, but I’d like to know if there is a way to specifically start a jar from an admin account so that it doesn’t have admin rights in the console. Or alternatively: Is there a way to open up a console that has no admin rights from an admin account?

The customer uses Windows XP, so this is the operating system that I can use. (Although if you know something in a newer Windows like Win7, I appreciate it if you would tell me too).

EDIT: To clarify: I am looking for something like this

java -jar -runWithoutAdminRights myFile.jar

or

start /runWithoutAdminRights java -jar myFile.jar

or a way to open up a non-admin console from an admin account.

  • 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-06-10T07:37:10+00:00Added an answer on June 10, 2026 at 7:37 am

    The Runas command definitely looks like the way to go.

    I believe the way to go about this would be to first check the trust level options available to you:

    runas /showtrustlevels

    You should get something like the following:

    C:\Windows\system32>runas /showtrustlevels
    The following trust levels are available on your system:
    0x20000 (Basic User)
    

    You would then take the value for “Basic User” and run something like the following to start java:

    runas /trustlevel:0x20000 "java -jar myFile.jar"

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

Sidebar

Related Questions

I have a single .jar file that I create by using the runnable .jar
I have Java application and I export it to runnable .jar application. Can I
I have an SWT application that I'm trying to create a runnable .jar for;
In Java, how can I have a Runnable class that, depending on its constructor,
I'm using the Eclipse Export... Runnable jar file feature to package up my Clojure+Java
I have a Runnable jar file, is there anyway to embed it into html
I have made a Java application that uses the PBKDF2WithHmacSHA1 encryption algorithm and I
I have a java application I am trying to start using YAJSW. It is
I have a Runnable class that I'm writing. Inside of it, I have two
I have a Swing runnable app which updates messages, then I have a Java

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.