Hi.
I don't seem to be able to get the Netbeans debugger to work to work under
Windows XP (VM fails to initialise). Having checked the knowledge base, I
reinstalled everything into paths without spaces without any joy.
The command in Tools | Options | Debugger ... etc gives the dt_shmem option
(had to change it from dt_socket), but the command showing in the output
window still says dt_socket. Tried using the command line given in the
knowledge base:
runide.exe -J Dnetbeans.debugger.jpda.transport=dt_shmem
but this gives an 'unknown option Dnetbeans' error on startup and the IDE
will not start.
Can anyone suggest anything else I could try?
Thanks
Peter
Michael Amling - 13 Dec 2003 20:48 GMT
> I don't seem to be able to get the Netbeans debugger to work to work under
> Windows XP (VM fails to initialise). Having checked the knowledge base, I
[quoted text clipped - 11 lines]
>
> Can anyone suggest anything else I could try?
Do you need a hyphen before the capital D?
--Mike Amling
Peter Bradley - 13 Dec 2003 22:04 GMT
> > I don't seem to be able to get the Netbeans debugger to work to work under
> > Windows XP (VM fails to initialise). Having checked the knowledge base, I
[quoted text clipped - 15 lines]
>
> --Mike Amling
Hi Mike,
Thanks for that - but no. I tried that. It gives the same error but with
the hyphen (i.e. 'unknown option Dnetbeans' ).
Cheers
Peter
Peter Bradley - 16 Dec 2003 19:43 GMT
> Hi.
>
[quoted text clipped - 17 lines]
>
> Peter
Just to see if it made any difference, I installed Sun ONE Studio Community
Edition. This gives the same error.
I'm sure the problem is that the command line calling the debugger says
"transport=dt_socket", but I can't seem to change it despite changing it in
the debugger configuration. Having said that, if I run the command at the
command prompt having changed the transport to dt_shmem, I get the error:
Error accessing shared memory, rc = -1
Transport dt_shmem failed to initialize, rc = -1
FATAL ERROR in native method: No transports initialized
Here's the output in the Sun ONE output window when the debugger tries to
start:
FATAL ERROR in native method: No transports initialized
C:\j2sdk_nb\j2sdk1.4.2\jre\..\bin\java -Xdebug -Xnoagent -Xrunjdwp:transport
=dt_socket,address=cymro-ffenestri:1171,suspend=y -Djava.compiler=NONE
"-Xbootclasspath:C:\j2sdk_nb\j2sdk1.4.2\jre\..\lib\tools.jar;C:\j2sdk_nb\j2s
dk1.4.2\jre\lib\rt.jar;C:\j2sdk_nb\j2sdk1.4.2\jre\lib\i18n.jar;C:\j2sdk_nb\j
2sdk1.4.2\jre\lib\sunrsasign.jar;C:\j2sdk_nb\j2sdk1.4.2\jre\lib\jsse.jar;C:\
j2sdk_nb\j2sdk1.4.2\jre\lib\jce.jar;C:\j2sdk_nb\j2sdk1.4.2\jre\lib\charsets.
jar;C:\j2sdk_nb\j2sdk1.4.2\jre\classes;;C:\j2sdk_nb\j2sdk1.4.2\jre\lib\ext\d
nsns.jar;C:\j2sdk_nb\j2sdk1.4.2\jre\lib\ext\ldapsec.jar;C:\j2sdk_nb\j2sdk1.4
.2\jre\lib\ext\localedata.jar;C:\j2sdk_nb\j2sdk1.4.2\jre\lib\ext\mysql-conne
ctor-java-3.0.9-stable-bin.jar;C:\j2sdk_nb\j2sdk1.4.2\jre\lib\ext\sunjce_pro
vider.jar" -classpath "c:\Documents and Settings\peter\system;c:\Documents
and Settings\peter\system;C:\Program Files\s1studio\ce\system;C:\Program
Files\s1studio\ce\modules\ext\j2ee-1.3.jar;C:\Program
Files\s1studio\ce\modules\ext\jaas-1.0.jar;C:\Program
Files\s1studio\ce\modules\autoload\activation.jar;C:\Program
Files\s1studio\ce\modules\ext\jms-1.0.2b.jar;C:\Program
Files\s1studio\ce\modules\ext\jta-spec1_0_1.jar;C:\Program
Files\s1studio\ce\modules\autoload\mail.jar;C:\Program
Files\s1studio\ce\lib\openide.jar;C:\Program
Files\s1studio\ce\modules\ext\AbsoluteLayout.jar;C:\Program
Files\s1studio\ce\modules\ext\sql.jar;C:\Program
Files\s1studio\ce\modules\ext\rowset.jar;C:\Program
Files\s1studio\ce\lib\ext\jdbc20x.zip;C:\Program
Files\s1studio\ce\modules\ext\junit.jar;C:\Program
Files\s1studio\ce\modules\ext\junit-ext.jar;C:\Program
Files\s1studio\ce\modules\ext\servlet-2.3.jar;c:\Documents and
Settings\peter\sampledir;C:\Program
Files\s1studio\ce\beans\TimerBean.jar;c:\Documents and
Settings\peter\tomcat401_base;C:\javaprojects\javanotes"
Chapter3.Exercise3_1
err:: No such file or directory
Error [2] in connect() call!
Socket transport failed to init.
Transport dt_socket failed to initialize, rc = -1.