0

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?

1
  • 1
    Please describe the runtime environment more clearly and what you are trying to accomplish Commented Jun 1, 2012 at 23:08

3 Answers 3

1

Take a look at these.

DWR (Direct Web Remoting)

GWT (Google Web Toolkit)

Sign up to request clarification or add additional context in comments.

Comments

0

See this guide: http://docs.oracle.com/javase/1.5.0/docs/guide/plugin/developer_guide/js_java.html

Comments

0

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

I'm not a big fan of NodeJS, but I'd hardly describe it as "whacky hijynx".
@KirkWoll I like my beer cold and my languages strongly typed ;)
Me too, but there's no reason to start a flamewar with the enormous number of programmers who feel otherwise.
@KirkWoll I didn't say I hated it :) No flame intended.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.