laeuchli
asked on
How to run the scrabblet app.
http://www.osborne.com/program/zip/java11cr.zip How do you connect to another game with the scrabble app from capther 29? Download the code form the site, compile it and tell me how to run it!
I will give a A
I will give a A
i didn't compile it but i looked at the zip file (chap29.zip) inside the main zip file... it looks like it was put together using an old zip version... try renaming all the .jav files to .java files, and maybe even the .htm to .html?
ASKER
I compiled it already. I did have to do what you said, but I already knew that. My problem is that when I run the program I can't get it to connect to the server. I am running the sever by typing Java Server, and the clinet, by running internet explorer. How do I get it to connect?
ok, i got it to connect just fine on mine... are you sure yours compiled with no errors? mine had some errors in Scrabblet.java and i had to change List to java.awt.List in two cases
i'm using jdk1.2 and netscape 4.7 with the java 1.2 plugin
i'm using jdk1.2 and netscape 4.7 with the java 1.2 plugin
ASKER
It just won't connect on my computer. It says it can'f find the local host. I am running the sever as I said with java Server. I have compiled fine.
when you run java Server does it say
Server listening on port 6564
???
which version of java are you using, which version of ie?
Server listening on port 6564
???
which version of java are you using, which version of ie?
ASKER
Yes is says that Server listening on port 6564. I can now connect on the machine that is hosting the server by typing appletviewer Scrabble.htm
However, the other machine on the lan does not see the host. I am running Java 1.1.8
However, the other machine on the lan does not see the host. I am running Java 1.1.8
first try it with only one machine and make sure it works ok... run the server and open two windows in your browser and play against yourself. one this works we can worry about web server configurations
ASKER
That worked fine.
ASKER
Still can't make if from the other machine though... Do you think it is possible to fix?
what web server are you using to deliver the .class and .htm files to the other machine?
ASKER
I was just running it over a network. Do I have to have a intranet to get this to work?
yes, an applet can only talk to the server it came from due to the security manager
when you run in over the lan the applet appears (to the browser) to come from your local pc due to the mapped drive or unc name and it won't be able to talk to the servlet on another computer
when you run in over the lan the applet appears (to the browser) to come from your local pc due to the mapped drive or unc name and it won't be able to talk to the servlet on another computer
ASKER
ok, It worked. Post for your points.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
oh, sorry I promised you a A. When I have a few more points, I will give you some.
that's ok, don't bother... use your points to ask something else or buy paq's
ASKER
Thanks