Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

loading a java project

Tags:

java

ide

I am currently studying at university and based on other peoples recommendations I am beginnning to read other peoples code.

i have found and downloaded the source for an open source java project, that seems quite interesting. I want to load this project into an IDE (netbeans or eclipse), so as to make it easier to read and navigate. However both IDE's say that the project is not recognised. It is not only this project, but any project I have attempted to load.

How do I load a project (ie. a file structure of source files) into the above IDE's as a project.

Thanks in advance, Sam

like image 808
smauel Avatar asked Feb 11 '26 08:02

smauel


1 Answers

In Eclipse, select File, New, Java Project, give the project a name and then select Create Project from Existing Source. You should then select the src folder that contains the code that you'd like to use.

Eclipse should then create a new project containing the source. To change the project settings e.g. source folders/external jars, right click on the project in the Package Explorer and select Properties, Java Build Path, Source and make any appropriate changes.

like image 54
pjp Avatar answered Feb 12 '26 23:02

pjp