Skip to main content
Home Documents Game Manuals MRJ Minimal Webserver
MRJ Minimal Webserver

MRJ Minimal Webserver

Game Manuals · PDF
FilenameMRJ_Minimal_Webserver.pdf
Size0.09 MB
Subsection MRJ Minimal Webserver
Downloads1
Enjoying MacTrove? Anonymous downloads are free and unlimited. Create a free account to track favorites, contribute metadata corrections, and join the community chat.
Reader
MRJ Minimal Webserver
/
Loading…
OCR / Text contents
MRJ Minimal Webserver This application demonstrates the power of Java and of Macintosh Runtime for Java (MRJ) - Apple's implementation of the Java virtual machine for MacOS. In less than 600 lines of source code (including comments and whitespace), or less than 32Kb of object code you get a working, multithreaded webserver. All this packaged as a standalone, double- clickable MacOS application that that looks and feels as it should. [About the WebServer | About MRJ | System Requirements | Running the WebServer | Troubleshooting | Source Code ] System Requirements MRJ 1.02 (comes with MacOS 8), but preferably MRJ 1.5 you can download either from http://applejava.apple.com active TCP/IP at least enable TCP/IP and give your machine a IP address Running the WebServer With MRJ installed on your MacOS computer, double-click the program icon named 'MRJ Minimal WebServer', give it some time to come up (due to heavy usage of multithreading, the user-interface comes up a bit slow). If all is well, you see the message 'WebServer started.', otherwise some error condition occured and a message will be printed in the console transcript window. Use a browser on your own or on another machine on the same TCP/IP network to connect to the web server by typing its IP address in the location field. If you are on the same machine, you can also type the localhost address 127.0.0.1. Have fun! Troubleshooting If the web server did not start up as it should, it printed an error message in the console transcript window instead of the message 'WebServer started.'. In almost all cases the error will be related to the fact that TCP/IP is not started up correctly - double check this using the TCP/IP control panel. Source Code You can download the full source code of the MRJ Minimal WebServer as a MetroWerks CodeWarrior Pro 1 MacOS project from http://www.ping.be/BetaNine. Based on code by David Brown of the Java Developers Connection. Written by Sven Van Caekenberghe of Beta Nine.
mp.ls