I think Nicolas Fortin wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi everybody, > > I have a class "Entity" which is in a package "process", i.e. in the Package > explorer (Project name)/src/process/Entity.java, and on my disk (Project > path)\src\process\Entity.java. I tried to define in JessDE a template that > refers to "Entity", i.e. (defclass Entity process.Entity). However, I got > the following warning : "No such class 'process.Entity'".
If the .clp file and the class are in the same project, it should just work. Otherwise, if they're in separate projects, all you should need to do is to add the Java project as a regular Eclipse project dependency for the Jess project -- i.e., right-click on the Jess project folder and choose "Properties...", then "Java Build Path", then the "Projects" tab, and then check the box for the project that Entity is in. Make sure that the "Entity" project is built -- JessDE can't use the .java files, only the .class files. Note that this only works if the .clp file is itself in a Java project -- but the manual does state this as a requirement (chapter 4). > I also set the > "Source dependencies" but it didn't resolve the problem. "Source dependencies" lets you tell JessDE that a .clp file depends on having another .clp file loaded first -- also see manual chapter 4. Finally: make sure you're using the very latest version of the JessDE -- class finding is one of the things that's been changing a lot. --------------------------------------------------------- Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
