Skip to main content
1-Visitor
June 26, 2015
Question

Issue on loading jar files

  • June 26, 2015
  • 2 replies
  • 9583 views

HI Team,

               I am developing new plugin for ArborText Editor using java by following some reference documents and Help Center, I am facing some issue while running editor after keeping my updated files in this path "\Arbortext Editor\custom\init" I kept my .class files which having main method. And in the path "\Arbortext Editor\custom\classes"  I kept may all supported files as well as supported jar file "Customfunc.jar". I am getting below error while running Editor , could any one please suggest where exactly I am going wrong.

[A18115] Error in initialization file: C:\Program Files (x86)\PTC\Arbortext Editor\custom\init\initCust.class,

java.lang.UnsatisfiedLinkError: no Customfunc in java.library.path

With Regards,

M.Prashant

    2 replies

    12-Amethyst
    June 29, 2015

    Hi Prashant

    It is little bit strange your error :

        [A18115] Error in initialization file: C:\Program Files (x86)\PTC\Arbortext Editor\custom\init\initCust.class,

    As I know, all custom Java class and .jar files shoud be placed in '/Arbortext Editor/custom/classes".

    Would you like to check 'Customfunc.jar' path?

    Kim, Joon O

    prao1-VisitorAuthor
    1-Visitor
    June 29, 2015

    HI,

          My main class is initCust.class and it has some imported classes which having in package com.java.cust and made as Customfunc.jar which was placed in  path i.e /Arbortext Editor/custom/classes  below is my folder structure

    1)    \Arbortext Editor\custom\init\initCust.class (this class contains my main method)

    2)    \Arbortext Editor\custom\classes\initCust.class

          \Arbortext Editor\custom\classes\Customfunc.jar  and this jar also tried to keep in the path \Arbortext Editor\custom\classes\com\java\cust\Customfunc.jar


    Yes, I would like to check the Customfunc.jar path.

    With Regards,

    Prashant

    12-Amethyst
    June 29, 2015

    Hi Prashant

    Why does same name java files place two other folders?

    Java class or jar file should be placed only one folder.

    First I think that you should remove 'initCust.class' and 'CustomFunc.jar' from '/Arbortext Editor/custom/init' folder.

    If initCust.class is not same in each folder, you should change class name and copy into '/Arbortext Editor/custom/classes' folder.

    Kim, Joon O

    prao1-VisitorAuthor
    1-Visitor
    June 29, 2015

    Hi Kim,

           I tried in that way too, Previously my folder structure is like below

    1)    \Arbortext Editor\custom\init\initCust.class (this class contains my main method)

    2)    \Arbortext Editor\custom\classes\Customfunc.jar

    even though I am facing the same error "no Customfunc in java.library.path" , do I need to set this jar in any path ?

    With Regards,

    M.Prashant

    12-Amethyst
    June 29, 2015

    Hi Prashant

    By startup, Arbortext Editor load embeded JVM.

    And JVM Version is not same each Arbortext Editor Version.

    Pleaase try to step the following :

    1. Select 'Tools > Preference'

    2. Select 'Window' Category in Preference Window

    3. Check 'Full Menus'

    4. Select 'Tools > Administrative Tools > Java Console'

    5. Verify JVM version

    For use Java Class in ACL, your java class must be using java compiler same version as Arbortext Editor's embeded JVM.

    Please check the JDK version when you compiled

    Kim, Joon O

    prao1-VisitorAuthor
    1-Visitor
    June 29, 2015

    HI Kim,

                   I am using same JVM version for both is  "Java VM Version 1.7.0_60 -- Oracle Corporation"

    Regards,

    M.Prashant rao