T
T
tostuser2015-09-29 14:51:04
Java
tostuser, 2015-09-29 14:51:04

How to import JAVA sources into Eclipse?

The main problem lies in the imports. If you simply add sources, then all imports that do not belong to the standard libraries become invalid. How to fix such things? Of course, do not offer to fix it manually, there are a million classes :)
Screenshot:39e3115e41f049c69d4537613f33fecb.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evhen, 2015-09-29
@tostuser

For this, there are Maven / Gradle

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.mmocore</groupId>
  <artifactId>authserver</artifactId>
  <version>0.0.1</version>

  <name>authserver</name>
</project>

Then right click on the project: Configure -> Convert to Maven Project

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question