I have downloaded a JAVA FILE and I don't know how to import it in Eclipse.
If it's a plain Java file (.java), just put it somewhere inside the src
folder of your project. Also, you will have to change its package name, so if it says:
package com.some.package;
And you copy it to src/com/your/app
, then you have to change the package name to this:
package com.your.app;
By the way, there's no "Import Java file" option in Eclipse, don't waste time looking for an automatic way to do it.
The best way is take the file and drop it to the default workspace eclipse folder. Then open the eclipse and refresh the project
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With