Create a Java Eclipse Project Using a Java Program

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

My questions:

  • Is there any way to do this? And How? (API).

  • Can I also create a Net-beans project?

Yours faithfully,

Florent

+3
source share
4 answers

First create a Java project in Eclipse. Then look into the created directory. You should find two files there: .project and .classpath. These are the files that you must create in your application in order to get what you want.

+3
source

Maven , , Java-.

Java . , Maven, NetBeans, Eclipse IntelliJ IDEA. , Maven IDE.

+5

M2Eclipse eclipse Maven Eclipse IDE. http://m2eclipse.sonatype.org/

+1

Maven - , Eclipse:

  • Ctrl + N Java
  • ( )
  • ""
  • Run/Debug, .

.

, Maven, - , Eclipse - IDE. , / . Maven - IDE , , .

, Eclipse Maven :

  • Eclipse Helios
  • m2eclipse | Eclipse Marketplace
  • eclipse.ini Eclipse JDK.
  • m2eclipse Maven
  • Ctrl + N Maven
  • , Maven . (, src/main/java)
  • / maven /

, . , Java 5+, pom . Eclipse , Maven.

Netbeans Maven, , IMO Eclipse - IDE .

+1

Source: https://habr.com/ru/post/1761078/


All Articles