1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/japanese/vje30/files/patch-aa
Akinori MUSHA 7afb8abffa Add support for out native JDK 1.2.
Submitted by:	Daichi T.GOTO <daichi@ongs.net>
2000-07-05 03:36:26 +00:00

26 lines
831 B
Plaintext

--- vje30/bin/vjeacc.orig Tue Dec 28 03:00:00 1999
+++ vje30/bin/vjeacc Wed Jul 5 12:26:22 2000
@@ -23,10 +23,18 @@
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VJE_HOME/lib
if [ $SysName = FreeBSD ]; then
- echo "1.1.n JDK/JRE"
- export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/rt.jar:$JAVA_HOME/lib/i18n.jar
- export CLASSPATH=$CLASSPATH:$VJE_HOME/bin/vjeacc.jar:$VJE_HOME/bin/swingall.jar
- jre jp.co.vacs.gimlet.Main $1
+ javaVer=`java -version 2>&1 | grep version`
+ case $javaVer in
+ *1.2*)
+ echo "1.2.x JDK/JRE"
+ java -cp $VJE_HOME/bin/vjeacc.jar jp.co.vacs.gimlet.Main $1
+ ;;
+ *1.1*)
+ echo "1.1.x JDK/JRE"
+ export CLASSPATH=$JAVA_HOME/lib/classes.zip:$SWING_HOME/swingall.jar:$VJE_HOME/bin/vjeacc.jar
+ jre jp.co.vacs.gimlet.Main $1
+ ;;
+ esac
else
lddOut=/tmp/ldd.vout.10
java -version>/dev/null 2>$lddOut