This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Features new in Java 7 and the fly likes program without main Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Features new in Java 7
Bookmark "program without main" Watch "program without main" New topic

program without main

shivdhwaj pandey
Ranch Hand

Joined: Nov 12, 2011
Posts: 63

how to run program without main
as in java 6 its runing but in java 7 compile succesfully but run time exception main method not found
class test1{

with regards,
Shivdhway Pandey
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9315

Take a look at some of the threads listed under "Threads other viewed" table at the bottom of this page. Or you can even search for this question in the forums since it's already been discussed before.

[My Blog] [JavaRanch Journal]
Palak Mathur
Ranch Hand

Joined: Jan 29, 2007
Posts: 313

Check this thread;-

If you would have checked the first page of this forum (features new in java 7), then you would have found it there.

Palak Mathur | My Blog | TechJaunt | What is JavaRanch? | List of All FAQs
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: program without main
Similar Threads
With out Main()
Do Java program can run without main function()? If not please solve this problem
how to start before the main starts
Running a java program with full path\class name
Java program without writing main() method?