我遇到了以下错误:
Groovy script throws an exception of type class
java.util.regex.PatternSyntaxException with message =
Unexpected internal error near index 1
\
^
从Split语句如下:
String strClassPath = System.getProperty("java.class.path");
String[] path = strClassPath.split(System.getProperty("file.separator"));
我应该如何使这个程序在UNIX和Windows系统上都能正确运行(这就是我使用"file.separator"的原因)。
提前感谢您的帮助。