简体   繁体   中英

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

:)

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

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM