RE: java.security.AccessControlException when using Ant, but runs ok when invoking java from console

2012-09-01 Thread Martin Gainty
why not add the grant for javax.management.MBeanTrustPermission to %JAVA_HOME%\jre\lib\security\java.policy ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht

java.security.AccessControlException when using Ant, but runs ok when invoking java from console

2012-09-01 Thread Menelaos Perdikeas
I have the following *Ant < java >* task: When I run *Ant* the execution of the **task fails (see trace below my signature). When I copy-paste the echoed classpath and run my code from the command line with *java -classpath ..* the execution succeeds! I was a