Which programming languages is better for writing a web-app, javascript, flash or java applet?
I am writing a web application, I use both javascript(with HTML5) and java applet to implement it. Now there is a problem. which one is better?

javascript(with HTML5): users don't need any plug-in to run it, but I cannot protect my code.

java applet: faster, not easy to get source code, but users have to install java-plug-in, in order to run it.

So I want some suggestions from those who have experience on this.

Many thanks.
Which programming languages is better for writing a web-app, javascript, flash or java applet?
===

I am writing a web application, I use both javascript(with HTML5) and java applet to implement it. Now there is a problem. which one is better?

javascript(with HTML5): users don't need any plug-in to run it, but I cannot protect my code.

java applet: faster, not easy to get source code, but users have to install java-plug-in, in order to run it.

So I want some suggestions from those who have experience on this.

Many thanks.