Eclipse Configuration For Windchill Customization

Introduction:  

To enhance your Windchill experience and boost productivity, integrating it with Eclipse IDE is a smart move. In this comprehensive guide, we will walk you through the Eclipse configuration process for Windchill, ensuring a seamless integration that empowers your team to collaborate efficiently and manage product data effortlessly.  

Now, let’s make Windchill Eclipse Configuration happen! With Windchill Preinstall in system. 

Step 1 : Add plugins Eclipse  

1. Install the Eclipse IDE  

Begin by downloading and installing the latest version of Eclipse IDE from the official Eclipse website (https://www.eclipse.org/). Choose the edition that best suits your Windchill development needs, such as Eclipse IDE for Java Developers or Eclipse IDE for Java EE Developers 

2. Add Below jars In Eclipse Folder 

Download FileSync jar from https://code.google.com/archive/a/eclipselabs.org/p/filesync4eclipse/downloads and add in dropins folder for File Synchronization 

3. Restart Eclipse  

Step 2 : Eclipse Setup for Method Server Connection 

1. Set method server running port

      1. Take backup of /codebase/wt.properties.xconf

      2. In /codebase/wt.properties.xconf edit property to add method server port and java memory allocations

      3. Enter below property in site.xconf and change port as per required

      <!– START Debug Configs –> 

    <Property name=”wt.manager.cmd.BackgroundMethodServer.param.15″ overridable=”true” targetFile=”codebase/wt.properties” value=”-agentlib:jdwp=transport=dt_socket,address=8001,server=y, suspend=n”/> 

    <Property name=”wt.manager.cmd.MethodServer.debug.args” overridable=”true” targetFile=”codebase/wt.properties” value=”{15}”/> 

    <Property name=”wt.manager.cmd.MethodServer.param.15″ overridable=”true” targetFile=”codebase/wt.properties”  value=”-agentlib:jdwp=transport=dt_socket,address=8989,server=y,suspend=n”/> 

    <!– END Debug Configs –> 

    2. In Windchill Shell run the command xconfmanager –p 

    Run xconfmanager utility to propagate the xconf value

    3. Restart Windchill server and Eclipse 

    Once you restart the method server, the method server will start running on port (8989) specified in the property above. 

    Note: You can check the method server running port in the method server logs. The very first line will show the method server running port. 

    4. Reload Eclipse Configuration 

    Step 3 : Eclipse Setup for Debugging 

    1. Click on Debug -> Debug Configuration -> Remote Java Application-> New Configuration 

    2. Provide Project Name, Host and Port. Click on” Apply”. 

    Note : Port and Host same as mentioned in Property

    3. Click on “Debug” when Method Server is Up and Running 

    Step 4 : Eclipse Project Setup  

    1. Open Eclipse and select appropriate workspace 

    2. Create new project  

    Eclipse ->File->New-> Java Project 

    3. Java Project

    Enter the name and select the appropriate JDK version depending on the Windchill version you are working on. Click on finish. The project is created with src folder 

    4. File Sync Configuration 

        1. Right click on crated Project->Properties->File Synchronization

        2. Click on” Add folder” and Add Project -> bin folder 

        3. In Default target folder, Click on Browse and Navigate to Windchill_Home and select “codebase” folder  

        4. This will generate .class file in Windchill_Home/codebase folder 

        5. Click on “Apply and Close” 

      5. Add OOTB JARs 

          1. Right click on crated Project->Properties->Java Build Path 

          2. Click on “Add External Jars”. This will open a new selection window. Navigate to Windchill_Home/srclib and select all available libraries in this folder and click OK. 

          3. Click on “Apply and close” 

        6. Complete the Eclipse Configuration 

        Conclusion: 

        And there you have it! Eclipse and Windchill are now best pals, making your development journey smoother. Enjoy the benefits of a streamlined workflow, better collaboration, and improved productivity. 

        Leave a Comment

        Your email address will not be published. Required fields are marked *


        This will close in 0 seconds