Skip to main content
1-Visitor
April 14, 2013
Solved

Error in Eclipse when compiling java class

  • April 14, 2013
  • 2 replies
  • 1865 views

Hi

i get error when compiling java files in eclipse. I am exporting the correct jar files in eclipse, but i get error.

error.jpg

please tell me that where i am doing wrong.

what is the meaning of "indirectly referenced from required .class files" ?

Thank you

VIJAYAN

Best answer by PatrickMcEvoy

Make sure you have the WT_HOME/srclib/tool/Annotations.jar in your project classpath for the classes you list above.

The phrase "indirectly referenced" means you have some class in your project (e.g. you are working on Class A) and it refers to another class from some jar (e.g. your class A uses class B) and that other class refers to a third class which you don't use in your class (e.g. your Class A uses Class B which uses Class C so you are "indirectly" referencing class C).

2 replies

1-Visitor
April 14, 2013

Make sure that all the PTC jars are included in your project's runtime. This should fix the problem.

Keep in mind that it won't necessarily fix the problem. I haven't looked at these classes in particular, so I can't say for sure. It's possible to compile a class that references another class, then remove the other class from your package, and never call the method that references the removed class.

12-Amethyst
April 15, 2013

OracleTableSize and Cardinality is actually enum

1-Visitor
April 15, 2013

Make sure you have the WT_HOME/srclib/tool/Annotations.jar in your project classpath for the classes you list above.

The phrase "indirectly referenced" means you have some class in your project (e.g. you are working on Class A) and it refers to another class from some jar (e.g. your class A uses class B) and that other class refers to a third class which you don't use in your class (e.g. your Class A uses Class B which uses Class C so you are "indirectly" referencing class C).