Skip to main content
10-Marble
October 30, 2023
Solved

Java compilation issue in Windchill 12.0

  • October 30, 2023
  • 1 reply
  • 1866 views

Hello,

 

I am trying to upgrade my project from Windchill 11 to Windchill 12. I face the below issue when trying to compile the source code in eclipse. The error points to LoadPart.java file

 

"The type wt.vc._MasterIteration cannot be resolved. It is indirectly referenced from required .class files"

 

I have included all the necessary jar files in the build path of the project but the issue is still there. Cleaning and re-building of the project also didnt help. Kindly let me know if anyone has any idea as to how to resolve this.

 

Thanks,

 

 

 

 

 

Best answer by HelesicPetr

Hi @RK_10805837 

You need to add the Windchill path classes 

The WTHOME/codebase contains many classes that are not in jar files, and are used.

You need to add all the classes to your paths

here is example from my path definition in InteliJIdea

HelesicPetr_0-1698668932033.png

PetrH

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
October 30, 2023

Hi @RK_10805837 

It seams that you use some code that is not used any more in windchill 12

is it problem with your code?  

there can be some changes in the Windchill java library that is not compatible with your code.

 

PetrH

10-Marble
October 30, 2023

Hi @HelesicPetr , thanks for the reply.

The error does not point to any custom code but in the OOTB file of LoadPart.java. It also shows this error along with the above one:

"The project was not built since its build path is incomplete. Cannot find the class file for wt.vc._MasterIteration. Fix the build path then try building this project"

 

Thanks,

HelesicPetr
22-Sapphire II
22-Sapphire II
October 30, 2023

Hi @RK_10805837 

You need to add the Windchill path classes 

The WTHOME/codebase contains many classes that are not in jar files, and are used.

You need to add all the classes to your paths

here is example from my path definition in InteliJIdea

HelesicPetr_0-1698668932033.png

PetrH