Community
Participate
Working Groups
Created attachment 288910 [details] Eclipse Project Structure
Created attachment 288911 [details] Eclipse Project target/classes Folder
Created attachment 288912 [details] Exported Jar-In-Jar Root Folder
Created attachment 288913 [details] Exported Jar-In-Jar resources Folder
Created attachment 288914 [details] Exported Jar-In-Jar MANIFEST
When running a Class from the Eclipse Project, the CONTENTS of the resources Folder are copied to the target/classes Folder. When the project is exported using the "Export/Runnable Jar File" wizard, the resources FOLDER is copied to the output Jar but is not added to the Classpath. Resources loaded via Thread.currentThread().getContextClassLoader() are therefore not found in the Jar-In-Jar.