Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How would I go about exporting the files directly into the jar, instead of it in a directory?

For example, here's my project tree:

project name
    src folder
        package
            Java class
    resources
        resource file

Let's say I want to export so that the JAR tree would look like this:

META-INF
src folder
    package
        Java Class
resource file

Notice the resource file is in the root of the JAR and not in a folder called resources.

Is there a way to do this in Eclipse?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.