JaroslavTulach at 09:51, 5 March 2014 - 2014-03-05 09:51:30

←Older revision Revision as of 09:51, 5 March 2014
Line 2: Line 2:
* Compact 1 (small, about 4600 classes)
* Compact 1 (small, about 4600 classes)
* Compact 2 (also adds [[XML]] and [[Derby|JDBC]] [[API]]s)
* Compact 2 (also adds [[XML]] and [[Derby|JDBC]] [[API]]s)
-
* Compact 3 (the rest except UI and [[CORBA]])
+
* Compact 3 (the rest except UI)
-
As [[Harmony]] story illustrates, [[profiles]] are the best thing since the invention of sliced bread. Moreover they are ready (at least if you are running [[Linux]]) right now. I've just tried:
+
As [[Harmony]] story illustrates, [[profiles]] are the best thing since the invention of sliced bread. Moreover they are ready (at least if you are running [[Linux]]) right now.
 +
 
 +
Adopting your [[API]], framework or application to smaller [[Profiles]] will require few tricks. Here is list of few of them that will help you [[LowerProfile]] of your system.
 +
 
 +
== Getting Started ==
 +
 
<source lang="bash">
<source lang="bash">

JaroslavTulach at 16:06, 27 November 2013 - 2013-11-27 16:06:52

←Older revision Revision as of 16:06, 27 November 2013
Line 7: Line 7:
<source lang="bash">
<source lang="bash">
$ hg clone http://hg.openjdk.java.net/jdk8/jdk8 openjdk8
$ hg clone http://hg.openjdk.java.net/jdk8/jdk8 openjdk8
 +
$ bash ./get_source.sh
$ cd openjdk8
$ cd openjdk8
$ bash ./configure
$ bash ./configure

JaroslavTulach at 15:08, 27 November 2013 - 2013-11-27 15:08:33

←Older revision Revision as of 15:08, 27 November 2013
Line 35: Line 35:
</source>
</source>
-
And guess, it really runs! An [[OSGi]] container on top of ''compact1'' [[profiles|profile]]! Great work on creating small common ground for [[JDK]]8 based libraries! Now everything on top of ''compact1'' can be an [[OSGi]] bundle.
+
And guess, it really runs! An [[OSGi]] container on top of ''compact1'' [[profiles|profile]]! Great work on creating small common ground for [[JDK]]8 based libraries! Now everything on top of ''compact1'' can be an [[OSGi]] bundle and we will all live in a [[harmony]].

JaroslavTulach at 15:07, 27 November 2013 - 2013-11-27 15:07:41

←Older revision Revision as of 15:07, 27 November 2013
Line 3: Line 3:
* Compact 2 (also adds [[XML]] and [[Derby|JDBC]] [[API]]s)
* Compact 2 (also adds [[XML]] and [[Derby|JDBC]] [[API]]s)
* Compact 3 (the rest except UI and [[CORBA]])
* Compact 3 (the rest except UI and [[CORBA]])
-
As [[Harmony]] story illustrates, [[profiles]] are the best thing since sliced bread. Moreover they are ready (at least if you are running [[Linux]]) right now. I've just tried:
+
As [[Harmony]] story illustrates, [[profiles]] are the best thing since the invention of sliced bread. Moreover they are ready (at least if you are running [[Linux]]) right now. I've just tried:
<source lang="bash">
<source lang="bash">

JaroslavTulach at 15:07, 27 November 2013 - 2013-11-27 15:07:05

←Older revision Revision as of 15:07, 27 November 2013
Line 1: Line 1:
[[JDK]]8 is about to provide three new [[profiles]]. In addition to classical, full, bloated [[Java]] runtime, there will be:
[[JDK]]8 is about to provide three new [[profiles]]. In addition to classical, full, bloated [[Java]] runtime, there will be:
-
* Compact 1 (small, about 4600 classes)
+
* Compact 1 (small, about 4600 classes)
-
* Compact 2 (also adds [[XML]] and [[Derby|JDBC]] [[API]]s)
+
* Compact 2 (also adds [[XML]] and [[Derby|JDBC]] [[API]]s)
-
* Compact 3 (the rest except UI and [[CORBA]])
+
* Compact 3 (the rest except UI and [[CORBA]])
As [[Harmony]] story illustrates, [[profiles]] are the best thing since sliced bread. Moreover they are ready (at least if you are running [[Linux]]) right now. I've just tried:
As [[Harmony]] story illustrates, [[profiles]] are the best thing since sliced bread. Moreover they are ready (at least if you are running [[Linux]]) right now. I've just tried:

JaroslavTulach at 15:06, 27 November 2013 - 2013-11-27 15:06:51

←Older revision Revision as of 15:06, 27 November 2013
Line 1: Line 1:
[[JDK]]8 is about to provide three new [[profiles]]. In addition to classical, full, bloated [[Java]] runtime, there will be:
[[JDK]]8 is about to provide three new [[profiles]]. In addition to classical, full, bloated [[Java]] runtime, there will be:
* Compact 1 (small, about 4600 classes)
* Compact 1 (small, about 4600 classes)
-
* Compact 2 (also adds [[XML]] and [[JDBC]] [[API]]s)
+
* Compact 2 (also adds [[XML]] and [[Derby|JDBC]] [[API]]s)
* Compact 3 (the rest except UI and [[CORBA]])
* Compact 3 (the rest except UI and [[CORBA]])
As [[Harmony]] story illustrates, [[profiles]] are the best thing since sliced bread. Moreover they are ready (at least if you are running [[Linux]]) right now. I've just tried:
As [[Harmony]] story illustrates, [[profiles]] are the best thing since sliced bread. Moreover they are ready (at least if you are running [[Linux]]) right now. I've just tried:

JaroslavTulach: New page: JDK8 is about to provide three new profiles. In addition to classical, full, bloated Java runtime, there will be: * Compact 1 (small, about 4600 classes) * Compact 2 (als... - 2013-11-27 15:06:22

New page: JDK8 is about to provide three new profiles. In addition to classical, full, bloated Java runtime, there will be: * Compact 1 (small, about 4600 classes) * Compact 2 (als...

New page

[[JDK]]8 is about to provide three new [[profiles]]. In addition to classical, full, bloated [[Java]] runtime, there will be:
* Compact 1 (small, about 4600 classes)
* Compact 2 (also adds [[XML]] and [[JDBC]] [[API]]s)
* Compact 3 (the rest except UI and [[CORBA]])
As [[Harmony]] story illustrates, [[profiles]] are the best thing since sliced bread. Moreover they are ready (at least if you are running [[Linux]]) right now. I've just tried:

<source lang="bash">
$ hg clone http://hg.openjdk.java.net/jdk8/jdk8 openjdk8
$ cd openjdk8
$ bash ./configure
$ make clean profiles
</source>

and after few (tens of) minutes I could switch to the profile image and test it on [[Felix]]:

<source lang="bash">
$ cd build/linux-x86-normal-server-release/images/j2re-compact1-image/
$ ./bin/java -version
openjdk version "1.8.0-internal"
OpenJDK Runtime Environment (build 1.8.0-internal_2013_11_27_13_39-b00, profile compact1)
OpenJDK Server VM (build 25.0-b60, mixed mode)
$ ../bin/java -jar bin/felix.jar
____________________________
Welcome to Apache Felix Gogo

g! lb
START LEVEL 1
ID|State |Level|Name
0|Active | 0|System Bundle (4.2.1)
1|Active | 1|Apache Felix Bundle Repository (1.6.6)
2|Active | 1|Apache Felix Gogo Command (0.12.0)
3|Active | 1|Apache Felix Gogo Runtime (0.10.0)
4|Active | 1|Apache Felix Gogo Shell (0.10.0)
g!
</source>

And guess, it really runs! An [[OSGi]] container on top of ''compact1'' [[profiles|profile]]! Great work on creating small common ground for [[JDK]]8 based libraries! Now everything on top of ''compact1'' can be an [[OSGi]] bundle.