I just wanted to relish the convenience of Java embedded in OpenBD
CFML ! Therefore, I took the following example from the OpenBD docs:
<cfscript language="java">
import java.util.*;
// Creating an array in Java, and then setting it for the CFML
List fromJava = Arrays.asList(new String[] { "aa", "bb", "cc",
"dd" });
cf.set( "abc", fromJava );
</cfscript>
But unfortunately, I receive the following error message:
Type Template
Message Badly formatted tag
Position Line=3; Column=10
Detail Problem occurred while parsing: Encountered invalid token
after "java"
Source
1: <cfscript language="java">
2:
3: import java.util.*;
4:
5: // Creating an array in Java, and then setting it for the CFML
^ Snippet from underlying CFML source
This happens for all such examples and all constellations I have
tried !
Env is:
- Windows XP Pro
- Tomcat 7.0.12
- OpenBD 1.4; Build Date 2010-10-27 14:24:51 GMT
- OpenBD installation is from scratch !
- Java Virtual Machine Sun Microsystems Inc. 1.6.0_18
- JVM Memory Information
Used 33 MB
Free 12 MB
Total 45 MB
Max 248 MB
- Copied <JAVA_HOME>\JavaEE6SDK\jdk\lib\tools.jar into OpenBD's WEB-INF
\lib folder
Any ideas/hints for what could go wrong ?
--
official tag/function reference: http://openbd.org/manual/
mailing list - http://groups.google.com/group/openbd?hl=en