Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: helander on January 23, 2010, 08:23:52 PM

Title: Do anyone need a Java extension?
Post by: helander on January 23, 2010, 08:23:52 PM
I have created an extension that contains the Apache Harmony JDK+JRE. Before I submit it to the TC repo, I would like to understand if there is any need for this extension within the community. It's rather big (+50MB) compared to the majority of existing extensions in the repo, and if no one is interested we should not waste repo space and bandwidth.
Further, i would like to know what people would be using it for so that i can tailor the packaging to these needs.

/Lars
Title: Re: Do anyone need a Java extension?
Post by: gerald_clark on January 23, 2010, 08:30:18 PM
I would suggest separating the JRE and the JDK.
Title: Re: Do anyone need a Java extension?
Post by: helander on January 23, 2010, 08:36:56 PM
That was my first thought, but when I realized that the JRE was 45MB and the JDK 53MB, it was not so obvious any longer. However it is still an option :).

One fairly simple thing to do is to split the class library into smaller pieces, e.g. put awt and swing classes in a separate extension in case some people only use Java in non-GUI environments (or in pure SWT environments). But before entering that path I would like to know if anyone would benefit from that.

/Lars
Title: Re: Do anyone need a Java extension?
Post by: Pats on January 24, 2010, 12:59:52 AM
Presently I use RH9 to develop threaded apps in Java.
Secondly many of us here have to switch either to XP or RH or Knoppix for our need of online live charts on net.
So it will be a welcome step, if you make this Java Ext available in  the repo (either JRE+JDK or in seaparately).
Sooner or later the needy ones will start exploring it.
Thnks for yr efforts !
~ Pats
Title: Re: Do anyone need a Java extension?
Post by: curaga on January 24, 2010, 06:15:47 AM
While it seems to be Java 5-compatible, there's no java extension currently - thus it would be good to have.
Title: Re: Do anyone need a Java extension?
Post by: bmarkus on January 24, 2010, 08:04:05 AM
While at the moment I do not need Java, time to time it is required to test applications. I have several multiplatform clients written in Java used in corporate environment.
Title: Re: Do anyone need a Java extension?
Post by: Magil on January 25, 2010, 04:43:21 AM
I use Java + Tomcat on TCL, an extension should be awesome. Also meybe it would be smaller to use openjdk, I havent tried this myself yet, as size isnt that importent for me, just a thought.
Title: Re: Do anyone need a Java extension?
Post by: helander on January 25, 2010, 07:05:48 AM
So far what I have seen openjdk becomes bigger than harmony.

I think I have tried most, if not all, available Java implementations that are "free" or close to "free". The only one that I have been able to build (and that works once being built) is harmony. Icedtea, is is probably the most promising alternative since it tries to address all the "non-free" issues that openjdk has, but builds on openjdk. The problem at this point is that I experience a number of build problems with icedtea.

I will probably continue (if time allows) to get a working icedtea build, but until that happens, I can make harmony available to the community.

/Lars
Title: Re: Do anyone need a Java extension?
Post by: Magil on January 28, 2010, 04:17:54 AM
Hey Lars, I would very musch like to try your version as mine takes up 100mb. Size isnt that important for me, but a smaller build would boot a lot faster. Great work!
Title: Re: Do anyone need a Java extension?
Post by: helander on January 29, 2010, 11:02:31 AM
Hey Lars, I would very musch like to try your version as mine takes up 100mb. Size isnt that important for me, but a smaller build would boot a lot faster. Great work!

Magil,

Size should not affect the boot time, unless you are copying package contents to RWM. Boot time is affected by number of files in the extension and not the size.

/Lars
Title: Re: Do anyone need a Java extension?
Post by: helander on January 29, 2010, 11:08:05 AM
I have managed to build openjdk-7 and it seems to work fine (ran a short session with eclipse). The sizes are currently:

JDK 76 MB
JRE 38 MB

I will look into how these might be split in multiple extensions.

/Lars
Title: Re: Do anyone need a Java extension?
Post by: ^thehatsrule^ on January 29, 2010, 05:51:57 PM
Wouldn't version 6 be more desired at this time, since v7 is still under development (afaik)?
Title: Re: Do anyone need a Java extension?
Post by: helander on January 29, 2010, 06:13:02 PM
Wouldn't version 6 be more desired at this time, since v7 is still under development (afaik)?

Yes, it would. However the version 6 build failed while the version 7 built without problems. My plan is to submit version 7 soon (within a day or two) and then try to get the version 6 to build without failure. If I get version 6 to build I plan to submit that too. Users would then be able to either pick openjdk-6 or openjdk-7.


Currently I have the following extensions for openjdk-7

openjdk-7-jdk.tcz                13 Mbyte
openjdk-7-jre.tcz                34 Mbyte
openjdk-7-jdk-misc.tcz        24 MByte
openjdk-7-jre-server.tcz        4 Mbyte

openjdk-7-jre-server is only needed if the jvm is to run in server mode.
openjdk-7-jdk-misc contains man pages, samples and demos (stuff not required at run-time)
openjdk-7-jdk depends on openjdk-7-jre

/Lars