Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

none applicable in Eclipse IDE

 
Shyam Hai
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
none applicable in Eclipse IDE

Today i met one problem.

I creat new class
and i going to run that application.

That time The IDE display just "none applicable ".

How can i rectify.Please...
 
Steve Luke
Bartender
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Provide a public static void main(String[] args) method.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15274
38
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to make sure that the editor containing your class (with main method) has the focus, otherwise Eclipse doesn't understand what you're trying to run.
 
Shyam Hai
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Steve Luke,

public static void main(String[] args) method.

Now its ok.
Because before i didnot give (String[] s).

Thanks..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic