Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Verzeichnis der Jar File ermitteln

Empfohlene Antworten

Hi Leute,

ich habe ein Programm als Jar File, das zwei PropertyFiles zur Konfiguration zieht. Wie krieg ich es jetzt hin, dass er die zwei Propertyfiles im selben Verzeichnis wie die Jar File sucht?

Danke & Gruß

LordK

Am liebsten gar nicht.

Bau sie mit ins jar-file rein und lies sie über System.getRessource() oder so ähnlich aus.

Editieren kannst Du sie ja dann lassen und per ZipInputGerümpel wieder im jar speichern.

Peter

oder einfach jede Pfadangabe weg lassen und nur den Dateinamen angeben, dann erwartet Java automatisch die Datei im selben Verzeichnis wie die JAR File.

Hast dir deine Frage ja schon selbst beantwortet =)

Das muss nicht sein. Probier mal aus, wenn Du den Befehl 'java' nicht im Verzeichnis aufrufst, in dem das jar liegt. Ich glaube, wenn kein Pfad angegeben wird, wird dort gesucht, wo 'java' aufgerufen wird.

Peter

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.