l********r 发帖数: 140 | 1 下了一个大的 java package, 但是只有unix下的安装script. 请问在 windows 下可以用
吗? 如何改写那个安装 script? 多谢了?
下面是在UNIX下用的script, how to change it so it can work under winodws?
================================
#!/bin/sh
echo
if [ "$JAVA_HOME" = "" ] ; then
echo "ERROR: JAVA_HOME not found in your environment."
echo
echo "Please, set the JAVA_HOME variable in your environment to match the"
echo "location of the Java Virtual Machine you want to use."
exit 1
fi
if [ `echo $OSTYPE | grep -n cygwin` ]; then
PS=";"
e | l********r 发帖数: 140 | 2 对了, 最后的那个:
$JAVA_HOME/bin/java -Dant.home=$ANT_HOME -classpath
$LOCALCLASSPATH${PS}$ADDITIONALCLASSPATH org.apache.tools.ant.Main $*
那个 $* 是什么意思?
用
【在 l********r 的大作中提到】 : 下了一个大的 java package, 但是只有unix下的安装script. 请问在 windows 下可以用 : 吗? 如何改写那个安装 script? 多谢了? : 下面是在UNIX下用的script, how to change it so it can work under winodws? : ================================ : #!/bin/sh : echo : if [ "$JAVA_HOME" = "" ] ; then : echo "ERROR: JAVA_HOME not found in your environment." : echo : echo "Please, set the JAVA_HOME variable in your environment to match the"
| c**g 发帖数: 274 | 3 Since JVM must use native methods, JDK should be operating system
based. Go download jdk for windows from sun.
【在 l********r 的大作中提到】 : 下了一个大的 java package, 但是只有unix下的安装script. 请问在 windows 下可以用 : 吗? 如何改写那个安装 script? 多谢了? : 下面是在UNIX下用的script, how to change it so it can work under winodws? : ================================ : #!/bin/sh : echo : if [ "$JAVA_HOME" = "" ] ; then : echo "ERROR: JAVA_HOME not found in your environment." : echo : echo "Please, set the JAVA_HOME variable in your environment to match the"
|
|