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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Java compilation issue in Windchill 12.0

RK_10805837
10-Marble

Java compilation issue in Windchill 12.0

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,

 

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

4 REPLIES 4

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

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,

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

Hi @HelesicPetr , thank you for the response. I had missed to add the WEB-INF folder in the build path. It works with this, thank you

Announcements

Top Tags