• Post Reply Bookmark Topic Watch Topic
  • New Topic

Generate a class without a main method  RSS feed

 
niras iva
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello sir how can i generate the class file without using main function?
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
niras iva wrote:hello sir how can i generate the class file without using main function?
The same way as you would create a class file with a main method. You compile the source code with javac. There is nothing special about the main method - it is not mandatory to have one in every class.
 
niras iva
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry to generate the .class file without using main function
My Application is in wowza server,i want to create the .class file
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joanne has already told you what to do; if you still have a problem please explain the full details.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!