Re: Need help linking & packages
- From: "Doug Robinson" <dkrqXXX@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 15 Aug 2007 16:06:25 GMT
You should just do:
Thing t = new Thing();
/* or whatever. If you haven't imported another.* or another.Thing
you can say another.Thing t = new another.Thing(); */
// Class.forName("Stuff");
This is an example of trying to use the unnamed package to look for
Stuff. Getting that to work is unfortunately complicated, and you should
just avoid having classes without a specified package name.
Thank you for your response!
I am well aware of all of the things you say. but but but...
The recomended way to "connect" to say a jdbc driver is indeed
Class.forName("driver.package...");
and in no way was I recommending the use of the "unnamed package" just
that I CAN "connect" to jars that contain one.
However I still can not make any reference to a "package" work in this
fashion.
Thanks again for your time & effort!
dkr
.
- Follow-Ups:
- Re: Need help linking & packages
- From: Mark Rafn
- Re: Need help linking & packages
- References:
- Need help linking & packages
- From: Doug Robinson
- Re: Need help linking & packages
- From: Mark Rafn
- Need help linking & packages
- Prev by Date: Re: Need help linking & packages
- Next by Date: Re: Need help linking & packages
- Previous by thread: Re: Need help linking & packages
- Next by thread: Re: Need help linking & packages
- Index(es):