1
的Mac OS X 10.7
無法解析類java.nio.file.FileSystems
[我@空氣]>的/ usr /的libexec/JAVA_HOME -v 1.7
/Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home
export JAVA_HOME="/usr/libexec/java_home -v 1.7"
[我@空氣] >
/Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/bin/java
我想它的Java使用Java NIO 1.7的服務之一,我有以下幾點:
grails> run-app
...
| Error Compilation error: startup failed:
/path/to/Acquiring.groovy: 7: unable to resolve class java.nio.file.FileSystems
@ line 7, column 1.
import java.nio.file.FileSystems
^
/path/to/Acquiring.groovy: 8: unable to resolve class java.nio.file.Path
@ line 8, column 1.
import java.nio.file.Path
^
2 errors
| Error Error running script run-app : org.codehaus.groovy.grails.cli.ScriptExitException (Use --stacktrace to see the full trace)
真是個地獄!
$ JAVA_HOME預先設置了'export JAVA_HOME =「/ usr/libexec/java_home -v 1.7」' – Alex 2013-03-03 22:41:32