Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » import a class from another project
import a class from another project [message #684] Wed, 08 April 2009 19:36 Go to next message
Williams Mising name is currently offline Williams Mising nameFriend
Messages: 43
Registered: July 2009
Member
I created a Java project A. And under A, I would like to import a class
from another project B which has a package
org.eclipse.example.Myprogram.ClassA. But when i write
import org.eclipse.example.Myprogram.ClassA, I get the following msg:
org.eclipse.example cannot be resolved.
How should I fix the problem? Thanks.
Will
Re: import a class from another project [message #687 is a reply to message #684] Thu, 09 April 2009 13:31 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Williams wrote:
> I created a Java project A. And under A, I would like to import a class
> from another project B which has a package
> org.eclipse.example.Myprogram.ClassA. But when i write
> import org.eclipse.example.Myprogram.ClassA, I get the following msg:
> org.eclipse.example cannot be resolved.
> How should I fix the problem? Thanks.
> Will
>

You want the newcomer group.

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: import a class from another project [message #561109 is a reply to message #684] Thu, 09 April 2009 13:31 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Williams wrote:
> I created a Java project A. And under A, I would like to import a class
> from another project B which has a package
> org.eclipse.example.Myprogram.ClassA. But when i write
> import org.eclipse.example.Myprogram.ClassA, I get the following msg:
> org.eclipse.example cannot be resolved.
> How should I fix the problem? Thanks.
> Will
>

You want the newcomer group.

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:import a class from another project
Next Topic:bespin
Goto Forum:
  


Current Time: Sat Dec 20 20:24:40 GMT 2014

Powered by FUDForum. Page generated in 0.05081 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software