cygwin和java [英] cygwin and java
本文介绍了cygwin和java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
推荐答案
我建议您查看 catalina .sh 。这个shell脚本在unix和cygwin环境下启动java。目前,OpenJDK不是Cygwin安装程序的一部分,运行Java的人使用Sun生成MS可执行文件。这意味着路径必须转换为Windows,并且当Java运行时将与从批处理文件启动相同。
I'd suggest taking a look at catalina.sh. This shell script launches java under both unix and cygwin environments. Currently, OpenJDK is not part of the Cygwin installer, and people running Java use a Sun build MS executable. This means the paths must be converted to Windows, and when Java is running it will be the same as if it were launched from a batch file.
特定地,catalina.sh使用 cygpath
程序更改这些路径:
Specifcally, catalina.sh changes these paths using the cygpath
program:
case "`uname`" in
CYGWIN*) cygwin=true;;
esac
if $cygwin; then
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
JRE_HOME=`cygpath --absolute --windows "$JRE_HOME"`
CATALINA_HOME=`cygpath --absolute --windows "$CATALINA_HOME"`
CATALINA_BASE=`cygpath --absolute --windows "$CATALINA_BASE"`
CATALINA_TMPDIR=`cygpath --absolute --windows "$CATALINA_TMPDIR"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
[ -n "$JSSE_HOME" ] && JSSE_HOME=`cygpath --absolute --windows "$JSSE_HOME"`
JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
fi
这篇关于cygwin和java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文