Computing.Net > Forums > Web Development > Jave app can't locate its files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Jave app can't locate its files

Reply to Message Icon

Name: Kaiwen
Date: November 12, 2004 at 00:34:10 Pacific
OS: WinXP
CPU/Ram: Athlon 2500 1GB ram
Comment:

I'm using KF Webserver to serve up a number of websites from my home PC. I'm trying to bring online a site for playing Infocom text adventure games. For those of you not familiar with Infocom games, they were a series of popular adventure-style games produced back in the 1980s. The games themselves consist of two parts: the data file and an interpreter that reads the data file and provides the user interface.

There is an Infocom game interpreter written in java called ZPlet. A number of sites are using ZPlet to enable online playing of Infocom games. I'm trying to do the same, but am having difficulty.

All I've done so far is copy the following page down to my local machine:

http://www.xs4all.nl/~pot/infocom/DEADLINE.HTML

In the root directory of my test site, I've put 1) DEADLINE.HTML (renamed to INDEX.HTML), 2) the game data file DEADLINE.Z3, and 3) the ZPlet java app files. Everything is in the root directory.

INDEX.HTML consists in its entirety of this:

[------ BEGIN -------]

<title>Zplet: DEADLINE: An INTERLOGIC Mystery</title> <hr> <applet archive="zplet.jar" code="Zplet.class" width=512 height=387>
<param name="Foreground" value="white">
<param name="Background" value="black">
<param name="StatusForeground" value="black">
<param name="StatusBackground" value="white">
<param name="StoryFile" value="deadline.z3">
</applet>
<hr> Please note that SAVE and RESTORE may not available due to applet security restrictions. Leaving this page may or may not restart the game depending on the behavior of your browser.

[------ END -------]

If I go to the above link at www.xs4all.nl the game plays from there (exactly the same code also works at http://www.speakeasy.org/~russotto/zplet/ifol.html ). If I load INDEX.HTML on my machine locally, it plays from there. But if I connect to my own site through the Internet, the java application behaves as if it can't find the game data file.

This wouldn't seem to be a coding issue, as the code works on other sites. Is there something I'm not aware of about java and permissions?

Lee Kaiwen, Taiwan



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Jave app can't locate its files

can't edit or add records - asp.net www.computing.net/answers/webdevel/cant-edit-or-add-records-aspnet/109.html

Explorer can't view my site www.computing.net/answers/webdevel/explorer-cant-view-my-site/3668.html

Why can't I access my own files???? www.computing.net/answers/webdevel/why-cant-i-access-my-own-files/458.html