facade
asked on
Applet-quick easy
Hi this is probalbly a really stupid question and im sure everyone knows how to do this but, how do I get an html document posted on my web site so i can go to the applet from any computer with internet access. (sorry if i worded that wrong.)
The web page creator im using is AOL Hometown-easy designer. (If anyone knows any other web page creators that are free and easy to use and that you can put an applet on please let me know.)
Any links to an easy to follow/comprehensive tutorial would be very helpful as well, thanks.
-Facade
The web page creator im using is AOL Hometown-easy designer. (If anyone knows any other web page creators that are free and easy to use and that you can put an applet on please let me know.)
Any links to an easy to follow/comprehensive tutorial would be very helpful as well, thanks.
-Facade
You just need to upload it + class file. FTP it
you need to add an applet tag to your html page.
and then upload the html file along with your applet class files to your server.
and then upload the html file along with your applet class files to your server.
Let me know if you have any problems setting up your applet and I'll help you work thru them.
> how do I get an html document posted on my web site so i can go to the applet from any computer with internet access.
Hi Friend;
Here are the few steps you need to take for you to access your applet in any computer through the web :
1.) 1st of all you need a webserver that will store you webfiles like :
http://www.freewebs.com/
2.) Upload you sample webpage that displays the HTML part for your applet :
<!- An Example of Java Applet in HTML->
<HTML>
<HEAD>
<TITLE> My 1st Applet ! </TITLE>
</HEAD>
<BODY>
Here is my very 1st program :
<APPLET CODE="Sample.class" WIDTH=150 HEIGHT=150>
</APPLET>
</BODY>
</HTML>
3.) Upload all the neccesary webfiles you need.
4.) Check your program on the net.
Hope that helps . . .
Javatm
ASKER
how do i upload my webfiles to the net? do i do this though the site builder mode or do i have to purmanently migrate to HTML only b4 i can do it?
ASKER
sorry to clarify that question was for the site Javatm gave me
ASKER
OHHH you thought that i had the web site made already... sry i think i said that wrong. im going to create it with the same site im going to post the applet on
> how do i upload my webfiles to the net?
do you already have a host to use?
do you already have a host to use?
> im going to create it with the same site
you need to first create your applet on your local machine
see the tutorial link i posted above for more details on whats involved.
once you have completed the applet then you can upload it to your server
you need to first create your applet on your local machine
see the tutorial link i posted above for more details on whats involved.
once you have completed the applet then you can upload it to your server
ASKER
yes im using the www.freewebs.com
i just went to file upload but for some reason when i uploaded my html doc and previewed it it didn't load up right... Im fooling around with it right now so ill get back to you as soon as i can
i just went to file upload but for some reason when i uploaded my html doc and previewed it it didn't load up right... Im fooling around with it right now so ill get back to you as soon as i can
> just went to file upload but for some reason when i uploaded my html doc and previewed it it didn't load up right... Im fooling around with it right now
JOOPS sorry I was late, thats correct test your HTML page through your browser then preview your Java Applet.
Let me know if you have any problems. Thanks.
JOOPS sorry I was late, thats correct test your HTML page through your browser then preview your Java Applet.
Let me know if you have any problems. Thanks.
ASKER
yah javaatm my applet works on my computer but for some reason after i so to upload files and upload the html doc it doesn't start up when i go into the applet
ASKER
at the bottom of internet explorer something flashed fast when i tried to start applet that said applet not initiatized or something
check the error in the java console
ASKER
LOL i got that all wrong.. sry flashed kinda fast exact message i get is:
Applet Basic not inited
loading java applet failed
Applet Basic not inited
loading java applet failed
ASKER
java.lang.ClassFormatError : Basic (Bad Magic Number)
is that what you mean? Thats what it says in console
is that what you mean? Thats what it says in console
ASKER
Heres Everything console says:
java.lang.ClassFormatError : Basic (Bad magic number)
at java.lang.ClassLoader.defi neClass0(N ative Method)
at java.lang.ClassLoader.defi neClass(Un known Source)
at java.security.SecureClassL oader.defi neClass(Un known Source)
at sun.applet.AppletClassLoad er.findCla ss(Unknown Source)
at java.lang.ClassLoader.load Class(Unkn own Source)
at sun.applet.AppletClassLoad er.loadCla ss(Unknown Source)
at java.lang.ClassLoader.load Class(Unkn own Source)
at sun.applet.AppletClassLoad er.loadCod e(Unknown Source)
at sun.applet.AppletPanel.cre ateApplet( Unknown Source)
at sun.plugin.AppletViewer.cr eateApplet (Unknown Source)
at sun.applet.AppletPanel.run Loader(Unk nown Source)
at sun.applet.AppletPanel.run (Unknown Source)
at java.lang.Thread.run(Unkno wn Source)
java.lang.ClassFormatError
at java.lang.ClassLoader.defi
at java.lang.ClassLoader.defi
at java.security.SecureClassL
at sun.applet.AppletClassLoad
at java.lang.ClassLoader.load
at sun.applet.AppletClassLoad
at java.lang.ClassLoader.load
at sun.applet.AppletClassLoad
at sun.applet.AppletPanel.cre
at sun.plugin.AppletViewer.cr
at sun.applet.AppletPanel.run
at sun.applet.AppletPanel.run
at java.lang.Thread.run(Unkno
ASKER
could it have anything to do with the fact that when i go into realj my ie, and press run with console(to run the application with its own console i get an error)?
Check your folder hirarchy in your computer you should make the same thing in your webserver.
ASKER
Not quite sure what you mean...
when i upload the file i browse it so it is the same as where it is on the computer is that what you mean?
when i upload the file i browse it so it is the same as where it is on the computer is that what you mean?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
what else do i have to include besides the html doc? the pictures AND class files? Im just uploading the html file what else should i upload?
ASKER
wow i am an idiot! im really sorry for wasting your time lol i didn't include all the files it needed to run.... it works great now.. im really sorry
May I see your applet what site is it ???
ASKER
Lol its the first game I have ever made with java (Pong lol) and it wont be done until like this weekend cuz im taking a break but the site is
http://freewebs.com/euphoricfacade
Happy Coding :)
-Facade
http://freewebs.com/euphoricfacade
Happy Coding :)
-Facade