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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:37:31+00:00 2026-06-04T21:37:31+00:00

When i create a runnable jar file from a java source code file from

  • 0

When i create a runnable jar file from a java source code file from eclipse, i believe it creates a class file which then can be run by the JVM.

The reason i am asking this is because i am going to be making an java application that keeps all my passwords. The app is going consist of an interface that asks for a password and then if the password is correct show the passwords. Here are my questions on this subject:

  • What exactly does a runnable *jar file* consist of?
  • If the runnable jar file consists of a class file, can that class file be interpreted in anyway to be able to see the source code which would revile the passwords?
  • when you run the runnable jar file from cmd and type “java -jar xxx”. and “xxx” meaning the file name, does “-jar” mean you are going to run a jar file and “java” means run this following file in the JVM?
  • Is this like .exe files, which can’t be un done to readable source code when turned into the .exe file.
  • 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-04T21:37:32+00:00Added an answer on June 4, 2026 at 9:37 pm

    For the unasked question: If your password is in the source code it will be in the class file in a pretty easy to find way.

    A runnable jar file is a jar file (i.e. zip file with jar suffix) containing class files and special file containing information about which class to start.

    You can decompile byte code: http://www.program-transformation.org/Transform/JavaDecompilers to get source code. But you can actually see the password in the byte code without decompiling it

    yes. in java -jar xxx java means run the jvm using a jar file with name xxx

    If you know the language and tools created you should be able to decompile exe file just as class files. And even if not passwords in the source code will be easy to find in the .exe file. So yes jar files are kind of like exe files, but they are different then what you describe.

    If you want to make an application to maintain your passwords, make it so that it encrypts the stored passwords using a master password that you provide on startup as a user of the application. Never ever store passwords in source code.

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

Sidebar

Related Questions

Can anyone tell me how I can create a runnable JAR file from a
I'm trying out the Eclipse Java 'Export Runnable JAR file. It creates a single
I have a single .jar file that I create by using the runnable .jar
Suppose I'm writing some environment which execute clients code (Java). Clients send jar with
I have a class,which implements Runnable interface. I want to create multiple threads for
I created a jar file with a runnable compiled class and some template files
I would like to create a runnable jar in the same manner in which
I am executing a batch file from java program. When I execute from eclipse
I am using the Maven-Shade-Plugin to create a runnable Uber-jar. According to the last
If I create a runnable object Runnable run = new MyRunnable(); And then pass

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.