This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How to get Name of the java project Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "How to get Name of the java project" Watch "How to get Name of the java project" New topic
Author

How to get Name of the java project

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi Folks,

How can i get application[project] Name in simple java class ?
Dawn Charangat
Ranch Hand

Joined: Apr 26, 2007
Posts: 249
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 !!!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to get Name of the java project
 
Similar Threads
Changing the project type in wsad
how to update a property file?
How to get the path of property file.
problem in making EJB3.0 project/application in europa eclipse..
Regarding Visual Age for Java