• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 726
  • Last Modified:

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
0
laeuchli
Asked:
laeuchli
  • 9
  • 8
1 Solution
 
adam923Commented:
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?
0
 
laeuchliAuthor Commented:
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?
0
 
adam923Commented:
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
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
laeuchliAuthor Commented:
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.
0
 
adam923Commented:
when you run java Server does it say
Server listening on port 6564
???
which version of java are you using, which version of ie?
0
 
laeuchliAuthor Commented:
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
0
 
adam923Commented:
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
0
 
laeuchliAuthor Commented:
That worked fine.
0
 
laeuchliAuthor Commented:
Still can't make if from the other machine though... Do you think it is possible to fix?
0
 
adam923Commented:
what web server are you using to deliver the .class and .htm files to the other machine?
0
 
laeuchliAuthor Commented:
I was just running it over a network. Do I have to have a intranet to get this to work?
0
 
adam923Commented:
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
0
 
laeuchliAuthor Commented:
ok, It worked. Post for your points.
0
 
adam923Commented:
glad to be of service!
0
 
laeuchliAuthor Commented:
oh, sorry I promised you a A. When I have a few more points, I will give you some.
0
 
adam923Commented:
that's ok, don't bother... use your points to ask something else or buy paq's
0
 
laeuchliAuthor Commented:
Thanks
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 9
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now