0

java.lang.ClassNotFoundException: bsh.NameSpace

asked 2014-07-24 01:54:33 +0800

IStar gravatar image IStar
1

updated 2014-07-24 02:07:11 +0800

Hello friends,

When I use the tag "zscript" in a simple zul file in my ZKSheet project, the tomcat server show this Exception "java.lang.ClassNotFoundException: bsh.NameSpace".

Where is the class "bsh.NameSpace" ?

I have found the package "org.zkoss.zk.scripting.bsh".But it doesn't include the bsh.NameSpace class .

Can anyone help me ?

Thank you very much !

delete flag offensive retag edit

Comments

2 Answers

Sort by » oldest newest most voted
0

answered 2014-07-24 04:53:41 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

updated 2014-07-24 04:56:32 +0800

If you use maven :

add this to your pom :

<dependency>
     <groupId>bsh</groupId>
     <artifactId>bsh</artifactId>
     <version>1.3.0</version>
</dependency>

If you don't use maven :

Download jar here and put it as dependency.

For your question : Where is the class "bsh.NameSpace" ?
You don't have it, that's why the ClassNotFoundException is thrown.

Greetz chill.

link publish delete flag offensive edit
0

answered 2014-07-25 03:53:51 +0800

vincentjian gravatar image vincentjian
2245 6

updated 2014-07-25 03:57:31 +0800

ZK use bsh version 2.0b4, better to use the same version. Download the jar from new maven group id.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2014-07-24 01:54:33 +0800

Seen: 14 times

Last updated: Jul 25 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More