Re: Can someone explain the setting of threads

Nathan Fiedler <[email protected]> 24 Feb 2004 10:10:09 -0800
Newsgroups gmane.comp.java.jswat.user
Organization Blue Marsh Softworks
Message-ID <1077646208.6695.7.camel@nuts>
Generally when someone is having trouble with the basics I need to see
more detailed information. You've told me you have a classpath and
sourcepath, but I don't see their actual values. You say the class has a
main method and you set a breakpoint, but I don't see how you set the
breakpoint (e.g. "stop something:line"?). It sounds like your attempt to
set the breakpoint failed.

It may help if you show the names of the .java and .class files and
their relative locations on the file system. And seeing the code in
which you're trying to set the breakpoint would help, too.

The other threads are simply those started automatically by the JVM.
Since this is implementation dependent it's a mere guess to say that:

Finalizer: calls finalize() on unreferenced objects and then garbage
collects them.

Reference Handler: maybe it deals with tracking Soft/WeakReference
objects, I don't know.

main: this is the thread on which your main() method is invoked.

Other threads often have to do with AWT.

n



On Tue, 2004-02-24 at 09:19, Joyce Stack wrote:
> Hello,
> 
> I have a simple class with a main. I start my JSwat. I have a break 
> point on the line where my new object is created. I click on the 'main' 
> to set the thread.
> 
> What then. ? Ive tried Run To, Step Over, Step In and it just kills the 
> VM. Its complaiing about my source file not being found.
> 
> Here is my set up.....
> 
> I have a folder called 'framework' which has the folders 
> 'com.myclasses.etc'. So this is set as the source path. My classpath has 
> the usual jars that I need. The class name is com.abc.def.MyClass.
> 
> I get it to work sometimes. Othertimes it dont. What am I doing wrong ?