Bilder in jar-Datei

Status
Nicht offen für weitere Antworten.
G

Gast

Gast
Hallo,

ich habe mit eclipse ein ausführbares jar-Archiv erstellt. Ausführen lässt sich das jar-file, aber es fehlen die Bilder auf der Programm-Oberfläche. Die Bidler (2 gif-Bilder) befinden sich in meinem Projekt-Ordner. Wenn ich das Programm in Eclipse ausführe sieht man sie, ansonsten nicht. Gibt es da eine Möglichkeit die Bilder ins jar-Archiv mit zu packen?
 

Wildcard

Top Contributor
Du kannst die Bilder problemlos ins jar packen, aber laden musst du sie über den ClassLoader.
Benutz einfach mal die Forensuche für Beispielcode
 
G

Gast

Gast
Bei mir hat es mit ClassLoader.getSystemResource() funktioniert. Danke für die Hinweise! :wink:
 
Status
Nicht offen für weitere Antworten.
Ähnliche Java Themen
  Titel Forum Antworten Datum
M IDEA IntelliJ Jar Datei Bilder IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
MiMa Ressources Bilder werden einfach nicht erkannt? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
A Bilder In ein GUI erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
G IDEA IntelliJ Bilder in der fertigen Application IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
J Eclipse Fertiges Programm enthält keine Bilder mehr IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
E Eclipse Bilder werden nicht angezeigt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
R Bilder in einem Runnable Jar Archiv IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
N NetBeans Bilder ins Projekt importieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G Eclipse: Bilder werden in .jar nicht mehr angezeigt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
R Eclipse: wie Bilder zum Projekt hinzufügen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
A Bilder in NetBeans 5.0 BlueJ Edition einfügen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
A verwendete bilder auch in jar ausführen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
N Erstellen einer ausführbaren jar Datei in Eclipse (Linux Mint) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 17
G JPackage in xml-Datei? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
B Eclipse Problem mit jar Datei? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
jar Datei funktioniert nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 19
B .exe Datei für Eclipse Java Programm erstellen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
B Wie nicht-java Datei mit Eclipse benutzen (Excel Datei einlesen)? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 16
J Eclipse Trotz .jar-Datei im Classpath Fehler bei import IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
P Eclipse- Zip Datei als Prgramm IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
W Eclipse Rechnerabsturz - Datei der Main zerstört? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
T .project Datei im Explorer ohne Namen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
it_is_all NetBeans Clean and Build Project - Buttons ohne Funktion bei jar-Datei IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 22
R wohin mit der pellet jar-Datei? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
M Eclipse Fehler beim Ausführen der ausführbaren Jar-Datei IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
S Eclipse Ausführbare Datei aus mehreren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
stylegangsta Eclipse Hat eclipse eine Macke oder mein Code Array Datei einlesen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
L kompilierbare Datei IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
T Eclipse Import Wizard: Text Datei verarbeiten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
L NetBeans und Ausgabenumlenkung in Datei IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
M MS SQL Management Studio - Export der Projekt-Datei IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
C NetBeans Jar Datei - Ausführbar mit Sourcen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
D Jar Datei lässt sich nicht starten. IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
O Eclipse Jar-Datei erstellen und begrenzen auf ein Interface IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
A EGit-Synchronisation der gleichen Datei IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S Eclipse Datei einlesen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M Eclipse Class-Datei exportieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
F notepad++ findet datei nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
C Eclipse Wie kann ich .class-Datei mit eclipse importieren? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
M NetBeans Jar Datei erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
T Eclipse IDE friert beim Öffnen einer Datei im Editor ein IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
K Jar Datei inkl. Zusatzdateien IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
K Eclipse txt Datei wird nicht gelesen??? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
R NetBeans .Jar Datei öffnen und ändern IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
H Eclipse Einfügen einer Zip-Datei im Menuepunkt Installed IREs IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
B Beim erstellen einer .jar Datei wird fremde Library nicht erkannt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
M Eclipse konsolen output in datei umleiten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
M eclipse sound datei import IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
B Projekte in NetBeans / ausführbare Datei erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
G Plugin i18nedit öffnet Datei nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
K Eclipse - JAAS config Datei IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
N jar datei ins projekt hinzufügen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
J Lauffähige JAR-Datei erstellen mit Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
H uml datei als word dokument oder ähnliches? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
B eclipse problem beim öffnen einer datei absturz IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
G *.jar-datei in editor öffnen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
H jar Datei importieren in Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
N jar-Datei öffnen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
A eine ausfürbare datei (.exe) einer netbeans java-Applikation IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
M Eclipse und extrahieren von Strings für Property Datei? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
K Eclipse löscht die Datei Log4j.properties im WEB-INF/classes IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M [Netbeans] Class Datei einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
P Batch-Datei "dynamisch" erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S eclipse Propertie Datei sehen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
D Ordner zu jar-Datei hinzufügen (NetBeans) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
G Log4j: Ausgabe in Datei IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
H Eclipse: JAR-Datei einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
S Ausführbare Datei für z.b. Windows erzeugen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
G Aus Jbuilder projekt exe datei machen??? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
G java programm in exe datei packen?? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3

Ähnliche Java Themen

Neue Themen


Oben