FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Coding/Development
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-08-2000, 03:26 AM   Postid: 18676
MTDesigns
Site Owner
 
MTDesigns's Avatar

Forum Notability:
83 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Aug 1999
Location: U.S.
Posts: 1,680
Class files

Hi!

I'm adding more games to my site, but these 2 particular games (I downloaded the source code) contain .class & .java files.  I'm not really sure on how/where to put those files. Do I just upload them as they are? What program do I use to read them?  And how do I link to them?

TIA

------------------
Joi
My ParenTime (Info Community)
http://www.myparentime.com
STOP Sex Offenders (Child Safety)
http://www.stopsexoffenders.com
MTDesigns is offline   Reply With Quote
Old 01-08-2000, 03:49 AM   Postid: 18677
Tog
Visitor
 
Tog's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Jan 1999
Location: Edmonton, Alberta, CANADA
Posts: 25
The .java files are the source files. You don't need them to use the games on your website. The .class files is what results when the .java files have been processed (compiled).

To allow your applets to run from your webpage, all you need to do is identify which one of your .class files is the main applet one (assuming there's more than one .class file in an applet). Having the name of the main applet class, you add an APPLET tag to your html page, specifying the name of the main applet class you identified above. Example (required html angle brackets omitted)

APPLET code="MainApplet.class" width=100 height=100

Oh yes, remember to upload the .class files to the same location where your HTML file containing the above APPLET tag is stored.

Tony
Tog is offline   Reply With Quote
Old 01-08-2000, 03:54 AM   Postid: 18678
MTDesigns
Site Owner
 
MTDesigns's Avatar

Forum Notability:
83 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Aug 1999
Location: U.S.
Posts: 1,680
Thanx Tony!  Now let's see if I can get them to work .
------------------
Joi
My ParenTime (Info Community)
http://www.myparentime.com
STOP Sex Offenders (Child Safety)
http://www.stopsexoffenders.com
MTDesigns is offline   Reply With Quote
Old 01-08-2000, 05:22 AM   Postid: 18679
MTDesigns
Site Owner
 
MTDesigns's Avatar

Forum Notability:
83 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Aug 1999
Location: U.S.
Posts: 1,680
Well I got the first one to work ....now that I've got the idea, I'm sure I'll be able to do the others.

Thanx again !

------------------
Joi
My ParenTime (Info Community)
http://www.myparentime.com
STOP Sex Offenders (Child Safety)
http://www.stopsexoffenders.com
MTDesigns is offline   Reply With Quote
Old 01-08-2000, 07:25 PM   Postid: 18680
Tog
Visitor
 
Tog's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Jan 1999
Location: Edmonton, Alberta, CANADA
Posts: 25
Glad I could help!

Tony
Tog is offline   Reply With Quote
Old 01-10-2000, 01:42 PM   Postid: 18681
MTDesigns
Site Owner
 
MTDesigns's Avatar

Forum Notability:
83 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Aug 1999
Location: U.S.
Posts: 1,680
Hey!  I've got this one game that has a few class files, and a few images and sound files.  I know that all these files need to be in the same directory, but it doesn't seem to want to load.  I have the images in my images directory, and the sound & class files in the same directory as the html page.  Any ideas as to why it wouldn't work?  TIA!
------------------
Joi
My ParenTime (Info Community)
http://www.myparentime.com
STOP Sex Offenders (Child Safety)
http://www.stopsexoffenders.com
MTDesigns is offline   Reply With Quote
Old 01-10-2000, 02:05 PM   Postid: 18682
Tog
Visitor
 
Tog's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Jan 1999
Location: Edmonton, Alberta, CANADA
Posts: 25
What kind of error messages are you getting? On most browsers, there's a "View java console message/java message" option where applet's can print error messages to when they are unable to be loaded. If you could post these error messages, I may be able to identify what's wrong.

There's two possible cases why the applet doesn't work: one, the browser cannot find the applet's main class; two, the applet can load but is unable to find a resource it needs such as a image or sound file. If you applet has a JAR compressed version, use that one instead of the bare .class + resources because it's easier to setup applets using JARs which are basically ZIP files containing applet's code and resources organized so that you don't have to worry what directory you store the images & sound files.

Tony
Tog is offline   Reply With Quote
Old 01-10-2000, 02:41 PM   Postid: 18683
MTDesigns
Site Owner
 
MTDesigns's Avatar

Forum Notability:
83 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Aug 1999
Location: U.S.
Posts: 1,680
This is the error code I'm receiving:

load: main class not found

I don't know why it isn't able to find it...it's located in the same directory as the other class files.  At this point I have no idea.  I've written to the author, but I'm not sure whether he'll be able to offer any help :-).
------------------
Joi
My ParenTime (Info Community)
http://www.myparentime.com
STOP Sex Offenders (Child Safety)
http://www.stopsexoffenders.com
MTDesigns is offline   Reply With Quote
Old 01-10-2000, 03:05 PM   Postid: 18684
MTDesigns
Site Owner
 
MTDesigns's Avatar

Forum Notability:
83 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Aug 1999
Location: U.S.
Posts: 1,680
After viewing the java code error, I have a feeling that the javascript site (that I found this game on), messed up a bit.  I seems that there is other information included in that java console that refers to other applets on their site.  Here's the error:

Warning: Thread.suspend() was called; Navigator deadlock might result

I'm going to see if I can find this game on another javascript site .
------------------
Joi
My ParenTime (Info Community)
http://www.myparentime.com
STOP Sex Offenders (Child Safety)
http://www.stopsexoffenders.com
MTDesigns is offline   Reply With Quote
Old 01-10-2000, 04:01 PM   Postid: 18685
MTDesigns
Site Owner
 
MTDesigns's Avatar

Forum Notability:
83 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Aug 1999
Location: U.S.
Posts: 1,680
ok.....I got the applet to run, but the images and sounds are not working.  The codebase=classes ...I uploaded all the class files into this directory, but where would I put the images and sound files?  *heavy sigh*...I'm gonna get this!!!

 
MTDesigns is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 10:19 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.