Skip to main content
1-Visitor
July 13, 2015
Solved

Problem on running class file in ArborText Editor

  • July 13, 2015
  • 2 replies
  • 3786 views

Hi,

     Could any one please help why the below exception is coming when a menu is clicked in ArborText Editor.

          [A30135] Cannot load class CustomMenu because a dependent class was not found

CustomMenu is my custom class and it has some dependent jar files with folder contains some dependent class. I kept my CustomMenu.class and jar in the path \Arbortext Editor\custom\classes

          \Arbortext Editor\custom\classes\CustomMenu.class

          \Arbortext Editor\custom\classes\custom.jar

          \Arbortext Editor\custom\classes\org(this folder contains dependent class files for CustomMenu)

After applying this I started ArborText Editor and I clicked my Menu , I am getting ([A30135] Cannot load class CustomMenu because a dependent class was not found), error at the bottom of the Editor

Could any one please help on this

Thanks.

Prashant

    Best answer by prao

    HI Clay,

                 I don't now does this will help in all scenarios, I opened windows command prompt and I executed  the file "CustomMenu.class" , when I executed each time I got exception "Exception in thread "main" java.lang.NoClassDefFoundError:" So what ever the dependent class jar missing I used to going on adding the jar in the path "\Arbortext Editor\custom\classes" till that file executed without errors. I don't know why this not displaying in Arbortext console.

    Thanks,

    Prashant.

    2 replies

    12-Amethyst
    July 13, 2015

    Hi Prashant

    Does dependent class has package name ?

    For example if dependent class's package name is 'org.custom'.

    Then dependent class must be located in '\Arbortext Editor\custom\classes\org\custom'.

    Otherwise if class has no package name, the class must be located in '\Arbortext Editor\custom\classes'.

    Same as CustomMenu.class.

    Thanks,

    Kim, Joon O

    prao1-VisitorAuthor
    1-Visitor
    July 13, 2015

    HI Kim,

               Thanks for your immediate response. Class 'CustomMenu.class' has no package this file is kept in \Arbortext Editor\custom\classes path.But this class is using other class methods which is present in the folder org\... All these are kept under the path "\Arbortext Editor\custom\classes"

    Thanks,

    Prashant

    18-Opal
    July 13, 2015

    Hi Prashant--

    Are you looking at the Java Console in Arbortext editor when this happens? You may be able to get more detailed stack trace information there that could help you troubleshoot which specific class is causing the problem. To display the Java Console, from the menus choose Tools->Administrative Tools->Java Console.

    --Clay

    prao1-VisitorAuthor
    1-Visitor
    July 14, 2015

    HI Clay,

                I have checked the console, but its blank.

    Thanks,

    Prashant

    prao1-VisitorAuthor
    1-Visitor
    July 14, 2015

    HI Clay,

                 I got the issue fixed, thank you very much.

    Regards,

    Prashant