Can't debug

I'm using the new Aurora build along with Java generics and I was able to successfully compile my project, but when I try to debug one of my classes I get the following error:

C:/java/jdk1.4\bin\javaw.exe -Xbootclasspath/p:C:\java\adding_generics-2_2-ea\gjc-rt.jar -Xmx512M -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=wattreyelts1:2867,suspend=y -classpath "C:\java\adding_generics-2_2-ea\collect.jar;C:\java\jdk1.4\jre\lib\charsets.jar;C:\java\jdk1.4\jre\lib\jce.jar;C:\java\jdk1.4\jre\lib\jsse.jar;C:\java\jdk1.4\jre\lib\plugin.jar;C:\java\jdk1.4\jre\lib\rt.jar;C:\java\jdk1.4\jre\lib\sunrsasign.jar;C:\java\jdk1.4\jre\lib\ext\dnsns.jar;C:\java\jdk1.4\jre\lib\ext\ldapsec.jar;C:\java\jdk1.4\jre\lib\ext\localedata.jar;C:\java\jdk1.4\jre\lib\ext\sunjce_provider.jar;C:\java\adding_generics-2_2-ea\gjc-rt.jar;C:\Temp;C:\projects\idispatch\resources;C:\projects\idispatch\lib\baan-jsptags.jar;C:\projects\idispatch\lib\bcel-5.1.jar;C:\projects\idispatch\lib\btree.jar;C:\projects\idispatch\lib\forms-1.0.jar;C:\projects\idispatch\lib\Harpoon.jar;C:\projects\idispatch\lib\jace-src.jar;C:\projects\idispatch\lib\jace.jar;C:\projects\idispatch\lib\log4j-1.2.7.jar;C:\projects\idispatch\lib\looks-1.1.2.jar;C:\projects\idispatch\lib\looks-win-1.1.2.jar;C:\projects\idispatch\lib\openmap.jar;C:\projects\idispatch\lib\plastic-1.1.2.jar;C:\projects\idispatch\lib\tagish.jar;C:\projects\idispatch\lib\tinySQL.jar;C:\projects\idispatch\lib\xerces.jar;C:\IntelliJ-IDEA-996\lib\idea_rt.jar" com.caps.gis.MultiPointRouter
Process not started.
CreateProcess: C:/java/jdk1.4\bin\javaw.exe -Xbootclasspath/p:C:\java\adding_generics-2_2-ea\gjc-rt.jar -Xmx512M -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=wattreyelts1:2867,suspend=y -classpath C:\java\adding_generics-2_2-ea\collect.jar;C:\java\jdk1.4\jre\lib\charsets.jar;C:\java\jdk1.4\jre\lib\jce.jar;C:\java\jdk1.4\jre\lib\jsse.jar;C:\java\jdk1.4\jre\lib\plugin.jar;C:\java\jdk1.4\jre\lib\rt.jar;C:\java\jdk1.4\jre\lib\sunrsasign.jar;C:\java\jdk1.4\jre\lib\ext\dnsns.jar;C:\java\jdk1.4\jre\lib\ext\ldapsec.jar;C:\java\jdk1.4\jre\lib\ext\localedata.jar;C:\java\jdk1.4\jre\lib\ext\sunjce_provider.jar;C:\java\adding_generics-2_2-ea\gjc-rt.jar;C:\Temp;C:\projects\idispatch\resources;C:\projects\idispatch\lib\baan-jsptags.jar;C:\projects\idispatch\lib\bcel-5.1.jar;C:\projects\idispatch\lib\btree.jar;C:\projects\idispatch\lib\forms-1.0.jar;C:\projects\idispatch\lib\Harpoon.jar;C:\projects\idispatch\lib\jace-src.jar;C:\projects\idispatch\lib\jace.jar;C:\projects\idispatch\lib\log4j-1.?

If I try to run this same command (with java instead of javaw) directly in a console then I get the following error:

C:\projects\idispatch>C:/java/jdk1.4\bin\java.exe -Xbootclasspath/p:C:\java\adding_generics-2_2-ea\gjc-rt.jar -Xmx512M -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=wattreyelts1:2867,suspend=y -classpath "C:\java\adding_generics-2_2-ea\collect.jar;C:\Temp;C:\projects\idispatch\resources" com.caps.gis.MultiPointRouter


Anybody got any ideas? (unintentional pun)

God bless,
-Toby Reyelts

1 comment
Comment actions Permalink

Hello,

I have similar problem with java/javaw <-> run/debug.

Every project I create and set up properly, compiles and running it is not a problem too, but I can't debug it in "Application" mode.
In Debig mode I always get a message that main class can not be found. The class file of course is on the classpath.
There are few differences between the command lines, which IDEA generates upon Run/Debug actions.


RUN:
C:/j2sdk1.4.2_02\bin\java -Djok.deployment.cfg.base=c:\develop\trunk\jok_app\jok\config\app\xmlconfig\ -Djok.noejb=true -Djok.standalone=true -Djava.endorsed.dirs=c:/develop/trunk/jok_app/jok/lib/shared/ -Djok.test.cdu=test.cdu.CDUUnitTestAdapter -Dfile.encoding=ISO-8859-2 -classpath C:\j2sdk1.4.2_02\jre\lib\charsets.jar;C:\j2sdk1.4.2_02\jre\lib\jce.jar;C:\j2sdk1.4.2_02\jre\lib\jsse.jar;C:\j2sdk1.4.2_02\jre\lib\plugin.jar;C:\j2sdk1.4.2_02\jre\lib\rt.jar;C:\j2sdk1.4.2_02\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_02\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.2_02\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2_02\jre\lib\ext\localedata.jar;C:\j2sdk1.4.2_02\jre\lib\ext\sunjce_provider.jar;C:\develop\idea\builds\jok_app;C:\develop\trunk\jok_app\jok\config\app\jcv;C:\develop\trunk\jok_app\jok\config\app;C:\develop\trunk\jok_app\jok\lib\web\struts-fixed.jar;C:\develop\trunk\jok_app\jok\lib\web\jcifs.jar;C:\develop\trunk\jok_app\jok\lib\tomcat\j2ee_without_servlets.jar;C:\develop\trunk\jok_app\jok\lib\shared\xml-apis.jar;C:\develop\trunk\jok_app\jok\lib\shared\xmlParserAPIs.jar;C:\develop\trunk\jok_app\jok\lib\shared\xercesImpl.jar;C:\develop\trunk\jok_app\jok\lib\shared\xalan.jar;C:\develop\trunk\jok_app\jok\lib\shared\logkit.jar;C:\develop\trunk\jok_app\jok\lib\shared\optional.jar;C:\develop\trunk\jok_app\jok\lib\shared\log4j.jar;C:\develop\trunk\jok_app\jok\lib\shared\jakarta-oro.jar;C:\develop\trunk\jok_app\jok\lib\shared\FormProc.jar;C:\develop\trunk\jok_app\jok\lib\shared\fop.jar;C:\develop\trunk\jok_app\jok\lib\shared\EdenLib.jar;C:\develop\trunk\jok_app\jok\lib\shared\dom4j-full.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-vfs.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-vfs-1.0-dev.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-resources.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-validator.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-pool.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-logging.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-logging-api.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-lang.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-fileupload.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-digester.jar;C:\develop\trunk\jok_app\jok\lib\shared\avalon-framework.jar;C:\develop\trunk\jok_app\jok\lib\shared\batik.jar;C:\develop\trunk\jok_app\jok\lib\shared\castor.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-beanutils.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-collections.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-dbcp.jar;C:\develop\trunk\jok_app\jok\lib\shared\ant.jar;C:\develop\trunk\jok_app\jok\lib\doclet\XmlDoclet.jar;C:\develop\trunk\jok_app\jok\lib\db\nls_charset12.jar;C:\develop\trunk\jok_app\jok\lib\db\mysql-connector-java.jar;C:\develop\trunk\jok_app\jok\lib\db\classes12.jar;C:\develop\trunk\jok_app\jok\lib\be\wli\dacpWS.jar;C:\develop\trunk\jok_app\jok\lib\be\wli\NotificationSenderWS.jar;C:\develop\trunk\jok_app\jok\lib\be\wli\webservices.jar;C:\develop\trunk\jok_app\jok\lib\be\cdu\ws_cl_cdu.jar;C:\develop\trunk\jok_app\jok\lib\app\web\client_web_tst.jar;C:\develop\trunk\jok_app\jok\lib\app\web\client_web_base.jar;C:\develop\trunk\jok_app\jok\lib\app\sms\client_sms_common.jar;C:\develop\trunk\jok_app\jok\lib\app\sms\client_sms.jar;C:\develop\trunk\jok_app\jok\lib\app\ejb\tst_ejb.jar;C:\develop\trunk\jok_app\jok\lib\app\ejb\svc_ejb.jar;C:\develop\trunk\jok_app\jok\lib\app\ejb\sms_ejb.jar;C:\develop\trunk\jok_app\jok\lib\app\da\da.jar;C:\develop\trunk\jok_app\jok\lib\app\common\common_tst.jar;C:\develop\trunk\jok_app\jok\lib\app\common\common_svc.jar;C:\develop\trunk\jok_app\jok\lib\app\common\common.jar;C:\develop\trunk\jok_app\jok\lib\app\cf\cf.jar;C:\develop\trunk\jok_app\jok\lib\app\bl\bl.jar;C:\Apps\BEA\weblogic81\server\lib\weblogic.jar;C:\java\apache-ant-1.5.4\lib\optional.jar;C:\java\apache-ant-1.5.4\lib\ant.jar;C:\java\IDEA-1101\lib\idea_rt.jar -Didea.launcher.port=7532 -Didea.launcher.library=C:\java\IDEA-1101\bin\breakgen.dll com.intellij.rt.execution.application.AppMain test.base.TestExecutor -logger=test.base.xmllogging.CanooXMLLogger -outdir=c:\develop\trunk\logs\jok_app -output=result -domain=CNT -testForNewOnly=true


DEBUG:
C:/j2sdk1.4.2_02\bin\javaw.exe -Djok.deployment.cfg.base=c:\develop\trunk\jok_app\jok\config\app\xmlconfig\ -Djok.noejb=true -Djok.standalone=true -Djava.endorsed.dirs=c:/develop/trunk/jok_app/jok/lib/shared/ -Djok.test.cdu=test.cdu.CDUUnitTestAdapter -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=CP900002900C:1260,suspend=y -classpath "C:\j2sdk1.4.2_02\jre\lib\charsets.jar;C:\j2sdk1.4.2_02\jre\lib\jce.jar;C:\j2sdk1.4.2_02\jre\lib\jsse.jar;C:\j2sdk1.4.2_02\jre\lib\plugin.jar;C:\j2sdk1.4.2_02\jre\lib\rt.jar;C:\j2sdk1.4.2_02\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_02\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.2_02\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2_02\jre\lib\ext\localedata.jar;C:\j2sdk1.4.2_02\jre\lib\ext\sunjce_provider.jar;C:\develop\idea\builds\jok_app;C:\develop\trunk\jok_app\jok\config\app\jcv;C:\develop\trunk\jok_app\jok\config\app;C:\develop\trunk\jok_app\jok\lib\web\struts-fixed.jar;C:\develop\trunk\jok_app\jok\lib\web\jcifs.jar;C:\develop\trunk\jok_app\jok\lib\tomcat\j2ee_without_servlets.jar;C:\develop\trunk\jok_app\jok\lib\shared\xml-apis.jar;C:\develop\trunk\jok_app\jok\lib\shared\xmlParserAPIs.jar;C:\develop\trunk\jok_app\jok\lib\shared\xercesImpl.jar;C:\develop\trunk\jok_app\jok\lib\shared\xalan.jar;C:\develop\trunk\jok_app\jok\lib\shared\logkit.jar;C:\develop\trunk\jok_app\jok\lib\shared\optional.jar;C:\develop\trunk\jok_app\jok\lib\shared\log4j.jar;C:\develop\trunk\jok_app\jok\lib\shared\jakarta-oro.jar;C:\develop\trunk\jok_app\jok\lib\shared\FormProc.jar;C:\develop\trunk\jok_app\jok\lib\shared\fop.jar;C:\develop\trunk\jok_app\jok\lib\shared\EdenLib.jar;C:\develop\trunk\jok_app\jok\lib\shared\dom4j-full.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-vfs.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-vfs-1.0-dev.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-resources.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-validator.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-pool.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-logging.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-logging-api.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-lang.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-fileupload.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-digester.jar;C:\develop\trunk\jok_app\jok\lib\shared\avalon-framework.jar;C:\develop\trunk\jok_app\jok\lib\shared\batik.jar;C:\develop\trunk\jok_app\jok\lib\shared\castor.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-beanutils.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-collections.jar;C:\develop\trunk\jok_app\jok\lib\shared\commons-dbcp.jar;C:\develop\trunk\jok_app\jok\lib\shared\ant.jar;C:\develop\trunk\jok_app\jok\lib\doclet\XmlDoclet.jar;C:\develop\trunk\jok_app\jok\lib\db\nls_charset12.jar;C:\develop\trunk\jok_app\jok\lib\db\mysql-connector-java.jar;C:\develop\trunk\jok_app\jok\lib\db\classes12.jar;C:\develop\trunk\jok_app\jok\lib\be\wli\dacpWS.jar;C:\develop\trunk\jok_app\jok\lib\be\wli\NotificationSenderWS.jar;C:\develop\trunk\jok_app\jok\lib\be\wli\webservices.jar;C:\develop\trunk\jok_app\jok\lib\be\cdu\ws_cl_cdu.jar;C:\develop\trunk\jok_app\jok\lib\app\web\client_web_tst.jar;C:\develop\trunk\jok_app\jok\lib\app\web\client_web_base.jar;C:\develop\trunk\jok_app\jok\lib\app\sms\client_sms_common.jar;C:\develop\trunk\jok_app\jok\lib\app\sms\client_sms.jar;C:\develop\trunk\jok_app\jok\lib\app\ejb\tst_ejb.jar;C:\develop\trunk\jok_app\jok\lib\app\ejb\svc_ejb.jar;C:\develop\trunk\jok_app\jok\lib\app\ejb\sms_ejb.jar;C:\develop\trunk\jok_app\jok\lib\app\da\da.jar;C:\develop\trunk\jok_app\jok\lib\app\common\common_tst.jar;C:\develop\trunk\jok_app\jok\lib\app\common\common_svc.jar;C:\develop\trunk\jok_app\jok\lib\app\common\common.jar;C:\develop\trunk\jok_app\jok\lib\app\cf\cf.jar;C:\develop\trunk\jok_app\jok\lib\app\bl\bl.jar;C:\Apps\BEA\weblogic81\server\lib\weblogic.jar;C:\java\apache-ant-1.5.4\lib\optional.jar;C:\java\apache-ant-1.5.4\lib\ant.jar;C:\java\IDEA-1101\lib\idea_rt.jar" test.base.TestExecutor -logger=test.base.xmllogging.CanooXMLLogger -outdir=c:\develop\trunk\logs\jok_app -output=result -domain=CNT -testForNewOnly=true



The first diff is the presence of:
Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=CP900002900C:1260,suspend=y
in the DEBUG command, just before the --classpath JVM prameter.


The second one is:
-Dfile.encoding=ISO-8859-2
present in the RUN command.


The third diff is:
-Didea.launcher.port=7532 -Didea.launcher.library=C:\java\IDEA-1101\bin\breakgen.dll com.intellij.rt.execution.application.AppMain
present in the RUN command, and not found in DEBUG.

The last but I think the most important difference is the java executable used: "java" for RUN and "javaw" for DEBUG.
How can I setup IDEA to use "java" instead of "javaw" for DEBUG action.

Could some one explain to me differences TWO, THREE and FOUR? Eventually tell me how to make the Debug action to work?

This happenes to me since IDEA build #944.
I currently use IDEA build #1101.

Thanks!

Pavlin

0

Please sign in to leave a comment.