Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / December 2003

Tip: Looking for answers? Try searching our database.

Netbeans: debugger

Thread view: 
Peter Bradley - 13 Dec 2003 18:51 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.