Skip to main content
1-Visitor
July 6, 2020
Solved

WVS AfterLoader

  • July 6, 2020
  • 3 replies
  • 4792 views

Hello folks,

 

I'm trying to get the AfterLoader set up...  when following the instructions for running the following

 

javac -classpath %CLASSPATH%;%WT_HOME%\srclib\tool\Annotations.jar -d %wt_home%\codebase AfterEDRloader.java

 

i get a invalid flag error... I'm a touch new... I don't think there are environment variables set on my install.  What would my %CLASSPATH% be set to?

 

Thanks for any help.

Best answer by MikeLockwood

See attached doc when I put this in a few years ago.  Had same issue - solved by setting java path in the cmd window.

3 replies

1-Visitor
July 6, 2020

as in... what would the path be so I can just type the path into the command....

14-Alexandrite
July 6, 2020

You can alternatively run below command first:

1. set CLASSPATH=%WT_HOME%\srclib\tool\Annotations.jar;%WT_HOME%\srclib\tool\AnnotationProcessing.jar;%CLASSPATH%

(Make sure your WT_HOME is set)

2. 

javac -d %WT_HOME%/codebase ext/company/wvs/AfterEDRloader.java

(ext/company/wvs is where you stored your AfterEDRloader.java file)

1-Visitor
July 6, 2020

I don't believe %WT_HOME% is set

I can just type in the path yes?  would i need quotations for the path?

22-Sapphire I
July 6, 2020

See attached doc when I put this in a few years ago.  Had same issue - solved by setting java path in the cmd window.

1-Visitor
July 6, 2020

Thank ya sir!  I was able to set everything up but the stp file extension... 

 

0 [main] ERROR com.ptc.windchill.structconf.StructConfManager - Extra unrecognized arguments: "stp"

 

was returned... it took pdf.

 

I had just a space between pdf and stp.. is that syntax no good?

22-Sapphire I
July 6, 2020

I forget which but requires .stp for Creo Parametric and .step for SolidWorks (or vice versa).

 

No matter how good the CS articles are I always find it necessary to create a complete document like that one. Wish I could sell them somehow 🙂