Refer to them in the bin folder and put all resources in the resource folder, and instead of simple compilation, better create a simple ant-script that will collect the jar-archive and run it.
Folder structure:
Project | |--ant | | | -- build.xml |--bin |--lib ---src
build.xml:
<project default="main" basedir=".."> <tstamp> <format property="now" pattern="dd/MM/yyyy hh:mm:ss" /> </tstamp> <target name="main" depends="compile"> <checksum totalproperty="version_md5"> <fileset dir="bin" /> </checksum> <antcall target="makeJar"><param name="jarName" value="executableJAR"/></antcall> </target> <target name="compile"> <javac srcdir="src" destdir="bin" classpath="."> <classpath> <fileset dir="lib"> <include name="**/*.jar"/> </fileset> </classpath> </javac> </target> <target name="makeJar"> <jar basedir="bin" destfile="jars/context_${jarName}.jar" encoding="utf8"> <include name="**/*.class" /> <manifest> <attribute name="Bundle-Version" value="${version_md5}" /> <attribute name="Class-Path" value="lib/SOME_LIB.jar"/> <attribute name="Main-Class" value="package.${jarName}"/> </manifest> </jar> </target> </project>