Faire un JRE customisé

Faire un JRE customisé - Java - Programmation

Marsh Posté le 18-07-2003 à 11:16:14    

Salut les gens !
 
Bon alors mon problème est simple : le JRE 1.4.2 proposé par Sun il est bien mais il fait 14 Mo. Ca me broute de demander à un user de charger 14 Mo en plus des 2 Mo de mon appli donc je voulais savoir : y a-t-il moyen de faire un runtime Java customisé en fonction de mes besoins ? Genre les exécutables java (et javaw sur Windoze), jar, etc... ainsi que les classes systèmes et de base, histoire de me passer de tous les addons super inutiles dont j'ai pas besoin dans mon appli comme javax.swing et autres javax.naming ou rmi [:kiki]
Ca me permettrait de faire un packaging de taille correcte pour le user de base qui a pas de JRE sur sa machine.
 
Merci de vos réponses enjouées et constructives :jap:


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
Reply

Marsh Posté le 18-07-2003 à 11:16:14   

Reply

Marsh Posté le 18-07-2003 à 11:24:42    

je doute de la légalité de l'affaire

Reply

Marsh Posté le 18-07-2003 à 11:27:43    

lorill a écrit :

je doute de la légalité de l'affaire


 :??: C't'à dire ?


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
Reply

Marsh Posté le 18-07-2003 à 11:31:17    

Taiche a écrit :


 :??: C't'à dire ?


ben je pense pas que sun t'autorise a redistribuer leur produit, et encore moins apres modification  [:sinclaire]  
 
lis la licence, tu seras vite fixé

Reply

Marsh Posté le 18-07-2003 à 11:37:54    

Citation :


License to Distribute Software. Subject to the terms and conditions of this Agreement, including, but not limited to the Java Technology Restrictions of these Supplemental Terms, Sun grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute the Software, provided that (i) you distribute the Software complete and unmodified (unless otherwise specified in the applicable README file) and only bundled as part of, and for the sole purpose of running, your Programs, (ii) the Programs add significant and primary functionality to the Software, (iii) you do not distribute additional software intended to replace any component(s) of the Software (unless otherwise specified in the applicable README file), (iv) you do not remove or alter any proprietary legends or notices contained in the Software, (v) you only distribute the Software subject to a license agreement that protects Sun's interests consistent with the terms contained in this Agreement, and (vi) you agree to defend and indemnify Sun and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software.


 
bon, faut voir ce qu'ils entendent par "the applicable README file", mais si c'est que ca, tu peux. Fausse alerte donc.
 
y'a plus qu'a nettoyer :D

Reply

Marsh Posté le 18-07-2003 à 11:39:00    

Citation :

Sun grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute the Software, provided that (i) you distribute the Software complete and unmodified (unless otherwise specified in the applicable README file) and only bundled as part of, and for the sole purpose of running, your Programs


Readme :

Citation :

The files that make up the Java 2 SDK, Standard Edition, are divided into two categories: required and optional. Optional files may be excluded from redistributions of the Java 2 SDK at the vendor's discretion.


Suit une liste de fichiers que je peux exclure, comme jre/lib/charsets.jar ou bin/rmid and jre/bin/rmid.
:/ Grompf. J'peux pas modifier rt.jar. quoi [:ddr555]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
Reply

Marsh Posté le 18-07-2003 à 11:39:50    

lorill a écrit :

bon, faut voir ce qu'ils entendent par "the applicable README file", mais si c'est que ca, tu peux. Fausse alerte donc.
 
y'a plus qu'a nettoyer :D


Ba vala, j'viens d'quoter. Apparemment, pas le droit de modifier le rt.jar :cry:


Message édité par Taiche le 18-07-2003 à 11:40:23

---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
Reply

Marsh Posté le 18-07-2003 à 11:42:24    

bah en plus je sais pas trop, si c pour avoir ensuite des JRE boiteuse a droite a gauche ....

Reply

Marsh Posté le 18-07-2003 à 11:46:34    

chrisbk a écrit :

bah en plus je sais pas trop, si c pour avoir ensuite des JRE boiteuse a droite a gauche ....  


Nan mais là, j'installerais rien. C'est juste pour avoir le runtime qui va bien pour un type qui utilise jamais Java, style l'exécutable java, les packages java.lang et java.io et roule Raoul. Passke bon, l'install de 2 Mo qui passe à 16 Mo pour le pékin qui a pas de JRE, c'est un peu pénible [:spamafote]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
Reply

Marsh Posté le 18-07-2003 à 16:33:26    

bah c'est qu'à la première utilisation c'est pas trés grave...
 
le péquin qui veut faire du word et qui ne l'a pas sur son poste, faut bien lui installer non? :whistle:  
 
 ;)

Reply

Marsh Posté le 18-07-2003 à 16:33:26   

Reply

Marsh Posté le 18-07-2003 à 16:44:57    

_guigui_ a écrit :

bah c'est qu'à la première utilisation c'est pas trés grave...
 
le péquin qui veut faire du word et qui ne l'a pas sur son poste, faut bien lui installer non? :whistle:  
 
 ;)  


Ui, je dis pas le contraire mais bon, Word c'est pas une référence pour moi [:ddr555]
M'enfin je suppose que je vais devoir faire avec de toute façon [:spamafote]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
Reply

Marsh Posté le 22-07-2003 à 16:34:48    

Taiche a écrit :


Nan mais là, j'installerais rien. C'est juste pour avoir le runtime qui va bien pour un type qui utilise jamais Java, style l'exécutable java, les packages java.lang et java.io et roule Raoul. Passke bon, l'install de 2 Mo qui passe à 16 Mo pour le pékin qui a pas de JRE, c'est un peu pénible [:spamafote]


 
perso j avait fait une distrib de mon chat avec le jre 1.3 inclus, et je me retrouvais avec des fichier de 9Mo ( le chat faisait 2Mo a lui seul )
 
c'est pas enorme qd t y repense :o
 
regarde du coté de l'installeur de winamp , il est ps mal fichu


Message édité par veryfree le 22-07-2003 à 16:35:36
Reply

Marsh Posté le 22-07-2003 à 16:36:46    

veryfree a écrit :


perso j avait fait une distrib de mon chat avec le jre 1.3 inclus, et je me retrouvais avec des fichier de 9Mo ( le chat faisait 2Mo a lui seul )
 
c'est pas enorme qd t y repense :o


Ba le JRE 1.4 pour Windoze il fait 14 Mo [:spamafote]

veryfree a écrit :


regarde du coté de l'installeur de winamp , il est ps mal fichu  


Ca fait quoi d'bien ? Ca recompresse les JAR de manière optimisée ? [:ddr555]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
Reply

Marsh Posté le 22-07-2003 à 16:39:21    

Taiche a écrit :


Ba le JRE 1.4 pour Windoze il fait 14 Mo [:spamafote]
 
Ca fait quoi d'bien ? Ca recompresse les JAR de manière optimisée ? [:ddr555]  


si j ai parler du jdk 1.3 c que je suis sur que tu peux faire avec non ?
 
 
sinon oui l installeur compresse le tout optimisé je pense pas :D
 
http://www.nullsoft.com/free/nsis/

Reply

Marsh Posté le 22-07-2003 à 16:41:35    

veryfree a écrit :


si j ai parler du jdk 1.3 c que je suis sur que tu peux faire avec non ?


J'préfère 1.4 pour 2 raisons :
* feignantise de recoder certains bouts pour la 1.3 (recherche et remplacement dans les chaînes ou les StringBuffer)
* j'veux passer à java.nio pour les I/O fichiers [:spamafote]
Et pis perfos 1.4 roulaizent :o


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
Reply

Marsh Posté le 22-07-2003 à 16:56:37    

Taiche a écrit :


J'préfère 1.4 pour 2 raisons :
* feignantise de recoder certains bouts pour la 1.3 (recherche et remplacement dans les chaînes ou les StringBuffer)
* j'veux passer à java.nio pour les I/O fichiers [:spamafote]
Et pis perfos 1.4 roulaizent :o


 
jvien de regarder de plus pres:
 
le rep jre >>25.6 mo
le client >>2Mo
 
l'exe d'install : 10,3 Mo
 
 [:totoz6]

Reply

Marsh Posté le 22-07-2003 à 17:17:53    

veryfree a écrit :


jvien de regarder de plus pres:
 
le rep jre >>25.6 mo
le client >>2Mo
 
l'exe d'install : 10,3 Mo


En 1.4.2 ? :heink: Ou en 1.3 ?


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
Reply

Marsh Posté le 22-07-2003 à 17:50:29    

Taiche a écrit :


En 1.4.2 ? :heink: Ou en 1.3 ?


 
1.3 surement :o


---------------
Just because you feel good does not make you right
Reply

Marsh Posté le 22-07-2003 à 17:53:13    

DarkLord a écrit :


1.3 surement :o


Ba ça suxe, alors :o
Merde, y a des tonnes de trucs dont j'veux pas dans ce JRE tout pouillave et j'peux même pas les virer [:sisicaivrai]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
Reply

Marsh Posté le 22-07-2003 à 20:32:46    

oui c etait le 1.3 :o

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed