Cannot attach to java applet

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gen_www@yahoo.com

    #1

    Cannot attach to java applet

    I am running an applet in Internet Explorer using <Object> tag and
    trying to attach to it using Netbeans IDE. However Netbeans is not able
    to attach to the applet. However I can use Netbeans to attach to
    Weblogic server.

    a) Have read various documents on various websites including
    http://java.sun.com/products/plugin/...debugging.html
    b) My classes are compiled with -g option. (Attaching to VM fails, so I
    dont think that's an issue at this stage)

    I will appreciate any help or comments.
    Thanks
    Gen
    ---------
    Here are the settings and parameters:

    Java plugin version = 1.3.1_02
    Internet Explorer version = 6.0.xxx
    (have tried various versions for both)
    1)
    Java runtime parameters in Java plugin control panel.
    -Djava.compiler= NONE -Xnoagent -Xdebug
    -Xrunjdwp:transp ort=dt_shmem,ad dress=2502,serv er=y,suspend=n

    2) <OBJECT> tag:
    OBJECT name="ABC" classid="clsid: CAFEEFAC-0013-0001-0002-ABCDEFFEDCBB"
    width="10" height="10" align="baseline "

    codebase="http://<%=request.getS erverName()%>:< %=request.getSe rverPort()%>/downloads/jre_plugin.cab# Version=1,3,1,0 2">

    <PARAM NAME="code" VALUE="com.mypa ckage.myclass.c lass">
    <PARAM NAME="type" VALUE="applicat ion/x-java-applet;version= 1.3.1_02">
    <PARAM NAME="scriptabl e" VALUE="true">
    <PARAM NAME="mayscript " VALUE="true">
    <PARAM NAME="codebase" VALUE="/mydir/mycodebase">
    <PARAM NAME="cache_opt ion" VALUE="Plugin">
    <PARAM NAME="cache_arc hive" VALUE="MyArchiv e.jar">
    </object>

    3) I have tried to attach using both shared memory attach and socket
    attach (dt_shmem and dt_socket).

Working...