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.
Solved! Go to Solution.
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)
javac -d %WT_HOME%/codebase ext/company/wvs/AfterEDRloader.java
(ext/company/wvs is where you stored your AfterEDRloader.java file)
Ok... i just used the paths... i did get the following... is this ok?
C:\PTC\Windchill_11.2\Windchill\src\com\ptc\wvs\util>javac -d C:\PTC\Windchill_11.2\Windchill\src\com\ptc\wvs\util AfterEDRloader.java
warning: Supported source version 'RELEASE_7' from annotation processor 'com.microsoft.azure.management.apigeneration.LangDefinitionProcessor' less than -source '1.8'
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?
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 🙂
Well... almost... I was able to set the properties in wvs.properties, but no attachments showed up. And the log produced this
I've tried to run the command per your doc but I get this error still
javac: invalid flag:Files\Java\jdk1.8.0_202\lib\tools.jar;C:\ptc\Windchill_11.2\Windchill\tomcat\bin\bootstrap.jar;C:\ptc\Windchill_11.2\Windchill\tomcat\bin\tomcat-juli.jar;C:\PTC\Windchill_11.2\Windchill\srclib\tool\Annotations.jar
the wt.properties file reads this though:
Any ideas where i've gone wrong
This article took care of the invalid flag error....
Using -s publish.afterloadermethod.copyToEPM.Filext="pdf stp" -p worked to get both extensions in.