Results 1 to 5 of 5
  1. #1
    anchitanc is offline Member
    Join Date
    Oct 2010
    Posts
    44
    Rep Power
    0

    Default load environment variable before application run

    hi all,

    i have application which required some environment variable need to be load first.
    so is there and way by that i can load all my required environment variable byputting some code in main class.

    thanks

  2. #2
    agentkiran007 is offline Member
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default Re: load environment variable before application run

    If u r using jboss as app server, it is providing a feature defining Env variables in properties-service.xml file (\jboss-Home\server\node-no\deploy). U will get these variable values by calling System.getProperty("Property_Name") in u r code.

  3. #3
    anchitanc is offline Member
    Join Date
    Oct 2010
    Posts
    44
    Rep Power
    0

    Default Re: load environment variable before application run

    i am using static application(applet) .. so is there any way to do that ??

  4. #4
    agentkiran007 is offline Member
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default Re: load environment variable before application run

    May be u will get some information from this Thread.

    How do I set environment variables from Java? - Stack Overflow

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,229
    Rep Power
    19

    Default Re: load environment variable before application run

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Environment variable shows different from editable value
    By projecttoday in forum New To Java
    Replies: 6
    Last Post: 12-01-2010, 12:47 AM
  2. Java swing Application for J2EE Environment
    By saranbg2 in forum AWT / Swing
    Replies: 0
    Last Post: 12-15-2009, 10:46 AM
  3. Setting the environment variable for j2sdk
    By kiki2009 in forum Java Servlet
    Replies: 3
    Last Post: 07-04-2009, 05:14 AM
  4. set environment variable in unix using java program
    By java_kick in forum Advanced Java
    Replies: 3
    Last Post: 03-16-2009, 12:26 PM
  5. Passing Environment Variable in Eclipse Europa
    By ajaymenon.k in forum Eclipse
    Replies: 0
    Last Post: 11-19-2007, 10:08 AM

Posting Permissions

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