Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Importing java classes
Importing java classes [message #276025] Tue, 16 November 2004 06:45 Go to next message
Eclipse UserFriend
Originally posted by: meirzilkha.yahoo.com

Hello
I was using eclipse 2.1 for a year now and had no problems
updated to 3.01
Now when I start a java project ,write a class, and write another one. in
the same project!/
when I try to use the import command it would not recognize my class

I want to use it in my main class.

please if somone could help me.

I am searching for a selution for a long time
thank you
Re: Importing java classes [message #276053 is a reply to message #276025] Tue, 16 November 2004 14:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.vaillancourt.mediagrif.com

> MeirZilkha wrote:
> I was using eclipse 2.1 for a year now and had no problems
> updated to 3.01
> Now when I start a java project ,write a class, and write another one. in
> the same project!/
> when I try to use the import command it would not recognize my class

Most probably your project does not have the a source path that point
towards your class.
Each time i've seen this problem it was because of something like that.
Re: Importing java classes [message #276061 is a reply to message #276025] Tue, 16 November 2004 16:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

MeirZilkha wrote:

> Hello
> I was using eclipse 2.1 for a year now and had no problems
> updated to 3.01
> Now when I start a java project ,write a class, and write another one. in
> the same project!/
> when I try to use the import command it would not recognize my class

> I want to use it in my main class.

> please if somone could help me.

> I am searching for a selution for a long time
> thank you
Have you placed the classes into a package. Since 1.4 you are no longer
able to import classes from the default (not defined) package.
Re: Importing java classes [message #276073 is a reply to message #276053] Wed, 17 November 2004 05:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: meirzilkha.yahoo.com

Simon Vaillancourt wrote:

>> MeirZilkha wrote:
>> I was using eclipse 2.1 for a year now and had no problems
>> updated to 3.01
>> Now when I start a java project ,write a class, and write another one. in
>> the same project!/
>> when I try to use the import command it would not recognize my class

> Most probably your project does not have the a source path that point
> towards your class.
> Each time i've seen this problem it was because of something like that.

Well I checked in the project properties in the "Java Build Path" tab. I
chose the Source tab, it has the name of my project folder writen and
under int include all,Exclude None.

so I do not understand what to do.
Re: Importing java classes [message #276074 is a reply to message #276061] Wed, 17 November 2004 05:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: meirzilkha.yahoo.com

Dave Wegener wrote:

> MeirZilkha wrote:

>> Hello
>> I was using eclipse 2.1 for a year now and had no problems
>> updated to 3.01
>> Now when I start a java project ,write a class, and write another one. in
>> the same project!/
>> when I try to use the import command it would not recognize my class

>> I want to use it in my main class.

>> please if somone could help me.

>> I am searching for a selution for a long time
>> thank you
> Have you placed the classes into a package. Since 1.4 you are no longer
> able to import classes from the default (not defined) package.

Well I tried creating another package with a name that I gave it, not the
default one. wrote a class, and anther one, tryed importing one to another
did not work!!

Sorry I guess i Do not understand
Re: Importing java classes [message #276080 is a reply to message #276073] Wed, 17 November 2004 09:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.vaillancourt.mediagrif.com

MeirZilkha wrote:

> Simon Vaillancourt wrote:

>>> MeirZilkha wrote:
>>> I was using eclipse 2.1 for a year now and had no problems
>>> updated to 3.01
>>> Now when I start a java project ,write a class, and write another one. in
>>> the same project!/
>>> when I try to use the import command it would not recognize my class

>> Most probably your project does not have the a source path that point
>> towards your class.
>> Each time i've seen this problem it was because of something like that.

> Well I checked in the project properties in the "Java Build Path" tab. I
> chose the Source tab, it has the name of my project folder writen and
> under int include all,Exclude None.

> so I do not understand what to do.

Can you copy your ".project" file and both your classes? It would help to
fix the problem.
Re: Importing java classes [message #276144 is a reply to message #276080] Thu, 18 November 2004 08:47 Go to previous message
Eclipse UserFriend
Originally posted by: meirzilkha.yahoo.com

Simon Vaillancourt wrote:

> MeirZilkha wrote:

>> Simon Vaillancourt wrote:

>>>> MeirZilkha wrote:
>>>> I was using eclipse 2.1 for a year now and had no problems
>>>> updated to 3.01
>>>> Now when I start a java project ,write a class, and write another one. in
>>>> the same project!/
>>>> when I try to use the import command it would not recognize my class

>>> Most probably your project does not have the a source path that point
>>> towards your class.
>>> Each time i've seen this problem it was because of something like that.

>> Well I checked in the project properties in the "Java Build Path" tab. I
>> chose the Source tab, it has the name of my project folder writen and
>> under int include all,Exclude None.

>> so I do not understand what to do.

> Can you copy your ".project" file and both your classes? It would help to
> fix the problem.

yes I can copy them. But what do you mean. would you like me to send a
simple project that I made and to show you my files? Then can you help me
I do not see an upload feature in this group

Thank you
Previous Topic:Multi-platform plugin development
Next Topic:backslashes in replace field of find/replace
Goto Forum:
  


Current Time: Wed Jul 23 19:31:28 EDT 2025

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

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

Back to the top