Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (29 sloc) 0.845 kb
fd9b3cbe »
2002-12-16 Release v0.8.0
1 #!/bin/sh
6e53c691 »
2000-06-18 Reorganize docs and root directory
2 #
3 # Sample shell script for running Q2Java using an older Blackdown JVM
4 #
fd9b3cbe »
2002-12-16 Release v0.8.0
5
6 JAVA_HOME="/usr/local/java/jdk117_v1a"
7 QUAKE2_HOME="/usr/local/games/quake2"
8 #QUAKE2_PARAMS="+set vid_ref softx"
9
10 # Preload JVM DLL, call quake2 next.
11 #
12 # Quake2 is linked against libdl.so,
13 # but not linked against libjava.so.
14 #
15 # It does use dlopen("gamei386.so"),
16 # and gamei386.so is linked
17 # against libjava.so.
18 #
19 # gamei386.so does invocation
20 # of a JVM, Quake2 is not Java aware.
21 #
22 # Without the preload, this fails
23 # on every RH 5.x and Debian 2.x tried so far.
24
25
26 LD_PRELOAD="libjava.so"
27 export LD_PRELOAD
28
29 LD_LIBRARY_PATH=$JAVA_HOME"/lib/i386/native_threads"
30 export LD_LIBRARY_PATH
31
32 Q2JAVA_CLASSPATH=$JAVA_HOME"/lib/classes.zip:"$QUAKE2_HOME"/q2java/classes"
33 export Q2JAVA_CLASSPATH
34
35 cd $QUAKE2_HOME
36 ./quake2 +set game q2java $QUAKE2_PARAMS $@
Something went wrong with that request. Please try again.