I need to have ability of using my own java classes in JS, but I don't know how to do it, since I'm newbie in JS. So how could I do it?
3 Answers
Comments
Java and JavaScript really have very little in common, which is why it's officially been renamed ECMAScript. You can use cross compilers to do some of the work for you (GWT compiles Java into JavaScript) but really they're two very different things in different idioms. I'm assuming here you're talking about client side browser JavaScript. It has been used in server side implementations for whacky hijynx.
4 Comments
Kirk Woll
I'm not a big fan of NodeJS, but I'd hardly describe it as "whacky hijynx".
Jeff Watkins
@KirkWoll I like my beer cold and my languages strongly typed ;)
Kirk Woll
Me too, but there's no reason to start a flamewar with the enormous number of programmers who feel otherwise.
Jeff Watkins
@KirkWoll I didn't say I hated it :) No flame intended.