File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

program without main

 
shivdhwaj pandey
Ranch Hand
Posts: 67
Java PHP Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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{
static{
System.out.println("hello");
System.exit(0);
}
}

 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Palak Mathur
Ranch Hand
Posts: 321
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this thread;- http://www.coderanch.com/t/567731/Java/java/we-develop-java-application-without

If you would have checked the first page of this forum (features new in java 7), then you would have found it there.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic