[SOLVED] use class from another package [message #656716] |
Mon, 28 February 2011 09:05 |
Lyubomir Messages: 2 Registered: February 2011 |
Junior Member |
|
|
I have 2 projects, one in package "myserver" the other in package "myclient". In myclient I am supposed to use an interface "Calculator" from myserver. I have copied the "Calculator.class" to bin/myserver/ inside the myclient project.
When I do "private myserver.Calculator calc;" I get "myserver cannot be resolved to a type". Even adding "import myserver.*;" results in cannot be resolved. Refreshing and restarting Ecliple doesn't help.
myserver and the Calculator.class can be seen in myclient project under Navigator. I can't import class folder in JavaBuildPath as it is in the default bin for myclient. External Class Folder doesn't work as well.
Is there a way to get it work, I can't use the source code for Calculator.class.
------------
Eclipse SDK Version: 3.6.1 Build id: M20100909-0800
Using JavaSE-1.6
Windows 7 x64
Trying to do a RMI server-client calculator and the myclient needs to have the Calculator.class.
------------
Cheers.
[Updated on: Mon, 28 February 2011 19:58] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08656 seconds