File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 67

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: 10441

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: 316

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
I agree. Here's the link:
subject: program without main
It's not a secret anymore!