cancel
Showing results for 
Search instead for 
Did you mean: 

javax.script.ScriptEngineFactory

livingst
Champ in-the-making
Champ in-the-making
Hello,

When I want to launch the JUnit test org.activiti.examples.taskforms.TaskFormsTest provided in the examples project, I got :


java.lang.NoClassDefFoundError: javax/script/ScriptEngineFactory
   at org.activiti.DbProcessEngineBuilder.buildProcessEngine(DbProcessEngineBuilder.java:249)
   at org.activiti.test.ProcessEngineTestCase.buildProcessEngine(ProcessEngineTestCase.java:78)
   at org.activiti.test.ProcessEngineTestCase.setUp(ProcessEngineTestCase.java:58)
   at org.activiti.examples.taskforms.TaskFormsTest.setUp(TaskFormsTest.java:31)
   at junit.framework.TestCase.runBare(TestCase.java:132)
   at junit.framework.TestResult$1.protect(TestResult.java:110)
   at junit.framework.TestResult.runProtected(TestResult.java:128)
   at junit.framework.TestResult.run(TestResult.java:113)
   at junit.framework.TestCase.run(TestCase.java:124)
   at junit.framework.TestSuite.runTest(TestSuite.java:232)
   at junit.framework.TestSuite.run(TestSuite.java:227)
   at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
   at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
   at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Any idea ?
4 REPLIES 4

sstolarczyk
Champ in-the-making
Champ in-the-making
The exception suggests that you haven't included all the required files on your classpath. Did you include all the JRE libraries? The class that you're missing is in the javax.script package (in the JDK).

livingst
Champ in-the-making
Champ in-the-making
I changed jdk5 to jdk 1.6 in the classpath of the "examples" project. It works better. The previous error disappeared but Now I have "syntax error in SQL statement". I have created a new post for this.
Thanks.

jbarrez
Star Contributor
Star Contributor
Indeed, currently we have the problem  that we depend on JDK 6. This will be fixed in the near future.

tombaeyens
Champ in-the-making
Champ in-the-making
just to make sure we don't forget I created: http://jira.codehaus.org/browse/ACT-49
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.