Okay, it's working now.
The following zip file has everything in it except for the Drools jars - the
txt file in the lib directory tells you which ones to put in there - it was
too big to include them.
http://www.nabble.com/file/p12595148/Basic%2BDrools.zip Basic+Drools.zip
I had a few problems, maybe my notes will be of use to other newbies:
1) You can't put everything into one jar - the jars it uses need to be in an
external directory (I use the lib directory I mentioned before). There is
apparently a way to use them all in one file but I haven't done that yet, it
requires extra code in the jar.
2) The classpath uses ';' or ':' as a separator, EXCEPT in the
MANIFEST.MF
where it uses SPACES !!
3) The classpath can't point to a directory, it needs to reference each jar
file that you use.
4) I created an ANT build, I work on a Mac at home and a PC at work, this
threw up an oddity. On the Mac I used: <property name=... location=.../>
which worked fine, but on the PC it expands SOME of them (not all of them)
to include a full filepath. This means that the relative paths then don't
work. It also would put the full path on the first element of the classpath
but not the rest again the Mac didn't. Just something to watch for, it was
making the classpath junk and thus I got NOCLASSDEFFOUND on the PC but not
on the Mac. The solution is to replace location= with value=. This is
probably obvious but there it is.
I think that that's pretty much it, nothing too exciting but I couldn't find
any pointers so hopefully it might be useful.
--
View this message in context:
http://www.nabble.com/Still-can%27t-create-a-standalone-application-tf438...
Sent from the drools - user mailing list archive at
Nabble.com.