• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

problem in calling the class from jess (in CLASSPATH)

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No one understand this problem ...
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Do not meddle in the affairs of dragons - for you are crunchy and good with ketchup. Crunchy tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic