Results 1 to 2 of 2
  1. #1
    szgaljic is offline Member
    Join Date
    Sep 2010
    Rep Power

    Default Debug Multiple Java Applet Instances

    I have one JRE on my computer that I use to run applets via my web browser. I've set the runtime property so that I can remote debug the Applet as such:

    -Djava.compiler=NONE -Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y ,suspend=n

    This works fine when I want to debug one Applet....but what if I were to launch two or three different Applets concurrently. I want the ability to attach a remote debugger to each separate Applet instance each with a different remote debugging address.

    Is this possible?
    Last edited by szgaljic; 09-20-2010 at 11:28 PM.

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Rep Power


    There is only one Java VM per browser process. I guess if you were able to run internet explorer, firefox, chrome, and that other popular one what ever it's called, escapes me now.. well different browsers at the same time, one applet per browser. assuming each browser has the options to specify the JRE settings to use a different port number.

    Another idea, might be to create a "debug aggergator applet, which the other applets communicate with and send their debug infomation to, and then your remote debuuger connects to the java vm and interacts with the stuff available in this single debugger applet. See also: Applet : Java Glossary

Similar Threads

  1. uploading applet with multiple classes help
    By alacn in forum New To Java
    Replies: 3
    Last Post: 08-02-2010, 07:37 AM
  2. Replies: 16
    Last Post: 05-22-2010, 04:51 AM
  3. Problem calling multiple instances of a class
    By virex in forum New To Java
    Replies: 1
    Last Post: 03-02-2010, 04:03 PM
  4. Debug challenge: how do you debug a Java program?
    By CJSLMAN in forum New To Java
    Replies: 60
    Last Post: 07-04-2009, 11:28 AM
  5. Multiple class applet
    By lordbob75 in forum Java Applets
    Replies: 5
    Last Post: 01-08-2009, 02:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts