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 an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to add a new folder to the class path read by Windchill

PeterWigren
12-Amethyst

How to add a new folder to the class path read by Windchill

Hello!

When starting Windchill looking in the logs there are classpaths listed as in below example:

2017-01-19 14:50:43,563 INFO  [main] wt.method.server.startup  - Class path =

  /ptc/Windchill/codebase

  /ptc/Windchill/codebase/WEB-INF/lib/jviews-chart-all.jar

  /ptc/Windchill/codebase/WEB-INF/lib/archiveServerWeb.jar

  /ptc/Windchill/codebase/WEB-INF/lib/prowtWeb.jar

...

Lets say I have a new jar-file that I would like to add but I don't want to put it under any known folder (codebase, WEB-INF/lib etc...) how would I do then?

Which file to modify?

Reason is that I don't want to mix OOTB jars with added ones since time will make it difficult to know which ones are OOTB and which ones are not.

Thanks for any assistance and best regards!

/Peter

ACCEPTED SOLUTION

Accepted Solutions

It is controlled by a WTProperty  > wt.java.classpath

This is read by SM, MS and Windchill shell

View solution in original post

4 REPLIES 4

Peter Wigren wrote:

Hello!

When starting Windchill looking in the logs there are classpaths listed as in below example:

2017-01-19 14:50:43,563 INFO  [main] wt.method.server.startup  - Class path =

  /ptc/Windchill/codebase

  /ptc/Windchill/codebase/WEB-INF/lib/jviews-chart-all.jar

  /ptc/Windchill/codebase/WEB-INF/lib/archiveServerWeb.jar

  /ptc/Windchill/codebase/WEB-INF/lib/prowtWeb.jar

...

Lets say I have a new jar-file that I would like to add but I don't want to put it under any known folder (codebase, WEB-INF/lib etc...) how would I do then?

I don't know of any "not known folders" to use however simply put your jar file in the following 2 "known" folders:

./lib

./codebase/WEB-INF/lib

and restart Windchill. I have done this since Windchill 9.1.

Hi, 

I'm working in windchill version 9.2. I have added new jar files in /lib and /codebase/WEB_INF/lib folders and restarted windchill service. But still getting error - "Package doesn't exist" while compiling the utility in windchill shell. Can I get some help here?

It is controlled by a WTProperty  > wt.java.classpath

This is read by SM, MS and Windchill shell

Thanks Binesh!

This is exactly the information I wanted!

I have now appended my own classpath to this property according to below:

<AddToProperty name="wt.java.classpath" value="$(path.sep)$(wt.webinf.lib)$(dir.sep)mycompanyfolder$(dir.sep)*"/>

Thanks and best regards,

Peter

Announcements


Top Tags