how to use jdb sample of TTY?
i am learning jdb (very new), when i compile and execute example of TTY, error says "handle is not available".
i use windows. i think i miss something because TTy code tries to load a file in user directory, but i don't have the file - if this is reason, what is content of the file?
thanks for all.
[327 byte] By [
sameida] at [2007-9-29 13:36:16]

I just compiled and ran the example source for jdb on my PC.
Here is how I did it:
% cd C:/j2sdk1.4.2/demo/jpda
% jar -xf examples.jar
% javac -classpath "$JAVA_HOME/lib/tools.jar;." com/sun/tools/example/debug/tty/TTY.java
% javac -g HelloWorld.java
% java -classpath "$JAVA_HOME/lib/tools.jar;." com.sun.tools.example.debug.tty.TTY HelloWorld
Initializing jdb ...
> stop in HelloWorld.main
Deferring breakpoint HelloWorld.main.
It will be set after the class is loaded.
> run
run HelloWorld
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started: Set deferred breakpoint HelloWorld.main
Breakpoint hit: "thread=main", HelloWorld.main(), line=3 bci=0
3System.out.println("Hello, world!");
main[1]
If this does not answer your question, please copy/paste the
commands you are using and the full text of the error message(s).
Then we will try to help you out.