[jruby-user] Desktop JRuby Application

23 views
Skip to first unread message

Cloudrck Tech

unread,
Apr 10, 2015, 12:15:53 AM4/10/15
to us...@jruby.codehaus.org
Since using the standard Ruby MRI seemed to be more trouble than it's
worth, I figured it should be easier to accomplish my task in JRuby.

I want to run it past some people what my goals are and what I intend to
use. I'm writing a simple application that is to run 24/7 on a
computer/server (Windows mainly, with OS X & Linux in the future), so I
assume this would have to be a windows service (*nix Daemon). It's
purpose is just to communicate periodically to an embedded device on the
local network. There will be a minimal GUI, with a notification/tray
icon. I need to be able to provide the software to clients without them
installing any external software/libraries.

My research yielded the following technologies.

JRuby

YAJSW OR JSW (Java Service Wrapper)

Warbler

Will all of these play together nicely? Is there anything I could change
to make it more fluid?

--
Posted via http://www.ruby-forum.com/.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Aristedes Maniatis

unread,
Apr 10, 2015, 12:25:38 AM4/10/15
to us...@jruby.codehaus.org
On 10/04/2015 2:15pm, Cloudrck Tech wrote:
> My research yielded the following technologies.
>
> JRuby
>
> YAJSW OR JSW (Java Service Wrapper)
>
> Warbler
>
> Will all of these play together nicely? Is there anything I could change
> to make it more fluid?

Warbler isn't much use to you unless you are deploying in a servlet container. But there are a bunch of wrappers to make it easier to run a jar as a Windows service.

http://stackoverflow.com/questions/15114674/run-jar-as-a-windows-service

No idea how you get a tray icon.

Ari


--
-------------------------->
Aristedes Maniatis
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001 fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A

Cloudrck Tech

unread,
Apr 10, 2015, 12:32:46 AM4/10/15
to us...@jruby.codehaus.org
Thanks for the reply. I figured out AWT allows you to tinker with tray
icons/applications.

Are you saying something like Rawr or Warbler is an overkill? I can just
use the built-in
(https://docs.oracle.com/javase/tutorial/deployment/jar/)

Thanks for the link, it looks like YAJSW OR JSW would be unneeded as
well?

Aristedes Maniatis wrote in post #1171847:
> On 10/04/2015 2:15pm, Cloudrck Tech wrote:
>> My research yielded the following technologies.
>>
>> JRuby
>>
>> YAJSW OR JSW (Java Service Wrapper)
>>
>> Warbler
>>
>> Will all of these play together nicely? Is there anything I could change
>> to make it more fluid?
>
> Warbler isn't much use to you unless you are deploying in a servlet
> container. But there are a bunch of wrappers to make it easier to run a
> jar as a Windows service.
>
> http://stackoverflow.com/questions/15114674/run-jar-as-a-windows-service
>
> No idea how you get a tray icon.
>
> Ari
>
>
> --
> -------------------------->
> Aristedes Maniatis
> ish
> http://www.ish.com.au
> Level 1, 30 Wilson Street Newtown 2042 Australia
> phone +61 2 9550 5001 fax +61 2 9550 4001
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A

James Britt

unread,
Apr 11, 2015, 11:16:58 AM4/11/15
to us...@jruby.codehaus.org
Cloudrck Tech wrote:
> Since using the standard Ruby MRI seemed to be more trouble than it's
> worth, I figured it should be easier to accomplish my task in JRuby.
>
> I want to run it past some people what my goals are and what I intend to
> use. I'm writing a simple application that is to run 24/7 on a
> computer/server (Windows mainly, with OS X & Linux in the future), so I
> assume this would have to be a windows service (*nix Daemon). It's
> purpose is just to communicate periodically to an embedded device on the
> local network. There will be a minimal GUI, with a notification/tray
> icon. I need to be able to provide the software to clients without them
> installing any external software/libraries.
>
> My research yielded the following technologies.
>
> JRuby
>
> YAJSW OR JSW (Java Service Wrapper)
>
> Warbler
>
> Will all of these play together nicely? Is there anything I could change
> to make it more fluid?



Have you looked at Monkeybars?

https://github.com/monkeybars/monkeybars-core

It's designed to make JRuby GUI app development easy yet powerful.

JotBot was written with Monkeybars. It was a commercial product that
never sold well enough to keep maintaining. I eventually open-sourced it.

https://github.com/Neurogami/JotBot

It's a time-tracking tool that runs in the background, popping up at set
intervals to prompt the use to enter notes on what they are doing.

It has a tray icon to allow you to control/configure it when it is not
visible.

I used Rawr to package up all the required files (except for the JRE)
for easy distribution and installation in one file.

Rawr created the executable jar, and packaged up all required libraries
into a single .exe installer.

https://github.com/rawr/rawr


James Britt

(maintainer of Rawr and Monkeybars)


--

Neurogami - Avant-garage Research & Development

http://www.neurogami.com

ja...@neurogami.com

Tobias Pfeiffer

unread,
Apr 20, 2015, 4:07:05 PM4/20/15
to us...@jruby.codehaus.org
Ha, I seem to have missed my key word! :)

You can check out shoes4 - we are in pre3 but building little nice gui
apps works quite easily - if you don't mind the occasional bug ;)
https://github.com/shoes/shoes4

shoes4 supports packaging as well - we use warbler under the hood. You
can check out our packaging code in either shoes-package (within shoes4)
or shoes/furoshiki. Packaging is still very alpha, though. There are a
couple of known issues around assets/package size - feel free to check
out the issues.

Help always welcome :)

Cheers,
Tobi
www.pragtob.info


signature.asc

James Britt

unread,
Apr 22, 2015, 2:58:07 PM4/22/15
to us...@jruby.codehaus.org
Cloudrck Tech wrote:
> Thanks for the reply. I figured out AWT allows you to tinker with tray
> icons/applications.
>
> Are you saying something like Rawr or Warbler is an overkill? I can just
> use the built-in
> (https://docs.oracle.com/javase/tutorial/deployment/jar/)

Rawr builds that jar for you, and will build an installer for you if you
like.


James Britt
--

Neurogami - Avant-garage Research & Development

http://www.neurogami.com

ja...@neurogami.com






Cloudrck Tech

unread,
Apr 29, 2015, 4:59:57 PM4/29/15
to us...@jruby.codehaus.org
Thanks for the information, this is what I was looking for, I'll
definitely look into it.

James Britt wrote in post #1171918:
> Have you looked at Monkeybars?
> It's designed to make JRuby GUI app development easy yet powerful.
>
> JotBot was written with Monkeybars. It was a commercial product that
> never sold well enough to keep maintaining. I eventually open-sourced
> it.
> It's a time-tracking tool that runs in the background, popping up at set
> intervals to prompt the use to enter notes on what they are doing.
>
> It has a tray icon to allow you to control/configure it when it is not
> visible.
>
> I used Rawr to package up all the required files (except for the JRE)
> for easy distribution and installation in one file.
>
> Rawr created the executable jar, and packaged up all required libraries
> into a single .exe installer.

Sven S.

unread,
May 4, 2015, 1:52:14 AM5/4/15
to us...@jruby.codehaus.org
Hey, Monkeybars is alive again/still !!
Good to hear!

About six years ago I had started using it,
but after a while I got the impression
that Monkeybars was being abandoned.

Thanks
Sven

James Britt

unread,
May 4, 2015, 11:32:10 AM5/4/15
to us...@jruby.codehaus.org
Sven S. wrote:
> Hey, Monkeybars is alive again/still !!
> Good to hear!
>
> About six years ago I had started using it,
> but after a while I got the impression
> that Monkeybars was being abandoned.

It does what it's supposed to. I only update it if changes in Java or
JRuby break something in Monkeybars or Rawr. Or if someone finds a bug.

There aren't any more features I want to add.


James

--

Neurogami - Avant-garage Research & Development

http://www.neurogami.com

ja...@neurogami.com





Reply all
Reply to author
Forward
0 new messages