G
G
German Slaschev2016-03-15 23:45:39
Java
German Slaschev, 2016-03-15 23:45:39

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

1 answer(s)
A
Alexey Chernysh, 2016-03-16
@geraslaschev

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 question

Ask a Question

731 491 924 answers to any question