Charger un fichier de properties
Bonjour,
j'essayes de lire un fichier .properties.
J'ai gwt 1.4.62
Le code est tout simple :
try {
properties.load(new FileInputStream("default.properties"));
} catch (IOException e) {
}
Mais en fait j'ai l'erreur de compilation :
[ERROR] Line 3: The import java.io.FileInputStream cannot be resolved
[ERROR] Line 4: The import java.io.IOException cannot be resolved
[ERROR] Line 5: The import java.util.Properties cannot be resolved
[ERROR] Line 25: Properties cannot be resolved to a type
[ERROR] Line 25: Properties cannot be resolved to a type
[ERROR] Line 40: properties cannot be resolved
[ERROR] Line 45: properties cannot be resolved
[ERROR] Line 45: FileInputStream cannot be resolved to a type
[ERROR] Line 46: IOException cannot be resolved to a type
[ERROR] Line 69: properties cannot be resolved
[ERROR] Line 70: properties cannot be resolved
[ERROR] Line 74: properties cannot be resolved
[ERROR] Line 75: properties cannot be resolved
Finding entry point classes
[ERROR] Unable to find type 'ar.com.exolgan.pantallazo.client.Pantallazo'
[ERROR] Hint: Previous compiler errors may have made this type unavailable
[ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[ERROR] Build failed
Comment il faut faire? On ne peux pas utiliser l'objet Properties?
Comment vous faits pour lire les fichiers de properties...
Merci!
Fichier properties et GWT
Bonjour,
Je rencontre ces temps-ci quelques difficultes pour utiliser java.io et aussi les Properties dans mon application GWT . IL me met les memes erreurs du type:
The import java.io.FileInputStream cannot be resolved
The import java.io.IOException cannot be resolved
The import java.util.Properties cannot be resolved
Properties cannot be resolved to a type
Properties cannot be resolved to a type
[ERROR] Hint: Previous compiler errors may have made this type unavailable
[ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[ERROR] Build failed.
Vous aviez donne des solutions precedemment mais j'arrive toujours pas a voir comment faire :(. Dans quels paquages les properties sont mis? et comment fait t-on?
Citation:
Envoyé par
piltrafeta
Finallement j'ai opte pour lire le fichier properties du cote client, et obtenir les valeurs pour RPC.