Re: Errors when launching JSwat

Nathan Fiedler <[email protected]> Thu, 08 Dec 2005 18:21:49 -0800
Newsgroups gmane.comp.java.jswat.user
Organization Blue Marsh Softworks
Message-ID <[email protected]>
 From your first email to me, in which you stated that the installer 
warned you that the JDK you selected was missing the JDI classes, I can 
infer that these additional problems are related to that warning. It is 
worth heeding the warning of the installer and consider what it is 
trying to tell you. Perhaps the messaging needs more explanation that it 
currently provides.

Regardless, the solution is simple. Open the etc/jswat.conf file in 
Notepad and change the 'netbeans_jdkhome' value to point to your JDK 
installation (e.g. "C:\Program Files\Java\jdk1.5.0_06"). Right now it is 
probably pointing to the JRE, which is a mere subset of the JDK and is 
insufficient for running JSwat. That's what the warning is about, as 
well as the explanation on the downloads page and in the README file 
that accompanies the software.

n


Flatoff Allan wrote:
> Hi,
> 
> I've just downloaded and installed Jswat - when I launch it with 
> jswat.exe I encounter several errors.
> 
> The first one is:
> 
> org.xml.sax.SAXParseException: Premature end of file.
>         at 
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> Source)
>         at 
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown 
> Source)
>         at 
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown 
> Source)
>         at 
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown 
> Source)
>         at 
> com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown 
> Source)
>         at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
> Source)
>         at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
> Source)
>         at 
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
>         at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 
> Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at java.beans.XMLDecoder.readObject(Unknown Source)
>         at 
> com.bluemarsh.jswat.core.session.DefaultSessionManager.loadSessions(DefaultSessionManager.java:149) 
> 
>         at 
> com.bluemarsh.jswat.core.session.SessionProvider.getSessionManager(SessionProvider.java:73) 
> 
>         at 
> com.bluemarsh.jswat.ui.SessionWatcher.<init>(SessionWatcher.java:70)
>         at 
> com.bluemarsh.jswat.ui.InterfaceInstall.restored(InterfaceInstall.java:49)
>         at 
> org.netbeans.core.modules.NbInstaller.loadCode(NbInstaller.java:322)
>         at org.netbeans.core.modules.NbInstaller.load(NbInstaller.java:240)
>         at 
> org.netbeans.core.modules.ModuleManager.enable(ModuleManager.java:869)
>         at 
> org.netbeans.core.modules.ModuleList.installNew(ModuleList.java:382)
>         at 
> org.netbeans.core.modules.ModuleList.trigger(ModuleList.java:316)
>         at 
> org.netbeans.core.modules.ModuleSystem.restore(ModuleSystem.java:253)
>         at org.netbeans.core.NonGui.run(NonGui.java:355)
>         at org.netbeans.core.Main.run(Main.java:185)
>         at 
> org.netbeans.core.NbTopManager.getNbTopManager(NbTopManager.java:241)
>         at org.netbeans.core.NbTopManager.get(NbTopManager.java:190)
>         at org.netbeans.core.Main.start(Main.java:311)
>         at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
> [catch] at java.lang.Thread.run(Unknown Source)
> 
> 
> There are a series of error messages after this.
> 
> It seems like something might be wrong with the config or something.
> 
> Any idea why this doesn't work?
> 
> Thanks!