Java applications for any java enabled patform

Message boards : API : Java applications for any java enabled patform
Message board moderation

To post messages, you must log in.

AuthorMessage
Ricky

Send message
Joined: 23 Jul 08
Posts: 1
Message 18786 - Posted: 23 Jul 2008, 19:10:30 UTC
Last modified: 23 Jul 2008, 19:11:01 UTC

Hi,

as I'm a java-programmer, I'm searching for an easy way to create boinc enabled applications with java.

G**gle showed up the wrapper in combination with jsmooth, but this works only for windows.

Is there any native java-api or another trick, to create a project with a java application? (assuming, the correct java version is installed on every client machine?)
Every java app, will be bundled as complete .jar file including all required libs, so the app-start would be:
java -jar worker.jar [-some options] [infile] [outfile]

I searched the www for a day now and didn't find any solution.

Some help would be great!
ID: 18786 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 18816 - Posted: 24 Jul 2008, 22:33:29 UTC
Last modified: 24 Jul 2008, 22:37:03 UTC

The wrapper can basically start anything that you can run from a command line. It will communicate with the BOINC core client through the API functions and it can communicate with your application through functions you have to design.

In the most trivial case, this can be a simple file interface, e.g. :

The wrapper reads the progress from a file, written by your project application

The wrapper creates a file that makes the project go to sleep and wait for that file to disappear (while other projects get their CPU time share or the user wants BOINC to sleep)


You could of course implement TCP socket, named pipe, shared memory or whatever communication between wrapper and scientific program as well.


The file interface method even allows to wrap programs that do not know anything about BOINC at all.


p.s.: If you plan to integrate the BOINC API into your program, a JNI wrapper for the API might be an option.

The SZTAKI guys seem to have explored that stuff : PPT-Presentation
ID: 18816 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15477
Netherlands
Message 18821 - Posted: 25 Jul 2008, 0:49:49 UTC

I sent it off to the BOINC_Projects email list and got this answer from Eric J. Korpela:

About all we have now is BOINC for Android (google search on BOINCoid), which requires some changes to work with a standard JRE. Implementing a check for java and a benchmark is on my list of "if I had infinite time" things.

Eric

ID: 18821 · Report as offensive

Message boards : API : Java applications for any java enabled patform

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.