aspose file tools*
The moose likes Beginning Java and the fly likes when i try run: weka.jar i get these error: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "when i try run: weka.jar i get these error: "Error: Could not find  Java 2 Runtime "" Watch "when i try run: weka.jar i get these error: "Error: Could not find  Java 2 Runtime "" New topic
Author

when i try run: weka.jar i get these error: "Error: Could not find Java 2 Runtime "

Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 94
i installed weka (artificial intelligence) the path of weka.jar are:
"c:\Program Files\Weka-3-4\weka.jar"

my line for run the app are:

C:\WINDOWS\system32\javaw.exe -Xmx128m -classpath "%CLASSPATH%;weka.jar" weka.gui.GUIChooser

here i get the error,
"Error: Could not find Java 2 Runtime "

i try adding the path: c:\Program Files\Weka-3-4\ to my path variable but continue the error...

any advice?

thanks
Cyrus Serrano
Ranch Hand

Joined: Sep 29, 2003
Posts: 137
do you have java installed on your machine..

if yes, try to add the path where your java is installed on the environment variable.

hope this helps.
Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 94
C:\>java -version
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

C:\>

thanks

PD: i posted 2 times the question, is posible move or erase 1?
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
You need to put the bin directory of the JRE in your PATH.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Please don't post the same question more than once. See here for an explanation of why I just deleted the other copies of this thread.


[Jess in Action][AskingGoodQuestions]
Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 94
ernest no problem i understand, by error i picked 2 times in post question, and in the other i pick the button new post, not new reply, much thanks...
Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 94
keith, cyrus.... how know where are the bin directory?

i have various versions...... of java......

Path variable(USER):
C:\SunJava\AppServer\bin;C:\Sun\AppServer\bin;C:\Sun\AppServer\jdk\lib;c:\;C:\Utilerias\Java\ant\bin;C:\j2sdk1.4.2_10\bin\;C:\omwb\drivers

Path variable(SYSTEM):
C:\oracle\product\10.1.0\Db_10\bin;C:\oracle\product\10.1.0\Db_10\jre\1.4.2\bin\client;C:\oracle\product\10.1.0\Db_10\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\oracle\product\10.1.0\Db_2\jre\1.4.2\bin\client;C:\Program Files\Borland\Delphi7\Bin;C:\Program Files\Borland\Delphi7\Projects\Bpl\;c:\SunJava\AppServer\jdk\bin\;c:\sun\AppServer\jdk\jre\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\ESPANOL;C:\Program Files\Sun ONE ASP\chilibean;C:\Program Files\Common Files\Autodesk Shared\;C:\omwb\drivers;C:\oracle\product\10.1.0\Db_10\BIN


i do: (not know what path need add to path variable.

dir java.exe /s >java.txt



Volume in drive C has no label.
Volume Serial Number is 13A8-A897

Directory of C:\Archivos de programa\Java\jre1.5.0_06\bin

09/06/2006 11:54 a.m. 53,248 java.exe
1 File(s) 53,248 bytes

Directory of C:\dem_06\anuales\jre\bin

29/05/2006 12:37 p.m. 49,152 java.exe
1 File(s) 49,152 bytes

Directory of C:\dem_06\Xanuales\jre\bin

29/05/2006 12:39 p.m. 49,152 java.exe
1 File(s) 49,152 bytes

Directory of C:\dem_06\XXanuales\jre\bin

29/05/2006 12:40 p.m. 49,152 java.exe
1 File(s) 49,152 bytes

Directory of C:\dem_06 al 02 Marzo\anuales\jre\bin

29/05/2006 12:40 p.m. 49,152 java.exe
1 File(s) 49,152 bytes

Directory of C:\Documents and Settings\Miguel Enriquez\My Documents\Maestria\Bd\sqldeveloper-1557\sqldeveloper\jdk\jre\bin

03/05/2006 05:13 p.m. 49,248 java.exe
1 File(s) 49,248 bytes

Directory of C:\j2sdk1.4.2_10\bin

29/05/2006 01:12 p.m. 45,056 java.exe
1 File(s) 45,056 bytes

Directory of C:\j2sdk1.4.2_10\jre\bin

29/05/2006 01:12 p.m. 45,056 java.exe
1 File(s) 45,056 bytes

Directory of C:\omwb\jre\bin

30/06/2005 02:48 p.m. 24,681 java.exe
1 File(s) 24,681 bytes

Directory of C:\oracle\product\10.1.0\Db_10\jdk\bin

25/10/2006 08:30 p.m. 24,673 java.exe
1 File(s) 24,673 bytes

Directory of C:\oracle\product\10.1.0\Db_10\jdk\jre\bin

25/10/2006 08:30 p.m. 24,673 java.exe
1 File(s) 24,673 bytes

Directory of C:\oracle\product\10.1.0\Db_10\jre\1.4.2\bin

25/10/2006 08:30 p.m. 24,681 java.exe
1 File(s) 24,681 bytes

Directory of C:\Program Files\Borland\Java\Sun1.5.0_03\bin

29/05/2006 02:19 p.m. 49,152 java.exe
1 File(s) 49,152 bytes

Directory of C:\Program Files\Oracle\jre\1.3.1\bin

20/08/2002 03:45 p.m. 20,547 java.exe
1 File(s) 20,547 bytes

Directory of C:\Program Files\Sage Software\Peachtree\PeachJava\JRE\bin

03/06/2004 09:09 p.m. 45,161 java.exe
1 File(s) 45,161 bytes

Directory of C:\Program Files\Sun\Creator2ea2\java\bin

30/05/2006 10:31 a.m. 49,152 java.exe
1 File(s) 49,152 bytes

Directory of C:\Program Files\Sun\Creator2ea2\java\jre\bin

30/05/2006 10:32 a.m. 49,152 java.exe
1 File(s) 49,152 bytes

Directory of C:\Program Files\Sun\Creator2ea2\_uninst\_jvm\bin

30/05/2006 10:41 a.m. 24,576 java.exe
1 File(s) 24,576 bytes

Directory of C:\SunJava\AppServer\jdk\bin

30/05/2006 11:01 a.m. 49,152 java.exe
1 File(s) 49,152 bytes

Directory of C:\SunJava\AppServer\jdk\jre\bin

30/05/2006 11:01 a.m. 49,152 java.exe
1 File(s) 49,152 bytes

Directory of C:\Temp\ftp\dem_06\anuales\jre\bin

30/05/2006 11:47 a.m. 49,152 java.exe
1 File(s) 49,152 bytes

Directory of C:\WINDOWS

30/05/2006 12:48 p.m. 24,576 java.exe
1 File(s) 24,576 bytes

Directory of C:\WINDOWS\system32

30/05/2006 12:55 p.m. 49,152 java.exe
1 File(s) 49,152 bytes

Total Files Listed:
23 File(s) 946,848 bytes
0 Dir(s) 2,069,442,560 bytes free
Cyrus Serrano
Ranch Hand

Joined: Sep 29, 2003
Posts: 137
try the first one...

Directory of C:\Archivos de programa\Java\jre1.5.0_06\bin


Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 94
not worked...

same error..

(i found 2 paths in path variable: C:\Archivos de programa\Java\jre1.5.0_06\bin)

C:\>path
PATH=C:\oracle\product\10.1.0\Db_10\bin;C:\oracle\product\10.1.0\Db_10\jre\1.4.2
\bin\client;C:\oracle\product\10.1.0\Db_10\jre\1.4.2\bin;C:\Program Files\Oracle
\jre\1.1.8\bin;C:\oracle\product\10.1.0\Db_2\jre\1.4.2\bin\client;C:\Program Fil
es\Borland\Delphi7\Bin;C:\Program Files\Borland\Delphi7\Projects\Bpl\;c:\SunJava
\AppServer\jdk\bin\;c:\sun\AppServer\jdk\jre\bin;C:\WINDOWS\system32;C:\WINDOWS;
C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ESPANOL
;C:\Program Files\Sun ONE ASP\chilibean;C:\Program Files\Common Files\Autodesk S
hared\;C:\omwb\drivers;C:\oracle\product\10.1.0\Db_10\BIN;"C:\Archivos de progra
ma\Java\jre1.5.0_06\bin";C:\SunJava\AppServer\bin;C:\Sun\AppServer\bin;C:\Sun\Ap
pServer\jdk\lib;c:\;C:\Utilerias\Java\ant\bin;C:\j2sdk1.4.2_10\bin\;C:\omwb\driv
ers;"C:\Archivos de programa\Java\jre1.5.0_06\bin";C:\PROGRA~1\CompacW\Bin;

C:\>


mmm need test 1 by 1 the path where are located java.exe? thanks
Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 94
also i defin JAVA_HOME pointing to c:\j2sdk1.4.2_10
(i followed: http://confluence.atlassian.com/display/DOC/Set+JAVA_HOME+variable+in+Windows )

but continue the error....
any advice?
Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 94
i installed Borland jbuilder Foundation and run a program... no problem for run the program, then i retest trying run the weka.jar but same error also i try:
right click on weka.jar open with.... and select the java.exe or javaw.exe in the apropiate directory(jbuilder)....but ocntinue the problem, any advice???


thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: when i try run: weka.jar i get these error: "Error: Could not find Java 2 Runtime "