Re: problems with JGAP under Linux



Mika Viljanen wrote:
Esmail <ebonak_delme@xxxxxxxxxxx> wrote:
I unzipped the files into a directory and when I issue this command I get the following error:

europa:543 ~/JGAP> java -classpath ".;jgap-examples.jar;jgap.jar" examples.MinimizingMakeChange 89
Exception in thread "main" java.lang.NoClassDefFoundError: examples/MinimizingMakeChange
<..>

I'm just guessing here but this might be due to the format of the given classpath parameter. At least under Fedora (using Sun's Java SDK), I'd write the command as:

java -cp .:jgap-examples.jar:jgap.jar examples.MinimizingMakeChange 89

I think Java is now interpreting your classpath .jar list as a single file.


thanks for the reply! .. the problem was with using ";" as a path separator.
Linux likes ":" .. so once I made that change, it worked. Apparently ";" is
fine under Windows.

The example command shown for Linux on
http://jgap.sourceforge.net/doc/install.html shows ";" .. I'll try to drop the
author an e-mail letting him now about using ":" instead.

Thanks again!

.