I need to set the classloader of javac of my task ant which compiles my code.. i ve read this stackoverflow post but this
javac -J-Djava.system.class.loader=org.awesome.classloader sourcefile.java
didnt worked for me, always returning class not found exception.. and, yes, i set the classpath for the source code and the compiled classloader .class