You are not logged in.

#1 2010-10-16 16:39:51

dglmoore
Member
Registered: 2010-10-16
Posts: 11

Run Java binaries like Mono binaries

I know that you can register mono with the kernel to interpret mono binaries. Is there any way to do that with java? I love java, but I find having to type java before commands to be annoying. Any ideas?

Thanks.
D. Moore

Offline

#2 2010-10-16 21:21:35

kfgz
Member
From: Supraśl, Poland
Registered: 2009-03-02
Posts: 114

Re: Run Java binaries like Mono binaries

Probably you will not be satisfied with this solution http://aur.archlinux.org/packages.php?ID=1638

Offline

#3 2010-10-16 21:31:06

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Run Java binaries like Mono binaries

I think the most used approach is to use a shell script to start the jvm.

Offline

#4 2010-10-16 21:35:18

dglmoore
Member
Registered: 2010-10-16
Posts: 11

Re: Run Java binaries like Mono binaries

kfgz, that seems like a viable solution, but not quite what I was hoping for. I will probably look into it some more. Thanks.

Ramses de Norre, you wouldn't have an example of such a shell script so I know exactly what you mean, do you?

D. Moore

Offline

#5 2010-10-16 22:01:48

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Run Java binaries like Mono binaries

Uhm, quite simple:

#!/bin/sh
/usr/bin/java -jar /usr/share/yourApp/yourApp.jar

Just make sure to properly build the jar file (give it a manifest.mf file that contains the reference to the MainClass).

Offline

#6 2010-10-17 15:00:21

dglmoore
Member
Registered: 2010-10-16
Posts: 11

Re: Run Java binaries like Mono binaries

Well, thanks. If anyone else has suggestions, ideas or alternatives, please post.

Offline

#7 2010-10-18 01:20:42

HashBox
Member
Registered: 2009-01-22
Posts: 271

Re: Run Java binaries like Mono binaries

Just found this quickly, looks like what you're after, http://wiki.archlinux.org/index.php/Bin … c_for_Java

Offline

#8 2010-10-18 02:37:46

dglmoore
Member
Registered: 2010-10-16
Posts: 11

Re: Run Java binaries like Mono binaries

HashBox, I've been looking for something exactly like that for years.

Thanks; I appreciate it.

D. Moore

Offline

Board footer

Powered by FluxBB