Endless Paradigm

Full Version: Hypothetically, could you make a website entirely in java?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Someone has just this minute asked me this question, and i replyed with the following

me Wrote:you could do in theory i suppose, you just write the applet and upload it to a webserver. i wouldnt recommend it though, it would be so heavy that any users on an average connection would give up waiting for it to load

It does raise an interesting question though. Would it actually be a viable option to write an entire webpage in java. There are pages written entirely in flash, and although tacky and bandwidth heavy, they can be quite clever sometimes. So, it would stand to reason that, sooner or later, someone will attempt to write an entirely java based website.

Just wanted to know what other peoples thoughts on this were, and how much they would hate someone who did such a stupid thing


Me=-----------------------------------------------------------------------------------» This much :P, 2Mbps for the loss
...
I don't know if there is anyway to arm java code without html...

the flash base is handled by the mime type written into machines with flash installed.


I don't know...
hmmm...
well it'd be like a Java app filling the entire window... in its JAR form that'd be.. but it'd work nicer if it was HTML handled (URLwise) this, however is more like a program, and yes, it would involve downloading the entire program before it is run in its entirety.

Java was simply not designed for this purpose.
precisely...

but thinking about it, webpages are downloaded and then used as well.
so in a way they are also like applications
a webpage does not get downloaded...

the browser just reads the code and displays it. The browser makes the rules. A java site would need its own "browser" to be displayed properly.
Actually, you can't make a website without HTML...

even with flash, you would need html to embed the swf for display on a web browser...

Incadude Wrote:a webpage does not get downloaded...

the browser just reads the code and displays it. The browser makes the rules. A java site would need its own "browser" to be displayed properly.

GChrome?
Kaiser Wrote:Actually, you can't make a website without HTML...

Depends if you define something as, per se, "HTML = A Website"

Think about Python Web Scripts, which run .py

All that's needed is for a domain to point at an index page , e.g. http://www.blahaha.com/index.jar and it'll load with http://www.blahaha.com in the address bar (I think ;p)

Java Environment will load and download the application... just like Flash would, essentially... they would in very familiar ways.
I'm not sure if browsers will execute .jar files directly, or based on the MIME type the server sends the client.  In terms of size, it's not necessarily large - the initial download would probably be the "browser code" - which can be small-ish (maybe a few hundred KB at most).

It's somewhat not very practical though, but possible, yes.
Reference URL's