mirror of https://github.com/BOINC/boinc.git
Added stuff and knowhow for running java applications on linux clients
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1073 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
parent
c8a08ab33a
commit
4ff2773a6d
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Script to launch java applications in a BOINC environment
|
||||
#
|
||||
|
||||
set +v
|
||||
|
||||
file=`sed -n '/^<soft_link>/ s/<[^>]*>//gp' libdc-jre.tar`
|
||||
|
||||
jar=`sed -n '/^<soft_link>/ s/<[^>]*>//gp' Uppercase.jar`
|
||||
|
||||
if
|
||||
[ ! -d jre ]
|
||||
then
|
||||
tar xzf $file
|
||||
fi
|
||||
|
||||
path=`pwd`
|
||||
|
||||
LD_LIBRARY_PATH=$path/lib
|
||||
export LD_LIBRARY_PATH
|
||||
|
||||
./jre/bin/java -jar $jar
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
javac uppercase.java
|
||||
|
||||
jar cmf manifest Uppercase.jar Uppercase.class hu
|
|
@ -0,0 +1 @@
|
|||
Main-Class: Uppercase
|
|
@ -0,0 +1,41 @@
|
|||
Guide for preparing Java Runtime Environment (JRE)
|
||||
for use in a BOINC infrastructure on Linux clients.
|
||||
---------------------------------------------------
|
||||
|
||||
1. Requirements
|
||||
---------------
|
||||
|
||||
i. JRE available at http://java.sun.com/javase/downloads/index.jsp
|
||||
|
||||
ii. DC-API for java (libdc-java-client-0.9.so, libdc-boinc-client.so)
|
||||
|
||||
2. Preparing
|
||||
------------
|
||||
|
||||
i. Extract the 'bin' and 'lib' directories from the JRE distribution.
|
||||
This can be done, by installing JRE on a machine and locating the
|
||||
necessary directories in the installation directory.
|
||||
Copy these two directories with all of their content to a directory
|
||||
called jre.
|
||||
|
||||
ii. Put the files of DC-API in a directory called lib
|
||||
|
||||
iii. Tar the contents of the above directories (jre, lib) in an archive
|
||||
called lidc-jre.tar
|
||||
eg.: tar czvf lidc-jre.tar jre lib
|
||||
|
||||
|
||||
3. Deploying a java application on a BOINC server
|
||||
-------------------------------------------------
|
||||
|
||||
i. The java application on BOINC consists of the following
|
||||
a. libdc-jre.tar - the jre prepared in part 2.
|
||||
b. application.jar - the java application to be run in BOINC
|
||||
c. launcher - script that untars jre and calls java with the
|
||||
jar of the application on the client computer
|
||||
|
||||
ii. Give execution rights to the launcher script only.
|
||||
|
||||
iii. Proceed with signing the files and installing them to the boinc server as usual...
|
||||
|
||||
|
Loading…
Reference in New Issue