Web Analytics Made Easy -
StatCounter How to Compile JavaScript source into Java class files--- - CodingForum

Announcement

Collapse
No announcement yet.

How to Compile JavaScript source into Java class files---

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Compile JavaScript source into Java class files---

    Hi,
    I want to compile a JavaScript source into Java class files.i got a compiler called Rhino JavaScript Compiler.But i dont know what to do with that and how to compile.can any body please help me to find out.

  • #2
    Java and javascript are entirely different, despite their confusingly similar names.
    Digitalocean Cloud Hosting (Referral link - get $10 free credit) Fameco

    Comment


    • #3
      UmmmAbdurooft, look here:

      http://en.wikipedia.org/wiki/Rhino_(JavaScript_engine)

      Yes, Rhino *DOES* compile JS code into Java classes. How's that for weird?

      But note that it is intended for *SERVER SIDE* use. Period. Can't be used for JS code that is embedded in HTML pages, at all.

      Note that this is actually the very very old Netscape server-side Live Script updated. It never had very many followers when Netscape supported it; it's hard to believe there are many users of it, today.
      Be yourself. No one else is as qualified.

      Comment

      Working...
      X