The Blackdown porting group has been thinking about changing the way the
Linux Java Wrapper works so that it automatically detects if it should
try to run the "X11" version of Java or not. (Meaning the version that
has the AWT peers in it)
The concept is that if DISPLAY is not set it will automatically set
the NS_JAVA variable to TRUE.
This is mainly to help clear up problems such as these below. It will
reduce the number of things that the user needs to configure and make it
a bit more automatic, and hopefully reduce the number of times these types
of questions come up.
As it turns out, we are about to do a JDK 1.1.7 V2 release in order to work
with the new glibc 2.1 (plus a few other fixes) and I was wondering if
there is a problem with doing this change in the 1.1.x JDK. (We also want
to do this in the 1.2 release but it is a bit further down the road)
The result would be that if you don't have X installed or are running this
from a console without X11 (thus without DISPLAY set) it will run the
version without the dependancy on X11 - without having to RTFM and set
the NS_JAVA environment variable.
The NS_JAVA environment variable will still be available for forcing the
issue (or you could unset the DISPLAY variable) but we hope that this
change could make things a bit more automatic. Plus, since the JVM will
fail to display AWT componenets without the DISPLAY variable it really
should not change the behavior other than the type of error message
that would be generated when trying to run AWT code without a X server.
The question is: Is there a strong feeling against such a change?
--------
On Mon, 03 May 1999 23:41:25 -0400, James Seigel wrote:
>oh yeah are you using ny image libs?
>Spencer Marks <[EMAIL PROTECTED]> wrote on 3/5/99 8:22 pm:
>
>Make sure you are not using .awt packages because if so you might run
>into the problem that they require a valid DISPLAY environment
>variable. (I just encountered a similar situation...)
>
>Spencer
>
>[EMAIL PROTECTED] (John Kozubik) writes:
>> Hi.
>>
>> We have a custom server that we wrote in java and runs on linux. This
>> custom server does nothing but open and close sockets and transfer a few
>> bits of data here and there - needless to say it just runs off of the
>> command line and that is all there is to it.
>>
>> So, in the interest of building the most spartan and clean linux box I
>> could, I reloaded the machine without any X-window support, X11, or any
>> garbage like that that we will never need.
>>
>> Now java does not work.
>>
>> Could you please explain to us how we can run our java command line program
>> without worrying about silly things like X11 printer libraries? My
>> programmer is under the impression that we MUST install all this GUI crap
>> just to get out simple command line utility working. I on the other hand
>> think that this is an absurd conception.
>>
>> Any information would be appreciated,
Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]