Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Eclipse java project with a java programm

I would like to generate Eclipse Java Project with my Java program. When I click a button: it will generate an eclipse project with the parameters I specified (source path, library, ...)

My questions are:

  • is there a way to do that ? and how ? (api).

  • it is possible to generate Net-beans project too ?

Best regards,

Florent

like image 863
Delildor Avatar asked Sep 20 '26 12:09

Delildor


2 Answers

Maven enables this and many more things around creating, bulding, testing and developing Java projects.

Create a Java project from command line. Then, using Maven create NetBeans, Eclipse or IntelliJ IDEA specific project files. Or even easier, just import already created Maven project directly from these IDEs.

like image 65
Boris Pavlović Avatar answered Sep 22 '26 03:09

Boris Pavlović


Create Java Project in Eclipse first. Then look into directory created. You should find there two files: .project and .classpath. These are the files you should create in your app to get what you want.

like image 43
Piotr Maj Avatar answered Sep 22 '26 03:09

Piotr Maj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!