cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Java pipeline example

dgopois
12-Amethyst

Java pipeline example

Détails de la requête : 13969240 <noscript>

Hello,
I try to use the Java Pipeline example (HTMLFileComposer.class in the directory C:\Program Files\PTC\Arbortext Editor\samples\pipeline).
I use this ACL code to launch the java method "composeToHtmlFromDoc"
function composeHTML() {
local doc=current_doc();
local stylesheet="C:/temp/ie/s1000d_2_3.xsl";
local outputFile="C:/temp/test.htm";
local ret = java_static("HTMLFileComposer","composeToHtmlFromDoc",doc,stylesheet,outputFile);
}

When I execute the ACL function "composeHTML".
Arbortext Editor return the following error:
[A30135] cannot load class HTMLFileComposer because a dependent class was not found.
Why this error?
Nothing is displayed in Java console.

Regards
David
1 ACCEPTED SOLUTION

Accepted Solutions
dgopois
12-Amethyst
(To:dgopois)

Hi,

The PTC support gave me the solution. I must indicate the complete path of the class in the ACL function:

java_static("com.arbortext.epic.compose.examples.HTMLFileComposer","composeToHtmlFromDoc",doc,stylesheet,outputFile);

Regards,

David

View solution in original post

1 REPLY 1
dgopois
12-Amethyst
(To:dgopois)

Hi,

The PTC support gave me the solution. I must indicate the complete path of the class in the ACL function:

java_static("com.arbortext.epic.compose.examples.HTMLFileComposer","composeToHtmlFromDoc",doc,stylesheet,outputFile);

Regards,

David

Top Tags