I have a .class file which I need to import into Eclipse,
Using Eclipse, I imported the .class file into a
Java project, placed it into a package named
and then exported the package as a .jar file --
I then add
to the build path of my Main class in Properties>Java Build Path>Libraries>Add External JARs. I can then import the
class into my program. However, when I try to enter
, Java throws this exception:
I have followed all the instructions I can find on importing a .class file and none of them seem to work due to this problem. When I import the
file using Properties>Java Build Path>Libraries>Add External Class Folder... while the
file is in a folder structure ostrich\Ostrich\Ostrich.class I get the same problem.