Answer the question
In order to leave comments, you need to log in
What to do Eclipse does not compile the program?
Eclipse does not create a .class for the program, that is, in fact, it does not compile it, no errors are displayed, Debug cannot be reproduced. All found methods did not help.
import javax.swing.JFrame;
class ShowAFrame {
public static void main(String args[]) {
JFrame myFrame = new JFrame();
String myTitle = "Telegram";
myFrame.setTitle(myTitle);
myFrame.setSize(300, 200);
myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
myFrame.setVisible(true);
}
}
This is a test code, we usually do not work with java
Answer the question
In order to leave comments, you need to log in
The fact that no errors are displayed is strange. Compiling Java?
What version of Eclipse? What version of Java? Is the path to the Java SDK specified in Eclipse?
Can you run the simplest Hello world or not? If not - what happens?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question