#!/bin/bash HOSTNAME="localhost" # hostname of sources APPDIR=`pwd`/permuzzle # installation directory TEMPDIR=`mktemp -d` # make a temprary directory cd $TEMPDIR # change to the temprary directory wget $HOSTNAME/permuzzle/sources.zip # download "sources.zip" unzip sources.zip # extract "sources.zip" rm sources.zip # delete "sources.zip" gedit makefile # edit "makefile" make # compile sources mkdir $APPDIR # make the target directory cp permuzzle.jar $APPDIR # copy "permuzzle.jar" cd $APPDIR # change to the target directory rm -r $TEMPDIR # delete the temporary direcory wget $HOSTNAME/permuzzle/images.zip # download "images.zip"Before "make", modify "makefile" if necessary
ODIR = .# class file directory SDIR = ./permuzzle.java# source root JDK_PATH=/opt/jdk-19.0.2/bin JOGLDIR=/opt/jogamp-all-platforms/jar
#!/bin/bash JAVADIR=/opt/jdk-19.0.2/bin #JAVA directory JOGLDIR=/opt/jogamp-all-platforms/jar #JOGL directory APPDIR=$HOME/permuzzle #application directory cd $APPDIR #change current directory if [ -d jar ]; then #check if a symbolic link to JOGL already exists : else ln -s $JOGLDIR $APPDIR #create a symbolic link to JOGL fi $JAVADIR/java -jar permuzzle.jar #Run jvm(absolute path required for Gnome launcher).
set JOGLDIR=C:\Users\user\jogamp-all-platforms\jar set APPDIR=C:\Users\user\permuzzle set JAVADIR=C:\program" "files\java\jre-1.8\bin cd %APPDIR% %JAVADIR%\java ^ -cp permuzzle.jar;%JOGLDIR%\gluegen-rt.jar;%JOGLDIR%\jogl-all.jar ^ jzzz.CStart
set JOGLDIR=C:\Users\user\jogamp-all-platforms\jar set APPDIR=C:\Users\user\permuzzle set JAVADIR=C:\program" "files\java\jdk-19.0.2\bin cd %APPDIR% %JAVADIR%\java --add-exports java.base/java.lang=ALL-UNNAMED ^ --add-exports java.desktop/sun.awt=ALL-UNNAMED ^ --add-exports java.desktop/sun.java2d=ALL-UNNAMED ^ -cp permuzzle.jar;%JOGLDIR%\gluegen-rt.jar;%JOGLDIR%\jogl-all.jar ^ jzzz.CStart