Re: a postscript --> RE: javaHome is invalid: c:\java\j2sk1.4.0_01

Nathan Fiedler <[email protected]>
Newsgroups gmane.comp.java.jswat.user
Organization ACCESS Systems America
Message-ID <[email protected]>
I don't know why it is happening, but the simple solution is to clear
the Java Home text field in the Start VM dialog box and let JSwat figure
it out. The code JSwat is using is simple:

        if ((javaHome != null) && javaHome.length() > 0) {
            File home = new File(javaHome);
            if (!home.exists()) {
                throw new IllegalArgumentException(
                    "javaHome is invalid: " + javaHome);
            }
            ((Connector.Argument) args.get("home")).setValue(javaHome);
        }

So, one would surmise that your directory does not exist. Like I said,
I have no idea why that is happening.

n


On Thu, 2002-11-21 at 11:18, Roy Epperson wrote:
> Jswat, Ant and Jedit all are starting up and running just fine.
> 
> Jswat gives me this error when trying to start a debug session.
> 
> Thanks,
> 
> Roy
>
> 
> > -----Original Message-----
> > From: Roy Epperson [mailto:[email protected]]
> > Sent: Thursday, November 21, 2002 11:16 AM
> > To: 'Nathan Fiedler'; '[email protected]'
> > Subject: javaHome is invalid: c:\java\j2sk1.4.0_01
> > 
> > Why am I getting the subject error message?  What do I need to
> change....
> > 
> > This occurs after I have started jswat (command file below)and try to
> > start the debugger.
> > 
> > Things I have done:
> > 1. re-installed the JDK in the subject directory, same as where it was
> > before I re-installed
> > 2. installed jswat 2.10
> > 
> > 
> > I was using 2.8 before I installed 2.10 and re-installed the JDK
> > 
> > I am invoking jswat from a .bat file containing: java
> > com.bluemarsh.jswat.Main
> > 
> > Thanks,
> > 
> > Roy
> > 
> 
> 
> 
> _______________________________________________
> jswat-user mailing list
> [email protected]
> http://www.bluemarsh.com/mailman/listinfo/jswat-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.