Skip to main content
1-Visitor
May 5, 2010
Question

Netbeans Windchill Configuration.

  • May 5, 2010
  • 9 replies
  • 2206 views

Hello,

I am looking for document to setup windchill development environment in Netbeans. Can anyone able to share document to configure windchill? Any help on this will be greatly appreciated.

Thanks in advance !

-Sachin

9 replies

13-Aquamarine
May 5, 2010

Hi Sachin,

it's a little bit old (for NetBeans 5.5) but Wincom Consulting has a document describing some steps that can help you:

http://www.wincom-consulting.co.uk/projects/how-tos/how-to-setup-the-netbeans-ide-for-windchill/

Regards


Iker Mendiola

Prambanan IT Services
http://www.prambanan-it.com



avillanueva
23-Emerald I
May 5, 2010
There may be more too this. PTC docs recommend using a wtCustom and wtSiteMod folder to managed files added to the codebase. Ant scripts are used to push code into codebase folder. It helps keep OOTB code separate from your modifications.

1-Visitor
May 11, 2010
I think eclipe IDE more userfull for the Windchill coding. I can run them from USB flash, just add local codebase to workspase. Anybody know which java IDE use in PTC company?
1-Visitor
May 11, 2010
They use both, maybe a little more eclipse. They both work for developing in Windchill so for example attaching a debugger to the Method Server works for both. They are very similiarso the best one is probably the one you know best.
1-Visitor
May 11, 2010
I use Eclipse forPDMLink 8.0 and 9.1 development.I've found that adding the entire codebase to your project's classpath results in sluggish rebuilds and refreshes. Instead, I add the codebase as an external folder to the Eclipse project and make that the default output folder. As my code needs access to api classes, I add the correctindividual jar to the build path. Finding thecorrect jar for a given API class is daunting unless you use a tool like JarBrowser(http://jarbrowser.sourceforge.net/) You give JarBrowser a folder in which your jars are located (such as %WT_HOME%\srclib) and the class you're looking for, and it will give you the correct jar.
1-Visitor
May 11, 2010
Nathan,
There is also a windchill command line utility named *Which*
*
*
*windchill wt.util.jmx.Which wt/part/WTPart.class*
* *
* *It came handy to me many times.
*
*
*
*
*Regards,*
*Prathap
*
12-Amethyst
May 11, 2010
Note that Which searches the classpath for the specified resource. If
you launch it from a Windchill shell, then this means the Windchill
server classpath (unless you modify the CLASSPATH environment
variable). This means classes in codebase would be found there, which
is very useful information in many cases, but in this case it won't
point out which jar in srclib/* could be used instead.

You could easily create a script that set CLASSPATH to include all of
these jars and then invoked Which (with Java 6 you can use classpath
wildcard syntax to make this easy).

You could also use Ant to zip up all .class files from codebase into a
codebase.jar and use it in place of codebase but otherwise use the
server classpath jars.

--
Jess Holle

12-Amethyst
May 11, 2010
On 5/11/2010 12:17 PM, Jess Holle wrote:
> Note that Which searches the classpath for the specified resource. If
> you launch it from a Windchill shell, then this means the Windchill
> server classpath (unless you modify the CLASSPATH environment
> variable). This means classes in codebase would be found there, which
> is very useful information in many cases, but in this case it won't
> point out which jar in srclib/* could be used instead.
>
> You could easily create a script that set CLASSPATH to include all of
> these jars and then invoked Which (with Java 6 you can use classpath
> wildcard syntax to make this easy).
>
> You could also use Ant to zip up all .class files from codebase into a
> codebase.jar and use it in place of codebase but otherwise use the
> server classpath jars.
P.S. To be clear I am suggesting the use of a codebase.jar for
compilation, not for running the product.

1-Visitor
May 19, 2010

this is a plugin we use to help us control the rescanning

http://wiki.netbeans.org/ScanOnDemand

stops the endless rescanning project