import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;public class hellow extends JFrame
{
public hellow()
{
this.setTitle("");
this.setLayout(null);
this.setBounds(100,200,300,200);
this.setVisible(true);
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0);

}
});
}
public static void main(String args[])
{
new hellow();
}
}
文件名为hellow.java
错误提示:Could not find the main class: hellow.java.  Program will exit.
这是为什么呢?代码书从书上来的。。

解决方案 »

  1.   

    Famous global IT company 上海
    Position: Senior Java Software Engineer
    Business Unit: Famous global IT company - BAS - China - ITSEResponsibilities
     Lead the development of complex software product and mobile applications. 
     Design layered application, including user interface, business functionality, and database access. 
     Work with other engineers, managers, product managers, QA, and operation teams to develop innovative solutions that meet et needs with respect to functionality, performance, scalability, and reliability while meeting realistic implementation schedules and adhering to development goals and principles. 
     Estimate engineering efforts, plan implementations, and rollout system changes. 
     Share release management duties during feature rollouts and share on-call responsibilities. 
     Developing, unit testing, maintenance and release of software products under Agile patterns.
     Experience in developing highly scalable applications a major plus. 
    Job Requirements 
     BS/BA in CS or related field. 
     5+ years experience in requirements analysis, design, coding and testing of scalable, distributed, fault-tolerant applications.
     Expertise required in object-oriented design methodology and enterprise application development in Java . 
     Hands-on experience with J2EE/J2SE application. 
     Hands-on experience in Agile projects.
     Good at OO methodology, and familiar with Java design patterns.
     Proven result-oriented person with a delivery focus in a fast pace, high quality environment.
     Self-motivated and work under pressure.
     Solid capabilities of self study for new technologies.
     Knowledge of software product development is a major plus
     Fluent English in both speaking and writing.有意者加MSN:[email protected]
      

  2.   

    我用eclipse和命令行都不行啊。。
    确实打的javac hellow.java啊
      

  3.   

    试过了,没问题啊....javac hellow.java
    java hellow
      

  4.   

    看看你的环境设置,classpath jdk version