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.
When trying to debug simple java project, IDE first throws this error (in lower right corner): java.lang.NoClassDefFoundError: com/sun/jdi/connect/Connector at org.netbeans.modules.debugger.jpda.ant.JPDAStart.run(JPDAStart.java:316) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1411) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1991) And the Project Debug Output window throws: FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: failed to attach to shared memory connection: The system cannot find the file specified ERROR: JDWP Transport dt_shmem failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690] If I change verbosity level of Ant, I get the following output prior to fatal error: -debug-appclient-start-nbjpda: Property "app.client" has not been set Property "app.client" has not been set -debug-appclient-pregfv3: Skipped because property 'j2ee.appclient.tool.args' not set. -debug-appclient: Property "jpda.address.appclient" has not been set Executing 'C:\Program Files (x86)\Java\jdk1.6.0_25\jre\bin\java.exe' with arguments: '-Djava.endorsed.dirs=C:\glassfish3\glassfish\lib\endorsed;C:\glassfish3\glassfish\modules\endorsed' '-javaagent:C:\glassfish3\glassfish\lib\gf-client.jar=mode=acscript,arg=-configxml,arg=C:\glassfish3\glassfish\domains\domain1\config\sun-acc.xml,client=jar=dist/LabIS-JPrenosClient.jar' '-Xrunjdwp:transport=dt_shmem,address=${jpda.address.appclient}' '-Xdebug' '-Djava.system.class.loader=org.glassfish.appclient.client.acc.agent.ACCAgentClassLoader' '-jar' I see that the ${jpda.address.appclient} is missing, could this be the culprit? I did try different versions of Java (jdk6, jdk7-both 32 and 64 bit). Removing Netbeans, Glassfish, Java and NB application data directory doesn't help either.
Also normal java project throws the same error: -debug-start-debuggee: Property "jpda.address" has not been set Executing 'C:\Program Files (x86)\Java\jdk1.6.0_25\jre\bin\java.exe' with arguments: '-Xbootclasspath/p:C:\Program Files (x86)\NetBeans 7.1.1\java\modules\ext\jaxws22\api\jaxws-api.jar;C:\Program Files (x86)\NetBeans 7.1.1\ide\modules\ext\jaxb\api\jaxb-api.jar' '-Xdebug' '-Xrunjdwp:transport=dt_shmem,address=${jpda.address}' '-Dfile.encoding=UTF-8' '-classpath' 'D:\Documents\Source-code\Fin-Pro\labis_java_framework\apache_commons\io\2.0\commons-io-2.0.jar;D:\Documents\Source-code\Fin-Pro\labis_java_framework\jmimemagic\jmimemagic-0.1.0.jar;D:\Documents\Source-code\Fin-Pro\labis_java_framework\apache_commons\logging\1.1.1\commons-logging-1.1.1.jar;C:\Users\rok.zevnik.FIN-PRO\Documents\NetBeansProjects\SandboxProject\build\classes' 'sandboxproject.SandboxProject' The ' characters around the executable and arguments are not part of the command. Execute:Java13CommandLauncher: Executing 'C:\Program Files (x86)\Java\jdk1.6.0_25\jre\bin\java.exe' with arguments: '-Xbootclasspath/p:C:\Program Files (x86)\NetBeans 7.1.1\java\modules\ext\jaxws22\api\jaxws-api.jar;C:\Program Files (x86)\NetBeans 7.1.1\ide\modules\ext\jaxb\api\jaxb-api.jar' '-Xdebug' '-Xrunjdwp:transport=dt_shmem,address=${jpda.address}' '-Dfile.encoding=UTF-8' '-classpath' 'D:\Documents\Source-code\Fin-Pro\labis_java_framework\apache_commons\io\2.0\commons-io-2.0.jar;D:\Documents\Source-code\Fin-Pro\labis_java_framework\jmimemagic\jmimemagic-0.1.0.jar;D:\Documents\Source-code\Fin-Pro\labis_java_framework\apache_commons\logging\1.1.1\commons-logging-1.1.1.jar;C:\Users\rok.zevnik.FIN-PRO\Documents\NetBeansProjects\SandboxProject\build\classes' 'sandboxproject.SandboxProject' The ' characters around the executable and arguments are not part of the command. FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: failed to attach to shared memory connection: The system cannot find the file specified ERROR: JDWP Transport dt_shmem failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690] Java Result: 1
The problem is, that you're running java from the JRE. You need to install full JDK and run java from Java\jdk1.6.0_25\bin\java.exe