Passing environment variables to a JVM, in a platform-independent manner

后端 未结 3 973
离开以前
离开以前 2020-12-30 23:30

I\'m developing a J2EE application that runs in JBoss on a Windows Vista machine, but the application will end up on a Linux machine. Is there a way to pass in the value of

3条回答
  •  感动是毒
    2020-12-31 00:10

    How I interpret the java tutorial on this is that getenv works in a platform independent way, but that you have to keep in mind that variables are not consistently named across platforms. Since you seem to set the var yourself, this does not apply to you.

提交回复
热议问题