I got the build done running mvn compile before ant -f build_RelProxy.xml (setting maven_folder to target and creating boot folder in it) although the ant build throws a exception in the maven goal:
<pre>
[artifact:mvn] Caused by: java.lang.ClassNotFoundException: org.codehaus.classwo
rlds.Launcher
[artifact:mvn] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[artifact:mvn] at java.security.AccessController.doPrivileged(Native Method)
[artifact:mvn] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[artifact:mvn] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[artifact:mvn] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[artifact:mvn] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[artifact:mvn] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[artifact:mvn] Could not find the main class: org.codehaus.classworlds.Launcher.
Program will exit.
[artifact:mvn] Exception in thread "main"
[artifact:mvn] Java Result: 1
[artifact:mvn] java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
[artifact:mvn] Caused by: java.lang.ClassNotFoundException: org.codehaus.classwo
rlds.Launcher
[artifact:mvn] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[artifact:mvn] at java.security.AccessController.doPrivileged(Native Method)
[artifact:mvn] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[artifact:mvn] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[artifact:mvn] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[artifact:mvn] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[artifact:mvn] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[artifact:mvn] Could not find the main class: org.codehaus.classworlds.Launcher.
Program will exit.
</pre>
The ant task generates the jar and zip files
If i try to build with ant directly (without previous mvn) it fails due to the same exception.
* Respecting the usage i got a exception trying to run JProxyShell (using built classes or the distributed jar from github):
<pre>
> java -cp target/classes com.innowhere.relproxy.jproxy.JProxyShell ""
Exception in thread "main" java.lang.NullPointerException
at com.innowhere.relproxy.impl.jproxy.clsmgr.comp.JProxyCompilerInMemory
.createJProxyCompilerContext(JProxyCompilerInMemory.java:46)
at com.innowhere.relproxy.impl.jproxy.clsmgr.JProxyEngine.detectChangesI
nSources(JProxyEngine.java:266)
at com.innowhere.relproxy.impl.jproxy.clsmgr.JProxyEngine.init(JProxyEng
ine.java:43)
at com.innowhere.relproxy.impl.jproxy.JProxyImpl.init(JProxyImpl.java:36
)
at com.innowhere.relproxy.impl.jproxy.JProxyShellImpl.init(JProxyShellIm
pl.java:112)
at com.innowhere.relproxy.impl.jproxy.JProxyShellImpl.main(JProxyShellIm
pl.java:26)
at com.innowhere.relproxy.jproxy.JProxyShell.main(JProxyShell.java:13)
</pre>
* Reading the code i think the npe is caused by javax.tools.ToolProvider.getSystemJavaCompiler() returning null, maybe it is due to being a jre the default java installation
* Possible solutions:
** REinstall a jdk without external jre
** Setting the java.home property to a jdk
The "hola" message is rinted
What should be the behaviour with com.innowhere.relproxy.jproxy.JProxy
Shell ""? it doesnt lanch a interactive shell...
new Scanner(System.in,encoding.name());