Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1484 connectés 

  FORUM HardWare.fr
  Programmation

  [Java] fichier properties corrompu ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Java] fichier properties corrompu ?

n°101764
TBone
Pouet.
Posté le 18-02-2002 à 12:02:16  profilanswer
 

salut,
 
toujours dans un effort de faire passer une appli Java sous Windows, j'ai un souci de fichier properties...
 
la JVM m'annonce à l'essai de chargement que mon fichier est corrompu. c'est un bête fichier texte...
 
voici l'erreur:
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
        at java.util.Properties.loadConvert(Properties.java:290)
        at java.util.Properties.load(Properties.java:239)
        at jway.tools.JWProperties.load(JWProperties.java:55)
        at MakeUp.setConfiguration(MakeUp.java:24)
        at MakeUp.main(MakeUp.java:115)
 
est-ce que je peux continuer à essayer de nettoyer mes properties ? j'ai vérifié la fin des lignes, j'ai viré les commentaires, ...
 
qq'un a-t-il déjà eu cette erreur ?


---------------
As the plane took off, the pilot turned to the co-pilot and said, “Have you ever flown solo?” Co-pilot: No. Typically I fly much higher than this.
mood
Publicité
Posté le 18-02-2002 à 12:02:16  profilanswer
 

n°101769
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 18-02-2002 à 12:05:52  profilanswer
 

bin visiblement ton fichier a des caractères exotiques dedans. Tu sais l'éditer dans un post (simplement copier le contenu)


---------------
What is popular is not always right, what is right is not always popular :D
n°101771
TBone
Pouet.
Posté le 18-02-2002 à 12:11:02  profilanswer
 

Gee quelle rapidité... z'était en train de lire un autre post et boum!
 
voilà mon fichier properties original. (il passe bien sous Linux mais je ne vois pas pourquoi cela merdoie car c'est un process Java qui doit le lire)
 
j'ai essayé de virer les tabs, les espaces, les remarques, rien... :(
 
merci!
 
 
publisher.input            = c:\jguide-engine\repository
publisher.output           = c:\jguide-engine\publication
 
 
// default stylesheet others are called by generated name. (see docs.)
 
default.stylesheet = eguide.css
 
//        publisher configuration
// take care about this configuration !!!
 
publisher_link_behaviour   = elegi2
 
makeUp.processor                           = JGuideMakeUp
 
publisher.doc.document.doc.processor       = JGuideUnit
publisher.doc.toc.level.processor          = JGuideUnit
publisher.doc.gosub.doc.processor          = JGuideUnit
publisher.themas.document.themas.processor = JGuideUnit
publisher.themas.gosub.themas.processor    = JGuideUnit
publisher.tabs.document.tabs.processor     = JGuideTabs


---------------
As the plane took off, the pilot turned to the co-pilot and said, “Have you ever flown solo?” Co-pilot: No. Typically I fly much higher than this.
n°101772
TBone
Pouet.
Posté le 18-02-2002 à 12:12:24  profilanswer
 

évidemment, les chemins c:\... ont été ajoutés une fois sous Win. (notepad)


---------------
As the plane took off, the pilot turned to the co-pilot and said, “Have you ever flown solo?” Co-pilot: No. Typically I fly much higher than this.
n°101773
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 18-02-2002 à 12:14:33  profilanswer
 

tu dois ajouter c:\\ dans le fichier de props
 
si tu fais c:\temp tu vas avoir  
 
c:    emp
 
 
car \t c'est la valeur pour la tabulation :D
 
Essaie ca
 

Code :
  1. publisher.input            = c:\\jguide-engine\\repository
  2. publisher.output           = c:\\jguide-engine\\publication
  3. // default stylesheet others are called by generated name. (see docs.)  
  4. default.stylesheet = eguide.css
  5. //        publisher configuration  
  6. // take care about this configuration !!!  
  7. publisher_link_behaviour   = elegi2
  8. makeUp.processor                           = JGuideMakeUp
  9. publisher.doc.document.doc.processor       = JGuideUnit
  10. publisher.doc.toc.level.processor          = JGuideUnit
  11. publisher.doc.gosub.doc.processor          = JGuideUnit
  12. publisher.themas.document.themas.processor = JGuideUnit
  13. publisher.themas.gosub.themas.processor    = JGuideUnit
  14. publisher.tabs.document.tabs.processor     = JGuideTabs


---------------
What is popular is not always right, what is right is not always popular :D
n°101776
TBone
Pouet.
Posté le 18-02-2002 à 12:16:09  profilanswer
 

c'est ce que je viens de faire en désespoir de cause avant de te lire...
 
merci, et bravo! :hello:


---------------
As the plane took off, the pilot turned to the co-pilot and said, “Have you ever flown solo?” Co-pilot: No. Typically I fly much higher than this.
n°101792
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 18-02-2002 à 12:36:40  profilanswer
 

bah de rien c'est un prob que j'ai eu en son temps aussi :D


---------------
What is popular is not always right, what is right is not always popular :D

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  [Java] fichier properties corrompu ?

 

Sujets relatifs
[JAVA] JLAbel[JAVA] code natif en C ou comment je suis trop dans la merde!
[Java] - Swing et les conventions[PHP] lire le contenu d'un fichier...
Comment associer une icone à un fichier .exe, sans programmation?[JAVA] Images dans les applications
(JAVA]Empêcher la saisie de lettres dans un TextFieldCrypter le fichier robots.txt ?
Ouvrir boite de dialogue de select. de fichier ??? en PHP ?? ou JS ???[Java] Applet afficher des messages pendant l'init
Plus de sujets relatifs à : [Java] fichier properties corrompu ?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR