IDEA IntelliJ Problem

Status
Nicht offen für weitere Antworten.
G

Gast

Gast
Hallo !

Habe Datei A.java

Code:
public class A
{
  A() { }

  public static void main(String[] args)
  {
  }
}


Kann das über Konsole mit javac A.java erfolgreich kompilieren
und auch mit java A starten ohne das da ne exception kommt.
Hatte mir für Konsole ja schon die Umgebungsvariablen gesetzt :

CLASSPATH = C:\Programme\Java\jdk1.5.0_04\jre\lib\;.
PATH = C:\Programme\Java\jdk1.5.0_04\bin

(Zusätzlich auch noch JAVA_HOME auch wenn ich das nicht brauche)
JAVA_HOME = C:\Programme\Java\jdk1.5.0_04\






Aber wenn ich mit IDEA IntelliJ ein neues Projekt aufmache,
die Pfade in den Project Properties automatisch auf mein
Java Verzeichnis zielen lasse (das macht mir IntelliJ ganz
automatisch wenn ich da die Java Version auswähle) kommt
beim Kompilieren der A.java (siehe oben) folgendes :

Information: 1 error
Information: 0 warnings
Information: Exception in thread "main" java.lang.ClassNotFoundException: -verbose
Information: at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
Information: at java.security.AccessController.doPrivileged(Native Method)
Information: at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
Information: at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
Information: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
Information: at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
Information: at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Information: at java.lang.Class.forName0(Native Method)
Information: at java.lang.Class.forName(Class.java:164)
Information: at com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:24)
Error: line (0) The compiler did not terminate normally. Exit code is 1


Jemand hier der IntelliJ verwendet und weiß woran das liegen kann ? ???:L


Danke !!
 

Bleiglanz

Gesperrter Benutzer
File Settings Project Settings

stell mal das SDK ein...

oder in der Run kofiguration -> bei Applications -> use alternative JRE
 
G

Gast

Gast
Mhm ich hab das SDK schon eingestellt gehabt (s.o.)

Da ist eingestellt Target JDK : "1.5.0_04"

Und in den ganzen Unterrubriken
Project | Sourcepath | Classpath |...

hat der auch die ganzen Pfade gefunden und automatisch auf die *.jar files gesetzt :?

Komisch... ???:L
 
G

Guest

Gast
ja war alles eingestellt, der hat sogar die pfade alle automatisch
gefunden und im source code angezeigt wenn was deprecated
etc war... na ja egal hab mir jetzt netbeans runtergeladen damit
geht alles :D
 
Status
Nicht offen für weitere Antworten.
Ähnliche Java Themen
  Titel Forum Antworten Datum
J IntelliJ IDEA IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
krgewb IntelliJ Idea - Alles eingeklappt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
F IntelliJ IDEA Community Edition IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 26
S IDEA IntelliJ Scenebuilder in Intellij Idea am MAC OS X IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
O IntelliJ IDEA Lizenz IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
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
U IDEA IntelliJ IntelliJ IDEA automatische Formatierung deaktivieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
M Idea IntelliJ - Starten der Mainmethode ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
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
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
MamaMia44 Ich habe problem mit Intelej Idea IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
L JetBrains Idea - GWT Super Dev Mode kann nicht aktiviert werden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
S Fehlernde IDEA-Features in Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
Wildcard IDEA IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
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
LimDul IDEA IntelliJ Tipps für den Umstieg von Eclipse auf intelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
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
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
D Intellij mehrere Programme in einem Projekt bearbeiten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
M Intellij build jar funktioniert nicht ! IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
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
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
K IntelliJ unter Linux: Probleme beim Ausführen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
A IDEA IntelliJ IntelliJ Maven oder Webprojekt, kann keine normalen Java Klassen erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
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
U Problem mit Eclipse - WindowBuilder - memoryLeak? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
K Java Editor Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
B Eclipse Problem mit jar Datei? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
Robertop Eclipse EXE Icon fehlt im Explorer (Windows Problem?) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
B Problem bei der Ausgabe IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
melaniemueller Eclipse Problem mit dem Debugger IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
S Problem mit BlueJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
1 Problem beim JavaFX installieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 20
Splayfer Problem mit der Eclipse Autovervollständigung... IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
R Eclipse Cursor Problem bei Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
D Jenkins/Gradle maven-publish Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
F Eclipse Problem mit Aufhänger bei verschiedenen Prozessen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
H Selenium Problem mit Browsern IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
P Problem accessing /rap. Reason: ProxyServlet: /rap IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
V Eclipse:Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
P Eclipse Luna SR2 (4.4.2)- Problem bei hinzufügen von Software IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
P Eclipse Eclipse-Problem unter Debian IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
Tarrew Problem mit Maven und der Erkennung von generierten Antlr Files. IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
F Egit-Problem nach Merge-Konflikt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
Y GIT remote Problem keine Synchronisation IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
N NetBeans Javadoc Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M NetBeans und UTF8 Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
E Eclipse Eclipse building workspace Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
fLooojava Eclipse Problem mit Template proposals IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
M NetBeans Problem mit eMail Programm IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
R Eclipse Problem beim Export als Executable Jar IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4

Ähnliche Java Themen

Neue Themen


Oben