maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Instant Coffee - Packaging Java Applications for Fremantle (https://talk.maemo.org/showthread.php?t=51871)

Wonko 2010-05-04 19:07

Instant Coffee - Packaging Java Applications for Fremantle
 
Hi,

I started to package some Java applications to put these up in the repository.
The idea is to write scripts which allow the easy and reproducible creation of *.deb files for upload to the repository.
The scripts are available at https://garage.maemo.org/projects/instant-coffee/

So far I uploaded the Cambridge Software Labs version of the OpenJDK to extras-devel non-free (package name icedtea6) and Ant to extras-devel.
Reason for calling the OpenJDK version "icedtea6" is that the output of "java -version" reports it as "icedtea6".

I hope that everything is correct so far.
Especially licensing issues are not that easy to grasp.

Every feedback/support is highly appreciated.


Best regards

Wonko

Wonko 2010-05-04 20:58

Re: Instant Coffee - Packaging Java Applications for Fremantle
 
Added jline and clojure to extras-devel.

atnnn 2010-05-04 21:45

Re: Instant Coffee - Packaging Java Applications for Fremantle
 
That's a great initiative, thanks.

Did you upload the binaries from the website or were you able to get the source and recompile it?

Specifically, it would be great to compile the browser plugin with a compatible version of libc++.

smoku 2010-05-04 22:02

Re: Instant Coffee - Packaging Java Applications for Fremantle
 
Why OpenJDK and non-free?
Isn't Sun Java fully open now?

Wonko 2010-05-04 22:22

Re: Instant Coffee - Packaging Java Applications for Fremantle
 
Quote:

Originally Posted by atnnn (Post 643417)
That's a great initiative, thanks.

Did you upload the binaries from the website or were you able to get the source and recompile it?

Specifically, it would be great to compile the browser plugin with a compatible version of libc++.

I used the binaries from http://camswl.com

Quote:

Originally Posted by smoku
Why OpenJDK and non-free?
Isn't Sun Java fully open now?

I uploaded the JDK to non-free because only non-free allows to upload *.deb files directly.
I built all the packages using py2deb but for some reason the autobuilder did not like the package I set up for the JDK.
You can see the relevant build log here https://garage.maemo.org/builder/fre...log.FAILED.txt
As you can see in the control file I specified libpulse0 (>= 0.9.15~test5) as dependency but somehow the autobuilder did not pick up the .so file correctly.
Also specifying libpulse-dev did not help. So I decided to build the deb here in Scratchbox and go the way via non-free.

As for "really" compiling the whole thing from source: I simply don't have the time to figure this out at the moment. Afaik this involves quite some work to get even the "buildchain" required for building icedtea right.

MohammadAG 2010-05-04 22:26

Re: Instant Coffee - Packaging Java Applications for Fremantle
 
Quote:

Originally Posted by Wonko (Post 643494)
I used the binaries from http://camswl.com


I uploaded the JDK to non-free because only non-free allows to upload *.deb files directly.
I built all the packages using py2deb but for some reason the autobuilder did not like the package I set up for the JDK.
You can see the relevant build log here https://garage.maemo.org/builder/fre...log.FAILED.txt
As you can see in the control file I specified libpulse0 (>= 0.9.15~test5) as dependency but somehow the autobuilder did not pick up the .so file correctly.

If you're sure the package works you might be able to remove dpkg-shlibdeps from debian/rules and see if it works in free.

mrebanza 2010-05-05 08:16

Re: Instant Coffee - Packaging Java Applications for Fremantle
 
Could adding Java Support to Maemo lead to running Android Apps Natively on the n900????

shiny 2010-05-05 08:23

Re: Instant Coffee - Packaging Java Applications for Fremantle
 
Many thanks! I'm most interested in this (as a fairly regular Java programmer when I'm not doing client-side work) and it'd be great to see Java stuff easily portable. There's another thread somewhere where someone has ported SWT, too. An installable combination of those two would be ideal from my perspective.

kevloral 2010-05-05 08:38

Re: Instant Coffee - Packaging Java Applications for Fremantle
 
Quote:

Originally Posted by mrebanza (Post 644096)
Could adding Java Support to Maemo lead to running Android Apps Natively on the n900????

Not so easy. Android applications are written using the Java language syntax, but most of the API is different, as well as the bytecode format.

Wonko 2010-05-05 08:41

Re: Instant Coffee - Packaging Java Applications for Fremantle
 
Quote:

Originally Posted by MohammadAG
If you're sure the package works you might be able to remove dpkg-shlibdeps from debian/rules and see if it works in free.

Thanks, I will try this.

Quote:

Originally Posted by mrebanza
Could adding Java Support to Maemo lead to running Android Apps Natively on the n900????

I have no clue what is necessary to run Android Apps.
Maybe you find an answer in the following thread:
http://talk.maemo.org/showthread.php?t=37405
Or, if you are sure there is no other thread about that yet, open a thread about running Android Apps on the N900 yourself.
This thread has the focus on packaging Java applications.

Quote:

Originally Posted by shiny
There's another thread somewhere where someone has ported SWT, too. An installable combination of those two would be ideal from my perspective.

That someone would be me ;)
I'm working on packaging that one too.


All times are GMT. The time now is 23:15.

vBulletin® Version 3.8.8