6
respostas

eclipse não acha as lib

bom ao importar o projeto no eclipse ele ja mostra erro no projeto e diz que não acha varias variaveis, esta é a mensagem

Description    Resource    Path    Location    Type
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/aopalliance/aopalliance/jars/aopalliance-1.0.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/cglib/cglib-nodep/jars/cglib-nodep-2.1_3.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.7.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-1.1.7.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.fasterxml.jackson.core/jackson-annotations/bundles/jackson-annotations-2.7.8.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.fasterxml.jackson.core/jackson-core/bundles/jackson-core-2.7.8.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.fasterxml.jackson.core/jackson-databind/bundles/jackson-databind-2.7.8.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.fasterxml.jackson.datatype/jackson-datatype-jdk8/bundles/jackson-datatype-jdk8-2.7.8.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.fasterxml.jackson.datatype/jackson-datatype-jsr310/bundles/jackson-datatype-jsr310-2.7.8.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.fasterxml/classmate/bundles/classmate-1.1.0.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.google.code.findbugs/jsr305/jars/jsr305-3.0.1.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.google.code.gson/gson/jars/gson-2.3.1.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.google.guava/guava/bundles/guava-19.0.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.google.inject.extensions/guice-assistedinject/jars/guice-assistedinject-4.0.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.google.inject/guice/jars/guice-4.0.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.googlecode.usc/jdbcdslog/jars/jdbcdslog-1.0.6.2.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.h2database/h2/jars/h2-1.4.192.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.jolbox/bonecp/bundles/bonecp-0.8.0.RELEASE.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.novocode/junit-interface/jars/junit-interface-0.11.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.akka/akka-actor_2.11/jars/akka-actor_2.11-2.4.12.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.akka/akka-slf4j_2.11/jars/akka-slf4j_2.11-2.4.12.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.akka/akka-stream_2.11/jars/akka-stream_2.11-2.4.12.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.netty/netty-reactive-streams-http/jars/netty-reactive-streams-http-1.0.8.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.netty/netty-reactive-streams/jars/netty-reactive-streams-1.0.8.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/build-link/jars/build-link-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play_2.11/jars/play_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-cache_2.11/jars/play-cache_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-datacommons_2.11/jars/play-datacommons_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-enhancer/jars/play-enhancer-1.1.0.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-exceptions/jars/play-exceptions-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-functional_2.11/jars/play-functional_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-iteratees_2.11/jars/play-iteratees_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-java_2.11/jars/play-java_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-java-jdbc_2.11/jars/play-java-jdbc_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-java-ws_2.11/jars/play-java-ws_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-jdbc_2.11/jars/play-jdbc_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-jdbc-api_2.11/jars/play-jdbc-api_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-json_2.11/jars/play-json_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-logback_2.11/jars/play-logback_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-netty-server_2.11/jars/play-netty-server_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-netty-utils/jars/play-netty-utils-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-server_2.11/jars/play-server_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-streams_2.11/jars/play-streams_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-test_2.11/jars/play-test_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/play-ws_2.11/jars/play-ws_2.11-2.5.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe.play/twirl-api_2.11/jars/twirl-api_2.11-1.1.1.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe/config/bundles/config-1.3.0.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.typesafe/ssl-config-core_2.11/bundles/ssl-config-core_2.11-0.2.1.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/com.zaxxer/HikariCP/bundles/HikariCP-2.5.1.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/commons-io/commons-io/jars/commons-io-2.4.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.2.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/io.netty/netty-buffer/jars/netty-buffer-4.0.41.Final.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/io.netty/netty-codec-http/jars/netty-codec-http-4.0.41.Final.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/io.netty/netty-codec/jars/netty-codec-4.0.41.Final.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/io.netty/netty-common/jars/netty-common-4.0.41.Final.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/io.netty/netty-handler/jars/netty-handler-4.0.41.Final.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/io.netty/netty-transport-native-epoll/jars/netty-transport-native-epoll-4.0.41.Final-linux-x86_64.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/io.netty/netty-transport/jars/netty-transport-4.0.41.Final.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/io.netty/netty/bundles/netty-3.5.2.Final.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/javax.el/javax.el-api/jars/javax.el-api-3.0.0.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/javax.inject/javax.inject/jars/javax.inject-1.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/javax.transaction/jta/jars/jta-1.1.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/javax.validation/validation-api/jars/validation-api-1.1.0.Final.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.9.6.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/junit/junit/jars/junit-4.12.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/net.java.dev.jna/jna-platform/jars/jna-platform-4.1.0.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/net.java.dev.jna/jna/jars/jna-4.1.0.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/net.jodah/typetools/bundles/typetools-0.4.4.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/net.sf.ehcache/ehcache-core/jars/ehcache-core-2.6.11.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/net.sourceforge.cssparser/cssparser/jars/cssparser-0.9.18.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/net.sourceforge.htmlunit/htmlunit-core-js/jars/htmlunit-core-js-2.17.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/net.sourceforge.htmlunit/htmlunit/jars/htmlunit-2.20.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/net.sourceforge.nekohtml/nekohtml/jars/nekohtml-1.9.22.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/oauth.signpost/signpost-commonshttp4/jars/signpost-commonshttp4-1.2.1.2.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/oauth.signpost/signpost-core/jars/signpost-core-1.2.1.2.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.apache.commons/commons-exec/jars/commons-exec-1.3.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.apache.commons/commons-lang3/jars/commons-lang3-3.4.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.apache.httpcomponents/httpclient/jars/httpclient-4.5.2.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.apache.httpcomponents/httpcore/jars/httpcore-4.4.4.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.apache.httpcomponents/httpmime/jars/httpmime-4.5.2.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.apache.tomcat/tomcat-servlet-api/jars/tomcat-servlet-api-8.0.33.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.asynchttpclient/async-http-client/jars/async-http-client-2.0.11.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.asynchttpclient/netty-codec-dns/jars/netty-codec-dns-2.0.11.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.asynchttpclient/netty-resolver-dns/jars/netty-resolver-dns-2.0.11.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.asynchttpclient/netty-resolver/jars/netty-resolver-2.0.11.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.eclipse.jetty.websocket/websocket-api/jars/websocket-api-9.2.15.v20160210.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.eclipse.jetty.websocket/websocket-client/jars/websocket-client-9.2.15.v20160210.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.eclipse.jetty.websocket/websocket-common/jars/websocket-common-9.2.15.v20160210.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.eclipse.jetty/jetty-io/jars/jetty-io-9.2.15.v20160210.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.eclipse.jetty/jetty-util/jars/jetty-util-9.2.15.v20160210.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.fluentlenium/fluentlenium-core/jars/fluentlenium-core-0.10.9.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.hamcrest/hamcrest-core/jars/hamcrest-core-1.3.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.hibernate/hibernate-validator/jars/hibernate-validator-5.2.4.Final.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.javassist/javassist/bundles/javassist-3.20.0-GA.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.jboss.logging/jboss-logging/jars/jboss-logging-3.2.1.Final.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-1.8.1.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.reactivestreams/reactive-streams/jars/reactive-streams-1.0.0.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.reflections/reflections/jars/reflections-0.9.10.jar'    produtos-api        Build path    Build Path Problem
Project 'produtos-api' is missing required library: '/root/.ivy2/cache/org.scala-lang.modules/scala-java8-compat_2.11/bundles/scala-java8-compat_2.11-0.7.0.jar'    produtos-api        Build path    Build Path Problem
6 respostas

Quando acontece isso, o melhor para fazer uma tentativa rápida é usar o console do play, dar um clean e gerar os arquivos do eclipse de novo.

Silva, conseguiu dar seguimento ao curso?

Da primeira vez que você importa o projeto no Eclipse, ele pode abrir com alguns erros mesmo e levar alguns segundos para indexar as dependências e normalizar tudo.

Caso não normalize, o procedimento a seguir é esse:

  1. Abrir o console interno do Activator com $ ./activator (ou, se já estiver aberto, atualizar os dados do projeto executando nele reload e update, nesta ordem)
  2. Limpar o projeto com clean
  3. Re-gerar os arquivos do Eclipse com eclipse
  4. No Eclipse, atualizar o projeto (selecionando o nome do projeto na janela de projetos e apertando F5 ou clicando com o botão direito no nome do projeto e selecionando a ação Refresh)

Isso deve te ajudar, mas se ainda tiver problemas volte aqui que resolvemos seu caso individualmente!

marco , ainda nao consegui a qui ja dei estes comandos mas de uma vez , depois dei f5 no projeto e ele continua não achando exatamente esta parte do codigo

views.html.index

Silva, você consegue me dizer o passo a passo do que fez até agora? Tudo bem se não lembrar, foi uma falha nossa demorar tanto aqui. Se puder, também, pode copiar e colar todo o código do erro aqui, não só o nome da classe em que ele ocorre?

Pelo visto o problema mudou e agora ele não encontra a view index, mas as bibliotecas o Eclipse conseguiu importar.

Vamos resolver isso pra você!

marco eu segui exatamente os passo que vc falou no comentario anterior , e o problema é so ele não encontrar a view mesmo, estou usando eclipse neon 2

Silva, se o projeto estiver compilando corretamente e você seguiu todos os passos, o eclipse deveria encontrar a view sem problemas.

O seu console do activator está aberto? Você rodou ao menos uma vez o comando compile ou deixou rodando o comando ~ run? Depois de fazer isso, dê um F5 no projeto no eclipse.

Se nenhum desses comandos funcionou, olhe o registro no seu terminal. Deve haver um erro de compilação ou algo do gênero, na sua view. Aí, o eclipse não vai reconhecer porque o .class não foi gerado. Pode conferir? E se tiver um erro e você não souber solucioná-lo imediatamente, posta aqui a mensagem de erro inteira =)

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software