How do I use a Java .class file in Eclipse? -


I have a homework assignment for which we need to use the function in the .class file provided. I am trying to add it to eclipse, but I have no luck.

The .class file is not part of the package, and I am not submitting it with my .java files, this means that I can not change the directory of the .class file, it will not have all of my .java files Should be in the same directory as well. I do not think I can add an external class folder with these requirements, adding the file to any .jar is also out of the question.

How do I get my Java code to identify methods in the .class file?

You have to add the class folder where your class file is located. Project properties to do this - & gt; Java Build Path - & gt; Add class folder

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -