This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: System properties
Hi,
Also, how did you happen to notice that they are missing?
I have a Java application which generates a log file, for making it
more maintainable (log errors, user actions and so on). Since this is
a multilingual (and also bidirectional) app, I put user country and
language at the beginning of each log session in addition to
java.runtime.name property to make sure if user's JVM is supported.
Here I filled a bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30884
I'm happy that although my app doesn't work on GCJ on Ubuntu 6.06 (due
to problems with regex, dom and much more), it works fine on 6.10 ;)
Thanks again,
Best.
On 2/20/07, Mark Wielaard <mark@klomp.org> wrote:
On Tue, 2007-02-20 at 11:02 +0100, Marco Trudel wrote:
> Tom Tromey wrote:
> >>>>>> "Mohsen" == Mohsen Saboorian <mohsens@gmail.com> writes:
> >
> > Mohsen> Why are these system properties absent in GCJ?
> > Mohsen> - user.country
> > Mohsen> - java.runtime.name
> >
> > Please file a bug report. Thanks.
> > Also, how did you happen to notice that they are missing?
>
> Is this a bug? It's not guaranteed that they're set:
> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getProperties()
No, but if some program still uses them we do like to know about it so
we can see if it makes sense to support them.
Cheers,
Mark