Author Topic: I need a service that will let me host a java applet on webpage.  (Read 554 times)

That's all I need.
I remember there used to be one I used, but I can't find it anymore.
I just want to upload a .jar file and have it displayed on a webpage.


My hosting is down for a little bit. I'm saving up to buy a year's worth of hosting at once, and that might take a week or two.
So for now, I have some projects/games I want to share but I can't.
Any suggestions?

Dropbox public folder. Put a your jar and a HTML wrapper that loads the applet in it. That said, what do you need Java applets for nowadays?

Dropbox public folder. Put a your jar and a HTML wrapper that loads the applet in it.
Thanks.
edit: wait, it says I need to specify who I want to release it to
So I can't just link random people to a webpage and have the applet run?
That said, what do you need Java applets for nowadays?
What, are they outdated?
If you have another suggestion let me know.

I just wanted a convient way to get programs I'm writing to people who can see them.
This is far more convient for the potential user/player than downloading and installing a game I wrote in C++.
« Last Edit: June 09, 2013, 11:06:38 AM by DrenDran »

if you don't already have a public folder follow this link
https://www.dropbox.com/enable_public_folder

if you don't already have a public folder follow this link
https://www.dropbox.com/enable_public_folder
Alright so I do.
And I guess I got the webpage running.
But I can't get the jar embedded in it.

The .jar and .jnlp files (HelloApplet.jar and launch.jnlp) are in the same folder, and also public, I believe.
And the embedding code I'm using (the html) is this:
Code: [Select]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- ########################## IMPORTANT NOTE ############################ -->
<!-- This preview HTML page will work only with JDK 6 update 10 and higher! -->
<!-- ###################################################################### -->
<html>
    <head>
        <title>Test page for launching the applet via JNLP</title>
    </head>
    <body>
        <h3>Test page for launching the applet via JNLP</h3>
        <script src="http://java.com/js/deployJava.js"></script>
        <script>
            var attributes = {
                code:       "org.me.hello.MyApplet",
                archive:    "HelloApplet.jar",
                width:      300,
                height:     300
            };
            var parameters = {jnlp_href:"launch.jnlp"}; <!-- Applet Parameters -->
            var version = "1.7"; <!-- Required Java Version -->
            deployJava.runApplet(attributes, parameters, version);
        </script>
        <!-- Or use the following applet element to launch the applet using jnlp_href -->
        <!--
        <applet width="300" height="300">
            <param name="jnlp_href" value="launch.jnlp"/>
        </applet>
        -->
    </body>
</html>


The html page can be found here:
https://dl.dropboxusercontent.com/u/39877652/JavaPublic/launch.html

And the .jar here:
https://dl.dropboxusercontent.com/u/39877652/JavaPublic/HelloApplet.jar

(you can either embed that or launch it with something like this)


What am I doing wrong?

What, are they outdated?
If you have another suggestion let me know.

I just wanted a convient way to get programs I'm writing to people who can see them.
This is far more convient for the potential user/player than downloading and installing a game I wrote in C++.
Somewhat. The major point was that you could do more advanced stuff with it than was possible with JavaScript at the time. Nowadays most of those limitations aren't there for JavaScript any more, and the applet warnings from browsers have gotten scarier and scarier (since it's an additional exploit vector with an ever-decreasing legitimate use-case).

Somewhat. The major point was that you could do more advanced stuff with it than was possible with JavaScript at the time. Nowadays most of those limitations aren't there for JavaScript any more, and the applet warnings from browsers have gotten scarier and scarier (since it's an additional exploit vector with an ever-decreasing legitimate use-case).
The forget?
Now I'm supposed to make programs with JavaScript?
That doesn't sound right.

The forget?
Now I'm supposed to make programs with JavaScript?
If you want to have it run in the browser, yes.