Bonjour
J'aimerais tester JSR94 avec Jess. Je suis le tuto ci dessous :
Et j'ai l'erreur suivante, je ne vois vraiment pas à quoi cela correspond.To test the JSR 94 reference implementation, do the following:
- Download the JSR 94 reference implementation and install it by unzipping the archive in a directory of your choice.
- Download Jess. Once you unzip the archive, copy the file jess.jar from the Jess installation directory to the lib directory of your JSR 94 reference implementation installation.
- Change the directory to lib under your JSR 94 reference implementation installation
- Run the sample example using the following command:
java -jar jsr94-example.jar
Alors que je devrais avoir :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 C:\jsr94\lib>java -jar jsr94-example.jar Administration API Acquired RuleAdministrator: org.jcp.jsr94.jess.RuleAdministratorImpl@239137 Acquired InputStream to RI tck_res_1.xml: java.util.zip.ZipFile$1@8786b Error: java/lang/CharSequence C:\jsr94\lib>
Si quelqu'un pourrait m'éckairer. Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 C:\jsr94-1.0\lib>java -jar jsr94-example.jar Administration API Acquired RuleAdministrator: org.jcp.jsr94.jess.RuleAdministratorImpl@9304b1 Acquired InputStream to RI tck_res_1.xml: sun.net.www.protocol.jar.JarURLConnect ion$JarURLInputStream@c17164 Loaded RuleExecutionSet: org.jcp.jsr94.jess.RuleExecutionSetImpl@cd2c3c Bound RuleExecutionSet to URI: RuleExecutionSet1 Runtime API Acquired RuleRuntime: org.jcp.jsr94.jess.RuleRuntimeImpl@1d99a4d Got Stateless Rule Session: org.jcp.jsr94.jess.StatelessRuleSessionImpl@7a84e4 Calling rule session with the following data Customer credit limit input: 5000 Invoice 1 amount: 2000 status: unpaid Called executeRules on Stateless Rule Session: org.jcp.jsr94.jess.StatelessRuleS essionImpl@7a84e4 Result of calling executeRules: 2 results. Customer credit limit result: 3000 Invoice 1 amount: 2000 status: paid Released Stateless Rule Session. Got Stateful Rule Session: org.jcp.jsr94.jess.StatefulRuleSessionImpl@1e51060 Calling rule session with the following data Customer credit limit input: 3000 Invoice 1 amount: 2000 status: paid Invoice 2 amount: 1750 status: unpaid Called addObject on Stateful Rule Session: org.jcp.jsr94.jess.StatefulRuleSessio nImpl@1e51060 Called executeRules Result of calling getObjects: 3 results. Customer credit limit result: 1250 Invoice 1 amount: 2000 status: paid Invoice 2 amount: 1750 status: paid Released Stateful Rule Session.
Partager