W
wapo
Hi all,
I am rather new to Java and I have two questions to ask:
a) I have a project where I import a jar file in order to use some
classes. For one of the classes in the jar I have written my own
version and I want to force the project to use my class instead of the
one provided by the jar. I could simply rename my class to something
else but I want this class to be used by the classes in the jar as
well. Is there a way to suppress the class provided by the jar.
b) This particular class in the jar creates another problem to me
(even if I decide to keep using it). My project compiles but when I
try to run it I get an error of the form
java.lang.NoClassDefFoundError. I know that this has to do with the
classes not being found. I read on the net that I need to fix the
classpath but how/why. The jar (where the class reside) has been
imported to the project. The compiler finds it during compiling. The
answer I found on the net had to do with the addition of ./; in the
classpath but that didnt help. Any other ideas?
I am using Eclipse/WinXP/J2ME
Thanks in advance
I am rather new to Java and I have two questions to ask:
a) I have a project where I import a jar file in order to use some
classes. For one of the classes in the jar I have written my own
version and I want to force the project to use my class instead of the
one provided by the jar. I could simply rename my class to something
else but I want this class to be used by the classes in the jar as
well. Is there a way to suppress the class provided by the jar.
b) This particular class in the jar creates another problem to me
(even if I decide to keep using it). My project compiles but when I
try to run it I get an error of the form
java.lang.NoClassDefFoundError. I know that this has to do with the
classes not being found. I read on the net that I need to fix the
classpath but how/why. The jar (where the class reside) has been
imported to the project. The compiler finds it during compiling. The
answer I found on the net had to do with the addition of ./; in the
classpath but that didnt help. Any other ideas?
I am using Eclipse/WinXP/J2ME
Thanks in advance