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

Windchill jars

saitha
1-Newbie

Windchill jars

Hi Friends,

I was installed Windchill Pdmlink 10.0 in my system.Can you please help how to setup a windchill envronment in eclipse ? Means Which jar files we need to add for run the windchill java programme ?

Regards,

Sandeep

5 REPLIES 5
KD
4-Participant
4-Participant
(To:saitha)

Hi Sandeep,

You will find jars inside "<WC_HOME>\Windchill\srclib" and codebase\lib and codebase\WEB_INF\lib.

Regards,

Kushik

jessh
5-Regular Member
(To:saitha)

When you ask which jar files you need to add to run the Windchill Java program, that raises some questions/concerns.

Windchill's launch process sets up a lot of important JVM options on the command-line. This includes the classpath, but is certainly not limited to it. The classpath is logged early in the method server and server manager execution -- and clearly shows which jars used by the server processes at runtime. To actually run Windchill server processes, however, it's important to specify the correct JVM options as well.

If what you're trying to do is to have Eclipse (or any IDE for that matter) run Windchill so you can debug it, then that's really not the right approach. Instead what you want to do is to configure the Windchill server processes to listen for debugger connections and then connect the IDE's debugger to these running processes.

As for IDE compilation, that's a totally different story. You can use the jars from the classpath or you can use the much more fine-grained jars under WT_HOME/srclib.

ybagul
1-Newbie
(To:jessh)

Jess, can you please help understand how the following can be setup? Any steps/guides for eclipse to do this?

"Instead what you want to do is to configure the Windchill server processes to listen for debugger connections and then connect the IDE's debugger to these running processes."

jessh
5-Regular Member
(To:ybagul)

Well, first off the approach to configuring a Java process to allow a debugger to be attached is quite general and covered by numerous articles one can find by googling "JPDA debug arguments" or the like, where JPDA is the underlying Java Platform Debugger Architecture. The results include http://stackoverflow.com/questions/138511/what-are-java-command-line-options-to-set-to-allow-jvm-to-... which seems to be a good starting point.

The Eclipse documentation almost certainly covers this as well. It should certainly cover the commands within the IDE for attaching a debugger to a running process.

As for how to insert the debug arguments in question into the Windchill server processes' command-line arguments, the easiest approach is probably to use the wt.manager.cmd.MethodServer.debug.args and/or wt.manager.cmd.ServerManager.debug.args properties for this purpose (for the method server and server manager respectively).

If you need to debug with multiple method servers, then things get a bit more complicated, as you need to assign a unique JPDA address to each method server. At that point you'd then need to examine the Javadoc for wt.manager.BaseServerLauncher to decide how to generate a unique JPDA address for each method server's arguments.

ybagul
1-Newbie
(To:jessh)

You provided enough information to get started. Thanks Jess.

Announcements