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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:45:36+00:00 2026-06-17T16:45:36+00:00

I was creating a runnable jar using eclipse indigo where I encountered two options:

  • 0

I was creating a runnable jar using eclipse indigo where I encountered two options:

Extract required libraries into generated jar

and

Package required libraries into generated jar

While the creation using first option generated only a jar file with the application packages and the META-INF package, the second option also created an org package.

This org package was further extended by its sub-folders as org> eclipse> jdt> internal> jarinjarloader. The jarinjarloader package contained a few classes I haven’t seen before.

This is my manifest file in second option:

Manifest-Version: 1.0
Rsrc-Class-Path: ./
Class-Path: .
Rsrc-Main-Class: main.SimpleCalculator
Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader

main is my application package and SimpleCalculator is my main class.

My questions are:

1) How do these two options differ and what are these new classes added by the second option? Also what are the different name-value pairs in the manifest of second option?

2) Also, is there any difference between a non-runnable and runnable jar except for their manifest files allowing the runnable to become executable. (I found option to specify the main-class in my project while creating even a non-runnable jar file, so am I missing something here or is it just eclipse trying to be extra helpful?)

Note: I have some guesses about these two options but they are just that… guesses!

Thanx in advance!

  • 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-17T16:45:37+00:00Added an answer on June 17, 2026 at 4:45 pm

    1) How do these two options differ?

    What is the difference between runnable jar library handling options?

    2) what are these new classes added by the second option?

    org package is for jar-in-jar-loader. With package option it would become fat jar and your main class would not be the real main any more, see manifest in that case.

    From Ant, but you get the idea right?

     <attribute name="Main-Class" value="org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader"/>
     <attribute name="Rsrc-Main-Class" value="YourRealMainClass"/>
    

    3) Also, is there any difference between a non-runnable and runnable jar except for their manifest files?

    I don’t think so, however exporting non-runnable jar from Eclipse you can specify files to include and not more flexibly.

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

Sidebar

Related Questions

Im creating a runnable Jar file from Eclipse for a Java file. The Java
I'm trying out the Eclipse Java 'Export Runnable JAR file. It creates a single
For the runnable jar that i am creating. it requires xmx1024 as JVM argument.
I am creating a runnable typewriter effect using a textview inside a scrollview. this
I have created an applet program using Eclipse IDE. Now im creating .html file
Running Apache/PHP on this PC. I am using Eclipse >> Export Java > JAR
Why we need to pass the runnable instance while creating the threads using the
Creating a simple RPG game, first time using XNA. Trying to get my character
I creating a web application using JSF,Hibernate,Spring. I have added a filter for checking
I'm creating a .jar file that has a GUI: jar cmf mainClass patcherFull.jar pack

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.