Article View: borland.public.jbuilder.java.language
Article #18939Re: Chess example, "image too small error"?
From: Greg Hamer
Date: Fri, 27 Mar 1998 00:00
Date: Fri, 27 Mar 1998 00:00
54 lines
2565 bytes
2565 bytes
The compiler warning about the image directory can be ignored - the image directory is added to the project as a package, so the compiler expects to find java source in it. When it is run as an application, you need to supply the hostname of the server and the location of the image for the pieces as parameters - the defaults supplied almost never work. If you are running the ChessViewer application on the same machine as the chessserver, and it is not a web server then Run | parameters change the command line parameters to host=localhost images=file:///d:/jbuilder/samplesborland/samples/apps/chess/client/images/cmpieces.gif modified to reflect wherever it was that you installed jbuilder There is a readme.html in the project as well Bernardo Prigge wrote: > HI, > > I tried the chess example but during compilation gives a warning that > the image class is empty. > During execution I get the message "image is too small" . The chess > board is not displayed and the window message says "setting initial > position". > > I can open the chessviewer as an applet and everything works fine. The > window on the appletviewer is larger than the one that gets open using > the clientviewer. I changed the initial size and got a larger window > but the board was not displayed. > > The server is working find, I can start mutliple clients and login as > different users each with the same problem. The other functionality > (opening an old game etc) works fine. > > Has anyone > being able to compile without warnings and sucessfully played > the game over the network? > > What is missing? Tech support told me that was a bug on the 1.0 > version and was fixed under 1.0.1; but I am experiencing the same > problem with 1.0.1. Please > don't tell me is fixed under 2.0. it has to work under 1.1. I believe > is something very simple that is preventing the board from being > displayed but I > can figure it out. > > Thanks in advance > > Bernardo
Technical Details
Message-ID:
<351BF526.4F672222@wpo.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<351BD6ED.B06FD528@boombox.micro.umn.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,6ef4afe1f23f10bc X-Google-Attributes: gidf74b3,public From: Greg Hamer <ghamer@wpo.borland.com> Subject: Re: Chess example, "image too small error"? Date: 1998/03/27 Message-ID: <351BF526.4F672222@wpo.borland.com> X-Deja-AN: 338336236 Content-Transfer-Encoding: 7bit References: <351BD6ED.B06FD528@boombox.micro.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Borland International Newsgroups: borland.public.jbuilder.java.language