Click here to Skip to main content
15,945,603 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how it possible to run a java program without using main method

1 solution

No you can't. Every Java application must have at least one main method in order to start. You could make a Java library and then run specific methods via JNI from a C/C++ application, but what would be the point?
Share this answer
Sergey Alexandrovich Kryukov 7-Jan-16 9:52am    
Agree, a 5.
nithish praba 7-Jan-16 12:25pm    
thank you sir..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900