Hallo, ich habe ein Problem, welches mit dem von Jens1219 vom 11.11.11 (JAR-File & PDF) verwandt ist.
Ich benutze folgenden Code, um per Button eine PDF-Datei zu öffnen:
Das funktioniert sowohl beim Start des JAR als auch in IntelliJ IDEA 10.5.2, wenn das PDF-File außerhalb des JAR liegt. Jedoch zeigen sowohl IDEA als auch die Java-Runtime (wenn das JAR nicht per Doppelklick sondern per Konsole gestartet wurde) folgende Fehlermeldung an:
fatal: Needed a single revision
******** ERROR ********************************************************
This program is improperly using Base::Config by not initializing config
with the Load functions
See the documentation in Base/Dev/index.html for usage instructions.
At the minimum, LoadCommandLine should be use with a dummy command line
consisting of the program name.
************************************************************************
Ich benutze JDK 1.6.0_29 und den javac-Compiler. Weiß jemand was diese Fehlermeldung bedeutet?
Was muss man tun, damit die verschwindet?
Das ist übrigens mein erstes Posting, falls was nicht stimmt, bitte ich das zu entschuldigen.
Ich benutze folgenden Code, um per Button eine PDF-Datei zu öffnen:
Java:
final String PDF_FILE = "Help.pdf";
Desktop desktop;
File file;
if (!Desktop.isDesktopSupported()) {
showPDFErrorDialog();
return;
}
desktop = Desktop.getDesktop();
if (!desktop.isSupported( Desktop.Action.OPEN )) {
showPDFErrorDialog();
return;
}
file = new File( PDF_FILE );
if (!file.exists()) {
Hilfsklasse.showMissingResourceDialog( PDF_FILE );
// Programmende;
}
try {
desktop.open( file );
} catch (IOException e) {
Hilfsklasse.showMissingResourceDialog( PDF_FILE );
// Programmende;
}
Das funktioniert sowohl beim Start des JAR als auch in IntelliJ IDEA 10.5.2, wenn das PDF-File außerhalb des JAR liegt. Jedoch zeigen sowohl IDEA als auch die Java-Runtime (wenn das JAR nicht per Doppelklick sondern per Konsole gestartet wurde) folgende Fehlermeldung an:
fatal: Needed a single revision
******** ERROR ********************************************************
This program is improperly using Base::Config by not initializing config
with the Load functions
See the documentation in Base/Dev/index.html for usage instructions.
At the minimum, LoadCommandLine should be use with a dummy command line
consisting of the program name.
************************************************************************
Ich benutze JDK 1.6.0_29 und den javac-Compiler. Weiß jemand was diese Fehlermeldung bedeutet?
Was muss man tun, damit die verschwindet?
Das ist übrigens mein erstes Posting, falls was nicht stimmt, bitte ich das zu entschuldigen.