This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[20070411] Open attached project ant run target: <target name="testRun" depends="compile" > <java classname="a.Main" classpath="build/web/WEB-INF/classes"/> </target> a exception was thrown java.lang.SecurityException at org.netbeans.TopSecurityManager.checkSetSecurityManager(TopSecurityManager.java:351) at org.netbeans.TopSecurityManager.checkPermission(TopSecurityManager.java:315) at java.lang.System.setSecurityManager0(System.java:253) at java.lang.System.setSecurityManager(System.java:245) at org.apache.tools.ant.types.Permissions.restoreSecurityManager(Permissions.java:152) at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:227)
Created attachment 40839 [details] Testing web project
Created attachment 40840 [details] Exception
You need to use fork=true. *** This issue has been marked as a duplicate of 47645 ***
v