File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes problem in calling the class from jess (in CLASSPATH) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "problem in calling the class from jess (in CLASSPATH)" Watch "problem in calling the class from jess (in CLASSPATH)" New topic
Author

problem in calling the class from jess (in CLASSPATH)

Tarfa man
Greenhorn

Joined: Jan 25, 2012
Posts: 5
Hi all
good day ,

I am working in expert system by jess rule engine ..

I faced this problems in jess, I can't access to my class in (Java) by jess
I spend slots of time to solve this problem. but I am failed.
Hint: jess is like command line ,so I need my system point to my class to jess

this error message from jess



normally jess deals with other class in java without problems but here is something for CLSSPATH place..


# I put my class and Jess.jar to one jar file and I write the full path of my class to CLASSPATH in my system(did not work)
#I write the full path of my class only (did not work)

Could any one please see my problem ? the problem in Java and classpath
all my class working normally in java..

My system is Win 7
Eclipse Java EE IDE
Jess 7
thank you

Tarfa man
Greenhorn

Joined: Jan 25, 2012
Posts: 5
No one understand this problem ...
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 23393

You're right to say that this is simply a classpath issue, but I have to confess that your description of what you have tried makes no sense to me. If the file DimmerSwitch.class is in the directory

c:\Documents and Settings\fred\JessCode

and jess.jar is at

c:\Documents and Settings\fred\Jess71p2\jess.jar

then a command line to launch the Jess command line so that it had access to this class would be

java -cp "c:\Documents and Settings\fred\JessCode;c:\Documents and Settings\fred\Jess71p2\jess.jar" jess.Main

In this regard, there's nothing special about Jess; this is just how you'd use any Java code together with a Java library in a jar file.

[Jess in Action][AskingGoodQuestions]
 
 
subject: problem in calling the class from jess (in CLASSPATH)
 
Threads others viewed
HTTP Status 404 error in tomcat
Getting error in sample program
Question about shadow fact and java objects
question about jess templates
Trouble with my Hello World
MyEclipse, The Clear Choice