You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
571 B
16 lines
571 B
:
|
|
|
|
#determine platform (32/64 bit)
|
|
>/tmp/platform.c
|
|
echo '#include <stdlib.h>'>>/tmp/platform.c
|
|
echo '#include <stdio.h>'>>/tmp/platform.c
|
|
echo 'main(){printf("ux%d", (int) (sizeof(void *)*8));}'>>/tmp/platform.c
|
|
cc /tmp/platform.c -o /tmp/platform
|
|
PLATFORM=`/tmp/platform`
|
|
rm /tmp/platform /tmp/platform.c >/dev/null 2>&1
|
|
|
|
# run the Demo.class file
|
|
java -cp .:../lib/lpsolve55j.jar -Djava.library.path=../lib/$PLATFORM Demo
|
|
|
|
# run the Demo.jar file
|
|
java -cp ./Demo.jar:../lib/lpsolve55j.jar -Djava.library.path=../lib/$PLATFORM Demo # -Djava.library.path=/usr/local/lib
|