I recently inherited a large software project written in Java. The last developer used Eclipse, so that’s what I’m using, but I can’t figure out how to build anything. I don’t see any build scripts, and when I open the project in Eclipse the “Build All” and “Build Project” options are greyed out.
The project is essentially a huge collection of packages that depend on one another. I know this has to be a simple question but I haven’t been able to find an answer through Googling or through just poking around on Eclipse. I’m very new to this IDE – I have worked with Visual Studio for most of my career. Any questions/suggestions would be very much appreciated.
File -> Export -> Export JAR File. Then select your project, press next twice, select the main class.
If you just want to run, open the main class and click the green arrow at the top.
If you just want to build class files, I believe that Eclipse automatically builds every time you save. You need to select Project -> Build Automatically