Access to Java Classes
For JRuby scripts in existing mashups, access to Java classes is implicit in the language. JRuby is deprecated for development in new mashups.
For JavaScript scripts, the following classes are accessible in a <script> command
Java language classes.
Any class in the classpath for the
Business Analytics Server.
Use fully-qualified class names, such as in this example:
<script type="text/javascript">
<![CDATA[
var p = java.util.regex.Pattern.compile("a*b");
var m = p.matcher("aaaaab");
var b = m.matches();
print(b);
]]>
</script>
Important: | For Java language classes, access is dependent on the version of the JDK used by the application server that hosts the Business Analytics Server. |