Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Testing a java applet without a website

Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm learning how to create java applets, however among the things being taught, is how to transfer the compiled program from your computer to the website server.
Problem: I don't own a website.

My goal is simply to test the applet to see if it appears on my web browser. Second to that is actually moving the program from computer to server.

Are there any free web domains or places where you can get a free website (even for a limited time) so that I can try out this applet on the web browser? Or perhaps a program that somehow recreates whatever it is I'm trying to test?
Any ideas or suggestions would be fine

Thanks for your help
Posts: 3742
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Posts: 15638
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can install a webserver on your local machine. Just search for open source webservers. Then you can either serve up a static HTML page or define a JSP (if you use something like Jetty or Tomcat) that has the appropriate tags for the applet you want to run
Posts: 25594
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it's worth mentioning that applets are nowadays an almost totally useless technology. The amount of security applied to them in real-life situations makes them almost impossible to use, that's why.

So unless you have a good reason for writing an applet (for example, your course work says you have to write an applet) you might find it simpler to write a plain old Java application in Swing or Java FX. You'll have the same learning to do in terms of writing a GUI but you avoid the deployment problems you're already encountering.
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic