Getting "shmemBase_attach failed: the system cannot find the file specified" when trying to connect to applets for debugging

I am using netbeans 6.1.

In java time settings, I have the following:

-agentlib: JDWP = transport = dt_shmem, address = jdbconn, server = y, pause = n

and the following in the attach dialog in netbeans:

Debugger: JPDA Debugger

Connector: shared memory (attaches shared memory to other virtual machines)

Transport: dt_shmem

Name: jdbconn

I got the above settings on the FaqDebuggingAppletRemotely page on the netbeans wiki.

The applet is located on the aspx page (the applet that is signed is a way to transfer the legacy platform through the client browser, I'm really a C # developer). I managed to get a security warning that gives me the ability to connect to the applet, but whenever I try to connect, I see:

Joining jdbconn

ShmemBase_attach error: the system cannot find the specified file

in the output window in netbeans.

Any help gratefully received!

+5
source share
2 answers

When debugging with the shared memory option (transport = dt_shmem), you use internal Windows shared memory objects for communication between the debugger and jvm.

This means that if you:

. , jvm,

. Windows,

.

, , Linux-... , .

, , .

Java :

-Xdebug -Xrunjdwp: transport = dt_socket, server = y, address = 8000, suspend = y

, jvm , jdwp, 8000 , .

IDE . Netbeans, Connector = socket connector, address = 8000. -, , , , , , .

!

0

( ... , , , ), JVM, , , JVM , .

JVM, Windows 7:

1) , JVM ( ).

2) Windows (CTRL + ALT + DELETE- > ) .

3) , java *.exe.

4) .

5) " " → "" java *.exe, ( "java.exe * 32" , asteriks . , , IS).

6) " ". "bin" JVM, ! , , ?

Linux :

Windows, .

ps -e | grep java

pid (s).

, , JVM :

Java ( , ).

JVM, , :

1) ( - ) bin JVM. ( Windows 7 + bin " " ).

2) , :

    javaws -viewer

"Java Cache Viewer", . , " Java".

3) Java, , :

    -agentlib:jdwp=transport=dt_shmem,address=jdbconn,server=y,suspend=n

4) "", "" java, .

5) ! , ; Java WebStart, , :

    javaws -uninstall

bin JVM, , bin, Path ( PATH).

IDE NetBeans! , ( "" NetBeans), . , Netbeans !

, , ...

-1

All Articles