I think a small setup program that generates this default property file
maybe the answer too. I am thinking of a simple JTable name and value.
Am not sure if I follow you.
Do you mean that I should set this in my application. Because then we have
a chicken and egg scenario. I want to use the properties to define where
the application gets resources for images, audio, HTML files.
It is also impossible to have access to all possible platforms. What is needed
is portable and customisable way of setting up default properties per user per
machine. Something that work on non-UNIX machines as well.
Pete
______________________________ Reply Separator _________________________________
Subject: Re: Reading (All) Environment Variables in W95/NT
Author: Gerrit.Cap ([EMAIL PROTECTED]) at lon-mime
Date: 14/12/98 11:49
There is a port available of a lot of unix commands for NT called the MKS
toolkit, look for more info on www.mks.com. There are even some public
domain ports but MKS is a low cost and good investment.
On the other hand, if you want to make your software platform independant I
would stick around with basic java functionalities. So what I would do is
to use in your java program a self defined properties file and read it
through the Properties.load method. And out of your program build for each
platform a way to generate that properties file. This can than be done on
all platforms you want to run your applications on. There are platforms (eg
Macintosh) where there is to my knowledge no environment available.
Gerrit.
At 09:58 AM 12/14/98 +0000, you wrote:
>I am getting some requests from NT users on an application that I wrote on
>a Java/Linux environment. I have a Java application that runs fine on Unix
>and I am trying to get to run perfectly on NT. I have a run time shell
>script that passes the entire environment to the JVM using a system
>property.
>
> java -Denv=`env` xenon.xsql.editor.Xsql
>