A
A
Anton @ Lyalin2016-11-26 19:12:48
Java
Anton @ Lyalin, 2016-11-26 19:12:48

How to import a class connected via maven????

Connected the repository via maven

<dependencies>
        <dependency>
            <groupId>org.apache.opennlp</groupId>
            <artifactId>opennlp-tools</artifactId>
            <version>1.6.0</version>
        </dependency>
    </dependencies>

But it is not possible to import the class. How to do it??? I do it like this...import static org.apache.opennlp.*;
280f7369da2042c0bbfe1e13b52eac17.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton @ Lyalin, 2016-11-27
@toxa_1995

I solved the problem, you need to create an instance of the class so that the import occurs ... On the contrary, it does not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question