Skip to main content
1-Visitor
January 19, 2017
Solved

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

  • January 19, 2017
  • 2 replies
  • 4868 views

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

Best answer by BineshKumar1

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

This is read by SM, MS and Windchill shell

2 replies

20-Turquoise
January 19, 2017

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.

4-Participant
December 27, 2018

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?

1-Visitor
January 19, 2017

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

This is read by SM, MS and Windchill shell

1-Visitor
January 20, 2017

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