Community
Participate
Working Groups
Build Identifier: 20100917-0705 When using Export to create a runnable Jar it adds everything that has been excluded in the source path. It also does not add libraries/jars that are in the build classpath. Reproducible: Always Steps to Reproduce: 1. Export 2. Runnable Jar File 3. Launch configuration 5. Export destination 6. Library handling
Issues and concerns with Eclipse's Java tooling goes to JDT.
http://www.eclipse.org/eclipse/platform-text/development/bug-incomplete.htm.
(In reply to comment #2) > http://www.eclipse.org/eclipse/platform-text/development/bug-incomplete.htm. Our source directory tree is as follows; c:\development\source Under source there are several directories for C++ and Java. The Java directory is c:\development\source\com with various sub-directories for packages. In the Project settings I have had to set the source directory to be c:\development\source and excluded all sub-directories except 'com' where the Java code is. I have added additional third party jars to the project and have successfully built the project using Eclipse. The application also runs fine. I now want to 'Export' (package) the application with all the third party jars into a single Runnable Jar file. I run the Export tool and it exports every file from c:\development\source and seems to be ignoring my Project properties for the java source. I therefore getting all our C++, Java, Java Classes added into the Jar file, which I am not expecting. I expect the application classes and third party jar files as the single Runnable Jar File.
I have re-opened the issue see my previous comment.
OK, so the generated JAR does work but it has too many files?
No it does not work, it contains all the files from the root directory and sub-directories. Which means it has as well as the Java source and classes, my C++ source files and header files.
With "work" I mean, the JAR can be used to run your app using java -jar. Is that not the case?
>In the Project settings I have had to set the source directory to be >c:\development\source and excluded all sub-directories except 'com' where the >Java code is. How exactly do you exclude them? Are you using resource filters or do you exclude them from the Java build path? So far I cannot reproduce this. Please add detailed steps that allow us to reproduce the problem, otherwise we can't do much.
Created attachment 182819 [details] Project properties screen shots I have attached screen shots of my project properties.
(In reply to comment #9) > Created an attachment (id=182819) [details] [diff] > Project properties screen shots > > I have attached screen shots of my project properties. Unfortunately I can't see from that screenshot how your project is set up (e.g. does it use linked resources, resource filters, etc.). As said, best is to provide steps or attach a little demo project which is setup your way.
Ping.
.