操作系统 x 10.7
[me@air]> /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"
[me@air]> 哪个java
/Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/bin/java
我想在其中一项服务中使用 Java 1.7 NIO,我得到了以下信息:
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)
怎么回事!他妈的!?