Java Newbie Question - the import statement

Hi Geeks,

I have a problem for importing a java .class in my project. This latter is named "Tedetis_New". Inside it, I created a "src" folder containing all the source code of the application. I import a jar file inside the parent directory of "src" (i.e. at the root of the project). Inside this jar archive, two classes (.class files) are not placed inside a package (default package according to eclipse), let's name one toto.class. So when I want to import toto.class from a file inside the src directory I simply do "import toto.class" but this statement doesn't work ! I don't manage to import my toto.class so ... what do you propose for this ?

Thanks.

[681 byte] By [kokoricoa] at [2007-11-26 20:29:51]
# 1
Don't use the "default" class for anything serious; you can't import sucha class.kind regards,Jos
JosAHa at 2007-7-10 1:19:08 > top of Java-index,Java Essentials,Java Programming...
# 2
> Don't use the "default" class for anything serious;> you can't import such> a class.Er, package maybe?
jverda at 2007-7-10 1:19:08 > top of Java-index,Java Essentials,Java Programming...
# 3

> > Don't use the "default" class for anything

> serious;

> > you can't import such

> > a class.

>

>

> Er, package maybe?

Yes, I was editing my reply while you replied to my reply so I couldn't

edit my little blooper in my reply anymore; thank you very much Sir ;-)

kind regards,

Jos

JosAHa at 2007-7-10 1:19:08 > top of Java-index,Java Essentials,Java Programming...
# 4

> > > Don't use the "default" class for

> anything

> > serious;

> > > you can't import such

> > > a class.

> >

> >

> > Er, package maybe?

>

> Yes, I was editing my reply while you replied to my

> reply so I couldn't

> edit my little blooper in my reply anymore; thank you

> very much Sir ;-)

>

> kind regards,

>

> Jos

I entered that response as quickly as I could, for just that reason. I thought you might notice and try to correct it, and I wanted to preserve your fuckupus maximus for all eternity.

Everyone gather round and taunt Jos! Wave your private parts at his auntie! **** in his general direction!

Now, aren't you glad you didn't say "Jehovah"?

jverda at 2007-7-10 1:19:08 > top of Java-index,Java Essentials,Java Programming...
# 5

> > > > Don't use the "default" class for anything serious;

> > > > you can't import such a class.

> > >

> > >

> > > Er, package maybe?

> >

> > Yes, I was editing my reply while you replied to my reply so I couldn't

> > edit my little blooper in my reply anymore; thank you very much Sir ;-)

> >

> > kind regards,

> >

> > Jos

>

> I entered that response as quickly as I could, for just that reason. I

> thought you might notice and try to correct it, and I wanted to preserve

> your fuckupus maximus for all eternity.

>

> Everyone gather round and taunt Jos! Wave your private parts at his

> auntie! **** in his general direction!

>

> Now, aren't you glad you didn't say "Jehovah"?

I already knew that you were the one who invented amiability ;-)

kind regards,

Jehov^H^H^H^Hos

JosAHa at 2007-7-10 1:19:08 > top of Java-index,Java Essentials,Java Programming...