Issues with Weka GUI

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues with Weka GUI

Paul m
I've just tried to install weka3-4-4 on a new winXP pc. jdk1.5.0_04 /
jre1.5.0_04 installed and pc has been rebooted since installation.

The GUI chooser displays after selecting 'RunWeka.bat' but then if I
select the 'Explorer' the subsequent screen opens but there are no
graphical icons and it certainly doesn't look the same as it did on my
other PC.

When I select open file to load a file there are numerous errors
reported about inability to find java.awt etc...

I'm pretty sure I've set my classpath correctly and java_home (if it
needs to be set) but I'm stumped as what is required now.

Any assistance greatly appreciated...  Paul

_______________________________________________
Wekalist mailing list
[hidden email]
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
Reply | Threaded
Open this post in threaded view
|

Re: Issues with Weka GUI

Peter Reutemann
> I've just tried to install weka3-4-4 on a new winXP pc. jdk1.5.0_04 /
> jre1.5.0_04 installed and pc has been rebooted since installation.
>
> The GUI chooser displays after selecting 'RunWeka.bat' but then if I
> select the 'Explorer' the subsequent screen opens but there are no
> graphical icons and it certainly doesn't look the same as it did on my
> other PC.
>
> When I select open file to load a file there are numerous errors
> reported about inability to find java.awt etc...

Hmmm... I just installed 1.5.0_04 on my XP machine and it works fine...

Is the 1.5.0_04 the only java version you installed? You might wanna
check what the default java version on your system is. Open a DOS Box
(Start -> Run -> cmd.exe <Enter>) and type "java -version" followed by
<Enter>. You should get something like this:

   java version "1.5.0_04"
   Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
   Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode)

If this displays a different version, you might need to check (and
modify) your registry (Start -> Run -> regedit.exe <Enter>). Go to the
following key:

   HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment

There, check what version is listed under the value "CurrentVersion". It
should be "1.5". Then go the subkey "1.5" and check the "JavaHome" value
(should be something like "C:\Program Files\Java\jre1.5.0_04") and the
"RuntimeLib" value (should be something like "C:\Program
Files\Java\jre1.5.0_04\bin\client\jvm.dll").

If all this is correct (but mysteriously still doesn't work), try
hard-coding the Java.exe location in your "RunWeka.bat". Instead of
"java" use the full path for your JDK installation, e.g., in my case the
JDK is installed here:
   D:\programs\jdk\jdk1.5.0_04

which results in a java call like this:
   D:\programs\jdk\jdk1.5.0_04\bin\java.exe

Then, try running it again after saving the batch file...

HTH

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/     +64 (7) 838-4466 Ext. 5174

_______________________________________________
Wekalist mailing list
[hidden email]
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
Reply | Threaded
Open this post in threaded view
|

Re: Issues with Weka GUI

Paul m
Thanks to the suggestions however still no luck.

Response from java -version was as expected. Hardcoding the java path
into the .bat file didn't improve things. I've the latest JVM - was
the suggestion to try an older version?

In the past I've installed weka onto winXP box's with no hassles what so ever...

Any other suggestions ...

/paul

On 7/1/05, Peter Reutemann <[hidden email]> wrote:

> > I've just tried to install weka3-4-4 on a new winXP pc. jdk1.5.0_04 /
> > jre1.5.0_04 installed and pc has been rebooted since installation.
> >
> > The GUI chooser displays after selecting 'RunWeka.bat' but then if I
> > select the 'Explorer' the subsequent screen opens but there are no
> > graphical icons and it certainly doesn't look the same as it did on my
> > other PC.
> >
> > When I select open file to load a file there are numerous errors
> > reported about inability to find java.awt etc...
>
> Hmmm... I just installed 1.5.0_04 on my XP machine and it works fine...
>
> Is the 1.5.0_04 the only java version you installed? You might wanna
> check what the default java version on your system is. Open a DOS Box
> (Start -> Run -> cmd.exe <Enter>) and type "java -version" followed by
> <Enter>. You should get something like this:
>
>    java version "1.5.0_04"
>    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
>    Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode)
>
> If this displays a different version, you might need to check (and
> modify) your registry (Start -> Run -> regedit.exe <Enter>). Go to the
> following key:
>
>    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
>
> There, check what version is listed under the value "CurrentVersion". It
> should be "1.5". Then go the subkey "1.5" and check the "JavaHome" value
> (should be something like "C:\Program Files\Java\jre1.5.0_04") and the
> "RuntimeLib" value (should be something like "C:\Program
> Files\Java\jre1.5.0_04\bin\client\jvm.dll").
>
> If all this is correct (but mysteriously still doesn't work), try
> hard-coding the Java.exe location in your "RunWeka.bat". Instead of
> "java" use the full path for your JDK installation, e.g., in my case the
> JDK is installed here:
>    D:\programs\jdk\jdk1.5.0_04
>
> which results in a java call like this:
>    D:\programs\jdk\jdk1.5.0_04\bin\java.exe
>
> Then, try running it again after saving the batch file...
>
> HTH
>
> Cheers, Peter
> --
> Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
> http://www.cs.waikato.ac.nz/~fracpete/     +64 (7) 838-4466 Ext. 5174
>

_______________________________________________
Wekalist mailing list
[hidden email]
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
Reply | Threaded
Open this post in threaded view
|

Re: Issues with Weka GUI

Peter Reutemann
> Thanks to the suggestions however still no luck.
>
> Response from java -version was as expected. Hardcoding the java path
> into the .bat file didn't improve things. I've the latest JVM - was
> the suggestion to try an older version?

Hmm... The only thing I can think of, would be to check your JAVA_HOME
environment variable. Does that point to your JDK dir, just above the
"bin" directory?

Otherwise try to compile the attached class and run it with no
parameters. It outputs some Java system properties. Check out the
following properties, whether they're correct (i.e., pointing to the
correct directories):
   java.library.path
   java.home
   java.ext.dirs
   sun.boot.class.path

Sort of running out of ideas... Did you try re-installing the JDK?

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/     +64 (7) 838-4466 Ext. 5174

import java.util.Properties;
import java.util.Enumeration;

public class Info {
  public static void main(String[] args) {
    Properties          props;
    Enumeration         enm;
    Object              name;

    props = System.getProperties();
    enm   = props.propertyNames();
    while (enm.hasMoreElements()) {
      name = enm.nextElement();
      System.out.println(name + ": " + props.get(name));
    }

  }
}

_______________________________________________
Wekalist mailing list
[hidden email]
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist