Solved

how to use the jdk debugger

Posted on 1997-07-20
2
434 Views
Last Modified: 2013-11-23
Hi,
   I'm trying to use the java jdk debugger (AppletViewer and
   jdb) and the way I understand it, I have to start from
   one of the demo class directory (GraphLayout or TicTacToe,
   or ArcTest)
   with ..\..\bin\AppletViewer -debug example1.html. My class
   path variable is set correctly, and as long I'm not using
   the -debug parameter the viewer load the applet correctly.
   On the other hand with the -debug option, there's a timeout
   and then I get:
   Internal exception:java.net Unknown exception
      at java.net.IndetAdress.getLocalHost(InetAdress.java:294)
      at sun tools.debug:RemoteDebugger <init> (RemoteDebugger
      :java164)
      at sun.tools.ttydebug:TTY<init> <TTY.java.1309>
   etc...

   Apparently they say that the AppletViewer should
   return me a password that I can use with the jdb (from
   another window session??? I'm using win 95) but it looks
   as if this debugger need to have a connection to work,
   why? I'd like to debugg offline simple applications with
   their debugger (I can't buy visual cafe) but it doesn't
   work even with applications that doesn't use remote calls
   or Inet methods.

    Another point:I've try also the recompile
   with import java.tools.debug; in jdk 1.02 from sun and
   the compiler tell me that this is not acceptable although
   my classpath points to the lib\classlib.zip directoy.
0
Comment
Question by:jfbe
2 Comments
 
LVL 4

Accepted Solution

by:
rembo earned 40 total points
Comment Utility

Unfortunately, the jdb debugger requires that you have
networking running.  It connects using sockets.

-Tony



0
 

Author Comment

by:jfbe
Comment Utility
I know it need a connection, it was in my question...but
I wanted to know if there was a way to bypass that since
I've a limited access to internet, this is why I added
'why'?. Anyway, I'll debug with traces and files.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now