🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.linux
Article #253

Re: Building using the command line

#253
From: Shankar Unni
Date: Fri, 17 Sep 2004 19:17
20 lines
2088 bytes
Paul Nichols (TeamB) wrote:

>>
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
>>at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:81) at
> 
> As per Bill Joy, this seems to indicate that the Graphics library the j2sdk
> is looking for, cannot be located. That could be due to the fact that the
> Motif library loading is not found, wrong glib version, etc. 

Actually, it's much simpler than that. The X11 version of AWT tries to 
open the DISPLAY in a static constructor of one the AWT classes, and in 
this case, since the display cannot be opened, the static constructor 
throws an exception, aborting the loading of the class.

You'll then get a NoClassDefFound error.

I guess "jbuilder -build" is still attempting to open the display, even 
though it's really doing only a batch operation. A common failing in 
many IDEs (e.g. Visual C++).
Technical Details
Message-ID: <414b3871$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41404b6b@newsgroups.borland.com> <41409e4c$1@newsgroups.borland.com> <4141ffa3$1@newsgroups.borland.com> <4145da92$1@newsgroups.borland.com> <41483040$1@newsgroups.borland.com> <414a3b0a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 107590,92dde45bd29539e1
X-Google-Attributes: gid107590,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 17 Sep 2004 12:17:49 -0700
From: Shankar Unni <shankarunni@netscape.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Thunderbird/0.8 Mnenhy/0.6.0.101
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.linux
Subject: Re: Building using the command line
References: <41404b6b@newsgroups.borland.com> <41409e4c$1@newsgroups.borland.com> <4141ffa3$1@newsgroups.borland.com> <4145da92$1@newsgroups.borland.com> <41483040$1@newsgroups.borland.com> <414a3b0a@newsgroups.borland.com>
In-Reply-To: <414a3b0a@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68.120.146.125
Message-ID: <414b3871$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095448689 68.120.146.125 (17 Sep 2004 12:18:09 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail