Hellö,
ich bin noch kompletter Anfänger im Programmieren und versuche gerade mein erstes Programm zu kompilieren (über CMD). Leider kommen Fehlermeldungen, weil die Imports nicht ausgeführt werden können :/... Ich hab die Umgebungsvariable Path schon auf den bin-Ordner gesetzt, aber es funktioniert trotzdem nicht.
Ich würde mich freuen, wenn mir jemand helfen könnte
Hast du denn schon probiert ein simples "Hello World" Programm zu kompilieren?
Wenn nicht, versuche das doch mal.
Ansonsten mal Fehlermeldung und evtl. auch Code posten. Dazu bitte die passenden Code-Tags verwenden.
Bido6.java:4: error: cannot find symbol
public class Bido6 extends JFrame
^
symbol: class JFrame
Bido6.java:2: error: package java.swing does not exist
import java.swing.*;
^
Bido6.java:10: error: cannot find symbol
Icon icon = new ImageIcon ("Bild1.jpg");
^
symbol: class Icon
location: class Bido6
Bido6.java:10: error: cannot find symbol
Icon icon = new ImageIcon ("Bild1.jpg");
^
symbol: class ImageIcon
location: class Bido6
Bido6.java:11: error: cannot find symbol
JLabel label1 = new JLabel("Marvel", JLabel.CENTER);
^
symbol: class JLabel
location: class Bido6
Bido6.java:11: error: cannot find symbol
JLabel label1 = new JLabel("Marvel", JLabel.CENTER);
^
symbol: class JLabel
location: class Bido6
Bido6.java:11: error: cannot find symbol
JLabel label1 = new JLabel("Marvel", JLabel.CENTER);
^
symbol: variable JLabel
location: class Bido6
Bido6.java:12: error: cannot find symbol
JLabel label2 = new JLabel("the Avengers", JLabel.CENTER);
^
symbol: class JLabel
location: class Bido6
Bido6.java:12: error: cannot find symbol
JLabel label2 = new JLabel("the Avengers", JLabel.CENTER);
^
symbol: class JLabel
location: class Bido6
Bido6.java:12: error: cannot find symbol
JLabel label2 = new JLabel("the Avengers", JLabel.CENTER);
^
symbol: variable JLabel
location: class Bido6
Bido6.java:13: error: cannot find symbol
JLabel label3 = new JLabel(icon);
^
symbol: class JLabel
location: class Bido6
Bido6.java:13: error: cannot find symbol
JLabel label3 = new JLabel(icon);
^
symbol: class JLabel
location: class Bido6
Bido6.java:19: error: cannot find symbol
Container c = getContentPane();
^
symbol: method getContentPane()
location: class Bido6
Bido6.java:25: error: cannot find symbol
setDefaultCloseOperation(EXIT_ON_CLOSE);
^
symbol: variable EXIT_ON_CLOSE
location: class Bido6
Bido6.java:26: error: cannot find symbol
setSize(300,250);
^
symbol: method setSize(int,int)
location: class Bido6
Bido6.java:27: error: cannot find symbol
setVisible(true);
^
symbol: method setVisible(boolean)
location: class Bido6
16 errors