This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem running kawa


I don't think "\kawa\kawa-1.11.jar" is a valid class path on Windows.
If you want to specify the class path via the environment, this should
work:

set CLASSPATH=C:\kawa\kawa-1.11\kawa-1.11.jar
java kawa.repl

You could also specify the class path as a command line argument:

java -cp C:\kawa\kawa-1.11\kawa-1.11.jar kawa.repl

Or invoke the jar directly, as Per suggested:

java -jar C:\kawa\kawa-1.11\kawa-1.11.jar

On Fri, Apr 29, 2011 at 12:49 PM, Steve Graham <jsgrahamus@yahoo.com> wrote:
> I downloaded the latest version of kawa and compiled it with ant.? No errors.
>
> When I try to run it, it won't start.? Details follow:
>
> C:\kawa\kawa-1.11>set | grep "classpath"
> classpath=\kawa\kawa-1.11.jar
>
> C:\kawa\kawa-1.11>dir *.jar
> Volume in drive C is TI105757W0A
> Volume Serial Number is 48C4-C0F7
>
> Directory of C:\kawa\kawa-1.11
>
> 04/29/2011? 12:39 PM? ? ? ???2,438,947 kawa-1.11.jar
> ? ? ? ? ? ? ???1 File(s)? ? ? 2,438,947 bytes
> ? ? ? ? ? ? ???0 Dir(s)? 45,980,147,712 bytes free
>
> C:\kawa\kawa-1.11>java kawa.repl
> Exception in thread "main" java.lang.NoClassDefFoundError: kawa/repl
> Caused by: java.lang.ClassNotFoundException: kawa.repl
> ? ? ? ? at java.net.URLClassLoader$1.run(Unknown Source)
> ? ? ? ? at java.security.AccessController.doPrivileged(Native Method)
> ? ? ? ? at java.net.URLClassLoader.findClass(Unknown Source)
> ? ? ? ? at java.lang.ClassLoader.loadClass(Unknown Source)
> ? ? ? ? at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> ? ? ? ? at java.lang.ClassLoader.loadClass(Unknown Source)
> Could not find the main class: kawa.repl.? Program will exit.
>
> C:\kawa\kawa-1.11>
>
> I would appreciate any help.
>
> Thanks, Steve
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]