Can't link to dependent class [message #1763335] |
Fri, 12 May 2017 18:49 |
Paul Marlin Messages: 2 Registered: May 2017 |
Junior Member |
|
|
Sorry, newbie here.
I have a project called boilerplate and a package called boilerplate that contains a java class called kbInput. kbInput contains a static method called get().
Also I have a project called testApp with a java class called testKB containing a static class called main. Included it it are:
import boilerplate.*;
String kbOut = kbInput.get();
Since get() is a static method, there is no need to instantiate an object.
Finally, within the testApp project, I include a "Java Build Path" reference to kbInput.java.
I get the error message, "kbInput cannot be resolved to a type". I.e., it can't find the boilerplate package. I've attached a screenshot showing the package, source, and console panes. A second shows the kbInput class
-
Attachment: ECLIPSE.JPG
(Size: 235.26KB, Downloaded 1098 times) -
Attachment: ECLIPSE1.JPG
(Size: 87.55KB, Downloaded 790 times)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03624 seconds