If I try to access another jar files default package I have no
problem. When I try to access anythig else i.e. package com.mine.thing,
I always get the not found message.
What special thing do I need to do to make it work?
package a.b.c.*;
import Another.*;
class Test {
System.out.prin tln ("Hello World");
try {
Class.forName(" another/Thing");
// Class.forName(" Stuff");
}
catch (ClassNotFoundE xception ex) {
ex.printStackTr ace();
System.out.prin tln ("Good bye Cruel World");
System.exit (-1);
}
}
for this class Stuff works but another/Thing is another thing.
Any ideas?
Thanks for your time.
problem. When I try to access anythig else i.e. package com.mine.thing,
I always get the not found message.
What special thing do I need to do to make it work?
package a.b.c.*;
import Another.*;
class Test {
System.out.prin tln ("Hello World");
try {
Class.forName(" another/Thing");
// Class.forName(" Stuff");
}
catch (ClassNotFoundE xception ex) {
ex.printStackTr ace();
System.out.prin tln ("Good bye Cruel World");
System.exit (-1);
}
}
for this class Stuff works but another/Thing is another thing.
Any ideas?
Thanks for your time.
Comment