Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get Name of the java project

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,

How can i get application[project] Name in simple java class ?
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what kind of application ?

1) Web application - contextRoot will give it to you
2) An application inside app server - find it from the application context.
3) A single class java application - this.getClass().getName()
4) A multiclass java app which doesnt fall into any of the above categories - god help you !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic