Re: Anyone Have Experience Using AWT in a WO App?
Re: Anyone Have Experience Using AWT in a WO App?
- Subject: Re: Anyone Have Experience Using AWT in a WO App?
- From: MadBrowser <email@hidden>
- Date: Thu, 9 Oct 2003 09:15:18 -0700
Thanks very much for trying to help me.
I added the headless flag in two places. One in the 'additional
arguments' for the instance. Also in the Application.java file, in the
constructor right after the call to super()... Looks like this:
System.setProperty("java.awt.headless", "true");
The XFree86 libs ARE installed on the machine. They live in
/usr/X11R6/lib. How can I check my LD_LIBRARY_PATH? Doing 'printenv'
doesn't show that defined when logged in as root... Root's
.bash_profile doesn't set it. Is it set by the system? This is RH Linux
7.2.
It never actually asked for a DISPLAY variable, I was just throwing out
ideas in my utterly frustrated state.
The only Java errors are NPEs. Not much to go on.
-Hunter
On Thursday, October 9, 2003, at 05:58 AM, Michael Parlee wrote:
Unfortunately I don't have experience with WO on Linux and I've never
used awt server side. Where did you put your -Djava.awt.headless=true
flag?
Also, while the full XFree86 is not required to be installed, the
XFree86 libs are required for headless operation, so you need to make
sure they are present. I'm not sure how to tell the jvm where to find
those libs though... ah, apparently with LD_LIBRARY_PATH ( or libconf
I assume ).
Here is a link to a thread on the topic
http://forum.java.sun.com/
thread.jsp?forum=20&thread=406987&tstart=0&trange=15
If it keeps asking for a DISPLAY variable there is a problem somewhere
in the code. DISPLAY doesn't need to be set for headless mode.
Are you logging the java errors somewhere? Is it just a null pointer
exception or is some other exception happening in advance of that?
On Wednesday, October 8, 2003, at 08:19 PM, MadBrowser wrote:
I continue to have tons of trouble running my WO app on Linux. It
contains some imageio code and it works on OS X.
Does anyone have any experience using AWT or javax.imageio in a WO
app? If so, would you mind contacting me? I'm going crazy on this >> one.
Thanks,
Hunter
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.