Results 1 to 3 of 3
  1. #1
    AlwaysJava is offline Member
    Join Date
    Oct 2008
    Posts
    5
    Rep Power
    0

    Default Application Name and Version

    I am creating a utility class that will display and log error messages. It will be used by multiple applications. I need to log the application name and version number with the error. Is there a good way to pull that information from the application that is using the class? Or do I have to have each application pass that information to the class? Thanks.

  2. #2
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

    Default

    Each app has to supply that information to your class. You should setup a parameter format in which you want to other to supply to your class.

    Luck,
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  3. #3
    AlwaysJava is offline Member
    Join Date
    Oct 2008
    Posts
    5
    Rep Power
    0

    Default

    I thought that's what I'd have to do. I was hoping that maybe there was a clever way to do it that I didn't know about. Thanks for your help.

Similar Threads

  1. Which version is best Eclipse 3.2.1 or 3.1.2
    By jaisastha in forum Eclipse
    Replies: 1
    Last Post: 01-13-2009, 01:11 PM
  2. How to upgrade Java version in an application
    By New_ToJava in forum New To Java
    Replies: 37
    Last Post: 11-11-2008, 03:22 PM
  3. version of java????
    By j2vdk in forum New To Java
    Replies: 6
    Last Post: 09-07-2008, 05:34 PM
  4. using different JDK version in one IDE
    By happyknappy in forum New To Java
    Replies: 3
    Last Post: 09-02-2008, 03:10 PM
  5. to version
    By Alan in forum New To Java
    Replies: 2
    Last Post: 05-31-2007, 07:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •