Skip to main content
1-Visitor
October 25, 2012
Solved

ACL calling JAVA in Arbortext Editor 6.0 M010

  • October 25, 2012
  • 2 replies
  • 7481 views

Hi Experts,

1) We are facing some issue while calling java class from ACL. From one of the menu item of Custom menu we are calling Java class but we getting error message like

a) [A30134] Can not find the java class com.XXX.XXX.XXX..

b) [A30133] No Java class for the object could be found.

2) We provided our all classes in custom/classes folder and mentioned all the jar files in the classpath variable. But still problem is existing.

Environment details:

Arbortext editor 6.0 M010

Arbortext PE 6.0 M010

Could you please help us.

Best answer by ClayHelberg

It might be safer to not use javaclasspath at all, but rather to put your class file where Arbortext expects to find it. Try this and see if it works any better:

1) Remove the code that modifies java class path (set javaclasspath and/or append_javaclass_path)

2) Put a copy of your class file into the Arbortext install path, under custom/classes.

3) Test, see if you can run it.

4) If that works, then you can try moving the class file out of the Arbortext install path to your own custom directory location, under custom/classes.

--Clay

2 replies

18-Opal
November 1, 2012

Hi Hiran--

Can you provide a little more information, such as the exact code your menu item invokes, and how your custom/classes folder is structured?

--Clay

1-Visitor
December 6, 2012

Thanks Clay. For your reply. We solved the issue.

1-Visitor
August 6, 2013

OK, I have the same problem. Can somebody explain what the solution was?

In my first attempt at using java with Arbortext Editor, I tried one of the provided samples; compiling it and trying to run it from both the command panel as instructed in the README and from an acl function:

function GoRussell() {

append_javaclass_path('\\\\res-aus-02\\nickel\\common\\arbortext\\custom\\classes')

java_static('TreeView', 'view')

} # GoRussell()

I also tried forward slashes, trailling slashes on the path, mapped drive letter, set javaclasspath=, and all combinations of these. Nothing, nada, zip, except the error "[A30134] Cannot find the java class TreeView".

I am unable to put the class into the install custom\classes directory as my company does not give me those admin rights.

Where am I going wrong?

1-Visitor
August 6, 2013

If your TreeView class is in a package, you'll need to do this:

java_static('package.path.TreeView', 'view')

1-Visitor
October 25, 2013

My class is not part of a package, but I did try your suggestion in case it needed the "packages" prefix that is mentioned in the book of words. Made no difference. See my reply to Gareth, I have made a tiny step of progress but am still stuck. Thanks for you suggestion.