View Full Version : Lake.Class file question
sssalas
08-01-2002, 03:50 PM
Hi,
What program are you suppost to use to upload and or open a Lake.Class file using Win.95 ?
Thank You!
ShriekForth
08-01-2002, 04:24 PM
The .class file is probably a java applet. You would need an applet viewer, or a JVM plug-in for your browser. Then you would need to know the parameters that the class needs. If it's like the one I am thinking of, it will need an image to "reflect". It would be best to find the documentation on the class, or view the page that it came from to see how it was implemented.
ShriekForth
sssalas
08-01-2002, 05:46 PM
Hi
Thank you for your reply, I was attempting to put this applet on my website following the instructions, but didn't know what program to use to open the Lake.Class file to my hard drive at.
http://www.javascriptkit.com/java/java12.shtml
No, I don't know what Im doing!! But , Thank you none the less!!!! And will check out what an applet viewer is and or a JVM plug in is.
I even posted in the wrong section!!!! Hummm....... Ooops hope this reply gos to the right section.
Best regards,
boxer_1
08-01-2002, 05:51 PM
No worries :). You don't want to open the .class file, you need to upload it to the same directory as the page containing the code for your applet is in. What do you currently use to upload you .html files? Just place the coding for the applet into the page you want the applet (follow the instructions on the applet's page carefully), upload the page, and upload the .class file to the same directory. Good luck ;).
sssalas
08-02-2002, 04:01 PM
Dear Boxer 1
I was being prompted to open the file when I clicked on the link to save it to my Hard drive, using IE 4.0 (also been having unrelated problems with IE, I need to upgrade it) so instead I just right clicked on it to save it that way.
Uploaded it to my main directory
copied and pasted the code to a web page, applet
appears to function, without any images being displayed. Ive edited it with many variables using front page, but whao still can't get the thing to work.
I even tried another similar class file titled 'rippling image' by the same author, couldn't get that to work either. By the way this is my first applet, so Im odviously doing something wrong.........
the image file is dusk(1).gif
but the parameters have me a little confused, when it says: image="dusk.gif"
Looks like I should check out the java turtorials.
:) Thanks for your help and the luck, cause as at this point, I really need it, ha, ha!
http://www.sssalas.com/lake.html
boxer_1
08-02-2002, 06:18 PM
Well, you're on the right track, asking questions and eager to learn ;). Ok, one of the params also calls for "wa.gif". Did you save and upload that one as well, although wa.gif was just for the purpose of the example? You can eliminate this param:
<param name=overlay value="wa.gif">
Just delete that line all together. You say the image file is dusk(1).gif. Go to where you have the image on your hard drive, right click on it, choose rename, and change it to "dusk" (get rid of the (1) ) and make sure the param calls for the image by the same name.
Here's an example:
<html>
<head>
<title>Lake example</title>
</head>
<body>
<applet code=Lake.class id=Lake width=392 height=380>
<param name=image value="dusk.gif">
<param name=href value="http://www.javascriptkit.com">
</applet>
<p align="center"><font face="arial" size="-2">Free Java applets provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
Kit</a></font></p>
</body>
</html>
Reply back if you still have trouble and I'll help you further ;).
PS: Don't forget to upload the dusk.gif again after you rename it so the param value will be the correct path to the image :thumbsup: .
sssalas
08-02-2002, 07:30 PM
Dear Boxer 1
THANK YOU!!!!!!!! It's acctually working!!!!! Thank You!!!!!!!!:thumbsup: !!!!!!!!!!!!
boxer_1
08-02-2002, 08:29 PM
You're welcome! Glad you were able to get it working :thumbsup: !
adonoghue
08-20-2002, 09:26 PM
I had installed the Java add-on for windows XP, and everything worked fine. I have now installed the java plug-in from the java.sun.com website, and now the lake.class applet doesn't work on my machine. :(
Is it just me, or was it coded using Microsofts version of the compiler and therefore incompatible with sun's java plugin??
:confused:
adonoghue
08-22-2002, 08:53 AM
:o
Sorry - I'm an arse. It turns out that I had installed one version of the java platform over another one without removing the original. I uninstalled everything, re-installed and it now works fine!
doh!!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.