Re: Main class not found.

Nathan Fiedler <[email protected]> 29 May 2003 09:44:16 -0700
Newsgroups gmane.comp.java.jswat.user
Organization ACCESS Systems America
Message-ID <[email protected]>
On Thu, 2003-05-29 at 08:32, Matthew Scarrow wrote:
> I get an error main class not found when I'm trying to launch the jswat
> program. Here's the command I'm using to launch the program.

The com.bluemarsh.jswat.Main class cannot be found (by the JVM)? Or is
it the main class of your debuggee that cannot be found (by JSwat)?

> "C:\Program
> Files\Java\j2sdk1.4.1_01\bin\javaw.exe" -Djava.ext.dirs=%JAVA_HOME%\lib;%JAV
> A_HOME%\jre\lib -jar %JSWAT_HOME%\jswat.jar
> 
> %JAVA_HOME% = c:\program files\java\j2sdk1.4.1_01
> %JSWAT_HOME% = c:\javadebuger\jswat-2.15

> Anyone got an idea as to what's going on. Thanks.

Yes, there's a space in the argument to -Djava.ext.dirs. I recommend
using a setting like this: JAVA_HOME=c:\progra~1\java\j2sdk1.4.1_01
(note that the short name may be different on your system).

I also recommend using the latest version of JSwat.

n

P.S. I generally avoid putting command-line driven programs in "Program
Files" because of the issue with the space in the name.