Unable to use JAR in Eclipse
Posted
by
Myn
on Stack Overflow
See other posts from Stack Overflow
or by Myn
Published on 2011-01-13T12:50:15Z
Indexed on
2011/01/13
12:53 UTC
Read the original article
Hit count: 145
Hi guys,
I have just created my first JAR in Eclipse, just a simple program with a single class Database.class. It is not in a package.
public class Database {
public Database() {
int dbInit = 1; } }
I have added it as an external JAR to the build path libraries for another project in Eclipse, but for some reason I cannot get Database db = new Database()
, the default constructor, to work - it's as if the contents of the JAR are not being recognised.
Could anyone please offer any advice on this?
Thanks very much,
M
© Stack Overflow or respective owner