Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

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
0
facade
Asked:
facade
  • 14
  • 7
  • 6
  • +1
1 Solution
 
CEHJCommented:
You just need to upload it + class file. FTP it
0
 
objectsCommented:
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.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
objectsCommented:
Let me know if you have any problems setting up your applet and I'll help you work thru them.
0
 
objectsCommented:
0
 
JavatmCommented:

> 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
0
 
facadeAuthor Commented:
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?
0
 
facadeAuthor Commented:
sorry to clarify that question was for the site Javatm gave me
0
 
facadeAuthor Commented:
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
0
 
objectsCommented:
> how do i upload my webfiles to the net?

do you already have a host to use?
0
 
objectsCommented:
>  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
0
 
facadeAuthor Commented:
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
0
 
JavatmCommented:
> 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.
0
 
facadeAuthor Commented:
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
0
 
facadeAuthor Commented:
at the bottom of internet explorer something flashed fast when i tried to start applet that said applet not initiatized or something
0
 
objectsCommented:
check the error in the java console
0
 
facadeAuthor Commented:
LOL i got that all wrong.. sry flashed kinda fast exact message i get is:

Applet Basic not inited
loading java applet failed
0
 
facadeAuthor Commented:
java.lang.ClassFormatError: Basic (Bad Magic Number)

is that what you mean? Thats what it says in console

0
 
facadeAuthor Commented:
Heres Everything console says:

java.lang.ClassFormatError: Basic (Bad magic number)

      at java.lang.ClassLoader.defineClass0(Native Method)

      at java.lang.ClassLoader.defineClass(Unknown Source)

      at java.security.SecureClassLoader.defineClass(Unknown Source)

      at sun.applet.AppletClassLoader.findClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at sun.applet.AppletClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at sun.applet.AppletClassLoader.loadCode(Unknown Source)

      at sun.applet.AppletPanel.createApplet(Unknown Source)

      at sun.plugin.AppletViewer.createApplet(Unknown Source)

      at sun.applet.AppletPanel.runLoader(Unknown Source)

      at sun.applet.AppletPanel.run(Unknown Source)

      at java.lang.Thread.run(Unknown Source)
0
 
facadeAuthor Commented:
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)?
0
 
JavatmCommented:
Check your folder hirarchy in your computer you should make the same thing in your webserver.
0
 
facadeAuthor Commented:
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?
0
 
JavatmCommented:
For Example (In your computer) :

C:\MyWeb1             : HTML Files
C:\MyWeb1\Applet   : Java Applets
C:\MyWeb1\Images  : Image Files

Then on your Webserver (Internet) :
Should also be like this :

\MyWeb1             : HTML Files
\MyWeb1\Applet   : Java Applets
\MyWeb1\Images  : Image Files

See if it helps . . .
Javatm

0
 
facadeAuthor Commented:
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?
0
 
facadeAuthor Commented:
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
0
 
JavatmCommented:
=-) Always glad to help . . .

http://freewebs.com/cube-j
Friend : Javatm
0
 
JavatmCommented:
May I see your applet what site is it ???
0
 
facadeAuthor Commented:
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
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 14
  • 7
  • 6
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now