Java – will Add the class file to your eclipse project

This is a new question, but I can't understand it, so I think I'll ask it here to see what happened

The problem here: for my java programming class, we should download a custom class containing the methods we should use in allocation. Our teacher created one Class file I already know all the code to create a class in my actual program, but I'm not sure it will In which directory is the class file placed I've tried the SRC and bin folders in the project directory, and even put it directly into the project directory, but it doesn't seem to work My teachers said they just put it in the same directory as my java program, but they used jgrasp What on earth did I do wrong?

Solution

You can put the class file anywhere, just make sure to add its directory to the project's build path Right click the project, then the properties at the bottom, and then build the path until you find the add class folder

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>