?
Solved

how to use the jdk debugger

Posted on 1997-07-20
2
Medium Priority
?
444 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
rembo earned 80 total points
ID: 1223452

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

-Tony



0
 

Author Comment

by:jfbe
ID: 1223453
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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 how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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