Intellij build jar funktioniert nicht !

Mx1co

Mitglied
Hey,
Ich nutze schon seit geraumer Zeit intellij und hatte nie probleme. Jedoch seit neustem kann ich bei einem bestimmten Projekt keine .jar Datei mehr bauen lassen. Ich weis leider nicht woran das liegt und bin langsam am verzweifeln. Hier mein Problem:

Sobald ich meine .jar Datei erzeuge und diese versuche über die Eingabeaufforderung von Windows auszuführen, kommt folgender Fehler:
java -jar datei.jar -> "Hauptklasse konnte nicht gefunden werden".

Nun habe ich verschiedene Sachen bei der Konfiguration meines artifacts ausprobiert.
- Sobald ich die Main-class auswähle kommt folgende Meldung: "...src/main/java/META-INF/MANIFEST.MF" already exists in VFS

- Wenn ich das Feld der Main-class weg lasse bleibt somit auch das Feld "Directory for META-INF/..." auch frei und die Fehlermeldung kommt nicht mehr.
Dann habe ich jedoch das Problem beim ausführen der jar, dass folgende Fehlermeldung kommt: "no main manifest attribute, in..."

Ich weis wirklich nicht was ich falsch mache und wäre euch sehr dankbar, wenn ihr hierfür evtl eine Lösung parat hättet.
MfG
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
MiMa IntelliJ GIT Local Zweig?? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
D Intellij source controll zeigt nicht alle klassen an ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
MiMa Die Sourcecode Verzeichnisse verschwinden in IntelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
M Eclipse oder IntelliJ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
krgewb IntelliJ durchsucht .log-Dateien IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
Oneixee5 IntelliJ JavaEE IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
krgewb GUI-Elemente in IntelliJ verschwunden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
MiMa IntelliJ Projekt umbenennen?? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
MiMa IntelliJ dubious ownership in reposity? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
JAnruVA IDEA IntelliJ JavaScript in IntelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
D Crawler funktioniert in intellij aber in Eclipse nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
W Speicherbelegung in IntelliJ auswerten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
N generate selected getters with intellij IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
MiMa Netbeans zu IntelliJ mit Maven konvertieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
temi IDEA IntelliJ Intellij new UI IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
D strg + alt + B funktioniert nicht [IntelliJ] IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
MiMa IntelliJ Maven Projekt erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
MiMa IntelliJ GIT-Verzeigung zu Master hinzufügen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
MiMa Nebtbeans Projekte nach IntelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
L source folder und code highlighting IntelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 21
D lesen von json Dateien in Intellij IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
MiMa Doppelten Code in IntelliJ finden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
H Branches vergleichen - GIT, IntelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
frager2345 Datenbankzugriff Intellij IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
Y IDEA IntelliJ Warum findet IntelliJ die maven property nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
J IntelliJ IDEA IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
krgewb IntelliJ Idea - Alles eingeklappt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
LimDul IDEA IntelliJ Tipps für den Umstieg von Eclipse auf intelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
F IntelliJ IDEA Community Edition IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 26
S IDEA IntelliJ GUI Component Tree anzeigen in IntelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
D Intellij Memory Settings IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
krgewb In IntelliJ alles eingeklappt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
N IDEA IntelliJ Intellij lässt keine neuen archetypes erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
S IDEA IntelliJ Scenebuilder in Intellij Idea am MAC OS X IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
OnDemand IntelliJ Branching Master/DEV Berechtigungen möglich? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
9 IDEA IntelliJ Wie kann man ein JUnit Test bei IntelliJ durchführen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
9 IDEA IntelliJ IntelliJ lässt nicht ein Code ausführen, wenn irgendwo in andere Klasse Fehler ist. IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
krgewb IntelliJ - Zu application.properties springen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
O IntelliJ IDEA Lizenz IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
D Intellij mehrere Programme in einem Projekt bearbeiten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
Z Intellij zeight H2-Datenbank nicht an IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
P Maven für Intellij IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
P Intellij "httpRequest" ins Projekt mit einbinden? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 49
temi IntelliJ, Gradle und Git: gitignore IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
N Frage zu meinen IntelliJ-Einstellungen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
mrBrown IntelliJ 2020.1 - Maven Projekte nicht ausführbar IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
W IntelliJ soll nicht immer alle Code-Files checken IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
Thallius Falsches Warning in IntelliJ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
D JavaFX 12 / SDK 12 -> IntelliJ error IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
R IDEA IntelliJ Intellij klaut mir zu viel zu viel Speicherplatz weg! IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 22
M Intellij IDEA lädt Font nicht und Darcula funktioniert nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
M Intellij IDEA Programm ohne Main-Methode starten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
Y Intellij mit Android SDK IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
B IntelliJ - .properties in jar einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
E Maven-Installation für Intellij IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
U IDEA IntelliJ IntelliJ IDEA automatische Formatierung deaktivieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
K IntelliJ unter Linux: Probleme beim Ausführen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
M Idea IntelliJ - Starten der Mainmethode ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
A IDEA IntelliJ IntelliJ Maven oder Webprojekt, kann keine normalen Java Klassen erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
K IDEA IntelliJ Umstieg von ADT (Eclipse) auf Android-Studio (IntelliJ IDEA) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
R intellij idea mit SVN tortoise 1.8 verwenden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
X "Extract Method Object" aus IntelliJ auch in Eclipse? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
U [IntelliJ] Variablen Refactoring IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
H Intellij 8.1.3 JDSK Probleme IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S Metriktools für IntelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
M Grails Plugin in IntelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
A IntelliJ zeigt meine class-Files nicht an!? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
L Intellij IDEA 8 - Wie ist eure Meinung? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 38
J IDEA IntelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
G IDEA IntelliJ Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
Eclipse Build path duplication entry IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
J Android Studio build haut nicht hin IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
J Errors occurred during the build IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
S Woher weiß ich welche build path entries fehlen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
it_is_all NetBeans Clean and Build Project - Buttons ohne Funktion bei jar-Datei IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 22
L Kann erzeugen der build.xml aus von eclipse modifiziert werden? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
R Eclipse ANT Build-File ausführen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
B NetBeans build\generated\classes => generics are not supported in -source 1.4 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
H build.xml und tags IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
G Netbeans WS Client Clean and Build IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G Eclipse Automatisch referenced jars importieren wenn Project im build path IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
N log4j.properties in build.xml angeben IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
Cody Eclipse [3.7]Update von "Release -> Maintenance Build" per Updatesite IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
G NetBeans build.xml modifizieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
B Maven - Angeben welche Klassen/Packes für build benutzen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
E Build Path einstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
D build.xml + eclipse nachträgliche Intergration wie am Besten? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
alderwaran NetBeans automatisches signieren von jar files nach build IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
B NetBeans: Sources beim Build paketieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G Java Build Path "Add Projects" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 16
X eclipse 3.4 Build id: I20080617-2000 schneidet code ab ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
tfa Build-Skript für Eclipse-Projekte IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
J [Eclipse] Build Path: Ext. Lib unter JRE, wie rausbekommen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
M 2 Programme mit einer Ant build-file starten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
B Eclipse / Build a standalone SWT application IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
K Eclipse - automatic build number IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
T Eclipse Java Projekt funktioniert in Eclipse, aber nach export kein Dateizugriff IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
M import org.bukkit.plugin.java.JavaPlugin; funktioniert nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 17
B Eclipse version control System das ohne Internet funktioniert/nur lokal auf Computer? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
jar Datei funktioniert nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 19

Ähnliche Java Themen

Neue Themen


Oben