Thread 'Run Java Application with Boinc on Linux Host?'

Message boards : API : Run Java Application with Boinc on Linux Host?
Message board moderation

To post messages, you must log in.

AuthorMessage
Wei Hao

Send message
Joined: 13 Dec 13
Posts: 21
United States
Message 52616 - Posted: 17 Feb 2014, 22:19:20 UTC

Hi Guys,

This question is related to my previous question, http://boinc.berkeley.edu/dev/forum_thread.php?id=8929&postid=52611

On the official Wiki Site, I found some information on how to run a java app with BOINC, i.e. a simple wrapper approach without using BOINC api

But on that web page, I found that there is a line saying that "(for windows hosts only, because of jsmooth)". Does that imply that we can not run java application with Boinc on Linux Host?

Thanks,
ID: 52616 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15556
Netherlands
Message 52617 - Posted: 17 Feb 2014, 22:39:29 UTC - in response to Message 52616.  

Unless you manage to develop an application that can do that by yourself, yes, that's what it means.
ID: 52617 · Report as offensive
Wei Hao

Send message
Joined: 13 Dec 13
Posts: 21
United States
Message 52629 - Posted: 18 Feb 2014, 14:39:17 UTC - in response to Message 52617.  

This is a little disappointing though.

Thanks for the reply anyway.
ID: 52629 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 52646 - Posted: 18 Feb 2014, 20:20:55 UTC - in response to Message 52629.  

Does the Linux hosts have Java already installed? If yes, you shouldn't need that JSmooth. Just run the h2g.sh script like any other application.

BOINC doesn't detect JREs so this of course only works if you know in advance the hosts that will connect to your project and can make sure they have Java installed.
ID: 52646 · Report as offensive
Wei Hao

Send message
Joined: 13 Dec 13
Posts: 21
United States
Message 52647 - Posted: 18 Feb 2014, 20:51:46 UTC - in response to Message 52646.  

Thanks for the reply.

Yes. But do you know how to configure the application so that the downloader know which files and directories to be downloaded to the host machine? Since the application needs several dynamic linked libraries, as listed in,
https://boinc.berkeley.edu/dev/forum_thread.php?id=8929

This is a typical instance for adaptation of current and legacy scientific applications to boinc. Is it possible that you provide an real world example rather than the simply text processing application such as uppercase? I think that could be very helpful.

Thanks,
ID: 52647 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 52650 - Posted: 18 Feb 2014, 21:26:32 UTC - in response to Message 52647.  

Well, I have say I don't know. Never done that before.

The BOINC wrapper looks promising. Make a zip file of the libraries, tell wrapper to unzip it and then run h2g.sh as a task.

If the wrapper doesn't like that the zip file is part of the application and not an input file for the task you could have two task. The first unzips the libraries (you could even go with a simple "/usr/bin/unzip libs.zip") and then the second task is h2g.sh.

I think I've seen people asking about wrapper in boinc_projects mailing list and how deliver application files that need to be in a directory tree. The list might be a better source of tips. I think this forum is frequented by a grand total of one project administrator.

The File compression tells to contact Carl Christensen for questions about boinc_zip.
ID: 52650 · Report as offensive

Message boards : API : Run Java Application with Boinc on Linux Host?

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.