• Post Reply Bookmark Topic Watch Topic
  • New Topic

I can't find the main  RSS feed

 
Ben Brandes
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may sound very ignorant, but I have been looking for ten minutes, and I can't find the main with the original code (you know, public static void args, etc). I am beginning to get frustrated. Could someone tell me where I could find this?
 
Carol Murphy
village idiot
Bartender
Posts: 1211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are you looking for "main"? Are you looking in a java source code file, or are you looking for a definition of main in a text book, or .......?
 
Ben Brandes
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The java scource file.
 
Ben Brandes
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*source
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ben Brandes wrote:This may sound very ignorant, but I have been looking for ten minutes, and I can't find the main with the original code (you know, public static void args, etc). I am beginning to get frustrated. Could someone tell me where I could find this?



Not all classes have a main() method. Many classes are just used by other classes. And in the case of Servlets, EJBs, JMX, etc., the classes are called from an application server -- whose source code (assuming that you have access to it) does have a main() method somewhere.

Henry
 
Ben Brandes
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am literally just starting Java today, so... Anyway, I can't find ANY source code at all. There is only one class, so it can't be being used by another class.
 
Ben Brandes
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind: I figured it out!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!