Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I put a folder with java files into eclipse's package explorer

I have downloaded a folder with 15 to 20 .java files in it, I want to put this folder in eclipse's package explorer. How can I do so? I'm using eclipse indigo.

like image 350
gelloe Avatar asked Jul 02 '26 17:07

gelloe


1 Answers

Create a new project in Eclipse:

File > New > Java Project

This will create a project with a src folder. Then copy and paste the Java files into this directory via the file system. If the .java files are packaged you may need to create packages within the src folder.

Click the src Folder > File > New > Package
like image 91
Kevin Bowersox Avatar answered Jul 04 '26 09:07

Kevin Bowersox