Re: Setting everything up

"Tobbe Lundberg" <[email protected]> Sat, 6 May 2006 08:04:12 +0200
Newsgroups gmane.comp.java.jswat.user
Message-ID <[email protected]>
Hi again

So JSwat doesn't use the environment variable CLASSPATH?
I added what I have in CLASSPATH to the Classpath option in JSwat, and
I also added the directory where I have to sourcefiles and .class
files to the program I want to debug. But I still get ClassNotFound.
What more does it need?

Regards
//Tobbe

On 5/6/06, [email protected] <[email protected]> wrote:
> In that case, you should start with the Java Tutorial to learn about
> writing Java applications. There is a brief description of the classpath
> there, but it is thoroughly documented in the JDK documentation.
>
> http://java.sun.com/docs/books/tutorial/
> http://java.sun.com/j2se/1.5.0/docs/tooldocs/
>
> Hope that helps.
>
> n
>
>
> Tobbe Lundberg wrote:
> > Hi
> >
> > Thanks for your responce.
> > I'm reading this in the UsersGuide:
> > "You must provide the name of your application's main class, as well
> > as the classpath that is normally used to launch your application."
> >
> > I've have the main class name in the "Launch Debuggee" dialog. It's
> > called DebugTest.
> > I don't use any classpath when I launch the program, I just type javac
> > DebugTest.java to compile it and java DebugTest to run it. Does that
> > mean I don't have to add any classpath to JSwat?
> >
> > I then hit the "Launch" button and get this in the Debugger Console:
> > VM loaded for session Session 1
> > VM resumed for session Session 1
> > VM suspended for session Session 1
> > Exception java.lang.ClassNotFoundException occurred: "DebugTest"
> > VM suspended for session Session 1
> > Stopped at java.net.URLClassLoader$1.run(), line 200
> >
> > What more is needed?
> >
> > Thanks again
> > //Tobbe
> >
> > On 5/5/06, Nathan Fiedler <[email protected]> wrote:
> >> Have you read the UsersGuide.html for steps on getting started quickly=
?
> >> That should explain a lot of what you're missing. If you run into any
> >> issues, don't hesitate to ask.
> >>
> >> n
> >>
> >>
> >> Tobbe Lundberg wrote:
> >> > Hi
> >> >
> >> > I'm trying to set up JSwat to debug my local Java programs, but I'm
> >> > not having much luck...
> >> > I have read the help files but don't really understand what I have t=
o
> >> > do. I have never used any java debuggers before (I tried NetBeans as
> >> > well, but couldn't get that to work either).
> >> >
> >> > Will JSwat read the CLASSPATH environment variable when looking for
> >> .jar
> >> > files?
> >> >
> >> > I'm guessing I have to add something to the Classpath tab in the
> >> > Launch Debuggee dialog, but what?
> >> >
> >> > The Parameters tab already had a Java Runtime set, do I need to clic=
k
> >> > on the "..." button and change anything there?
> >> >
> >> > Product Version: JSwat 3.10
> >> > Operating System: Windows XP
> >> > Java: 1.5.0_04
> >> > VM: Java HotSpot(TM) Client VM 1.5.0_04-b05
> >> > Java Home: C:\Program\Java\jdk1.5.0_04\jre
> >> >
> >> > Best Regards
> >> > //Tobbe
> >>
> >
>
>
>