Juan Reséndiz
Juan Reséndiz

Reputation: 97

how to solve a groovy/grails tool suite reference?

I've been working on my desktop computer which has openjdk 7.

When I copy a Grails project onto my laptop, which has Oracle's JDK v7, I'm having a problem with the classpath.

I've checked the classpath and everything seems fine.

Here's the text that GGTS shows:

The archive: /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar which is
referenced by the classpath, does not exist

I set the JAVA_HOME inside /etc/profile.

I installed gvm in order to make easier Groovy and Grails setup.

I hope you could help me

:)

Upvotes: 0

Views: 1552

Answers (2)

V H
V H

Reputation: 8587

I then went to the RUN menu option at the top and selected run configuration

It was on : Grails \ {Myproject} (run-app)

On the right for this run-app there is JRE options

under JRE ensure you have the same JRE defined as project in this case 1.6

Upvotes: 1

Andrew Eisenberg
Andrew Eisenberg

Reputation: 28737

I'm guessing that your JRE reference in your project is bad. Is your desktop windows and your laptop a mac or linux (or vice versa)?

Try these things:

  1. Does the /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar path exist on the broken system?
  2. Can you create other kinds of projects on the broken system?
  3. Can you create a new Grails project from scratch inside of the broken GGTS?
  4. What happens if you run Grails -> Refresh dependencies on the project?

Upvotes: 0

Related Questions