Re: JESS: Call Jess from C++ via JNI

2011-10-03 Thread Hunter McMillen
Well I am trying to create an agent to compete in the Starcraft AI competition for next year, the API that the agents all use is called BWAPI: http://code.google.com/p/bwapi/, but this is also a standard library that some of the agents use that would be really useful for for my agent called BWSAL:

RE: JESS: Call Jess from C++ via JNI

2011-10-03 Thread Friedman-Hill, Ernest
-us...@sandia.gov [mailto:owner-jess-us...@sandia.gov] On Behalf Of Hunter McMillen Sent: Saturday, October 01, 2011 12:52 PM To: jess-users Subject: Re: JESS: Call Jess from C++ via JNI Well I am trying to create an agent to compete in the Starcraft AI competition for next year, the API

Re: JESS: Call Jess from C++ via JNI

2011-09-30 Thread Socrates Frangis
What framework are you using? Curious to see how it is invoking JNI. using this I think I can only interact with Jess in my Java program then pass data from my Java code to C++ -Unless your framework has an API supporting JESS specifically, i doubt that is the case. It should be providing a

Re: JESS: Call Jess from C++ via JNI

2011-09-28 Thread Hunter McMillen
Thanks a lot! That was exactly what was going wrong. Hunter On Tue, Sep 27, 2011 at 1:31 PM, Friedman-Hill, Ernest ejfr...@sandia.govwrote: ** The problem is here. The Java classpath doesn't list directories in which jar files can be found, but rather, the jar files themselves. The argument

Re: JESS: Call Jess from C++ via JNI

2011-09-28 Thread Dusan Sormaz
Thanks Ernest! I was on the phone call, so you overran me. :-) Dusan Sormaz On 9/27/2011 1:31 PM, Friedman-Hill, Ernest wrote: The problem is here. The Java classpath doesn't list directories in which jar files can be found, but rather, the jar files themselves. The argument should be, e.g.,

Re: JESS: Call Jess from C++ via JNI

2011-09-28 Thread Hunter McMillen
Sorry to pester you with more questions. The way I am currently doing things in invoking a JVM from C++ to call Java code that calls/interacts with Jess code, but it turns out that someone has actually created a java native interface for the api/framework I am using to make my agent, using this I

Re: JESS: Call Jess from C++ via JNI

2011-09-27 Thread Hunter McMillen
Well the framework and API I am using are very large, so much so that it would be unreasonable to rewrite them in Java. Sorry for the somewhat unspecific question? Really I wanted to know why the class loader couldn't find the jess.Rete class, when I have jess.jar on my classpath, and have it in

RE: JESS: Call Jess from C++ via JNI

2011-09-27 Thread Friedman-Hill, Ernest
The problem is here. The Java classpath doesn't list directories in which jar files can be found, but rather, the jar files themselves. The argument should be, e.g., -Djava.class.path=./jess.jar. options[0].optionString = (char*)-Djava.class.path=.; //the current directory is where