How to run java program from javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • madan23041983
    New Member
    • Oct 2006
    • 5

    How to run java program from javascript

    Hi all,

    Can anyone help me by letting me know how do we run a java program from Javascript?? .
    Thanks in advance.

    madan
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by madan23041983
    Hi all,

    Can anyone help me by letting me know how do we run a java program from Javascript?? .
    Thanks in advance.
    madan
    you realise of course that java code has to be compiled before it is run?

    Comment

    • madan23041983
      New Member
      • Oct 2006
      • 5

      #3
      Originally posted by r035198x
      you realise of course that java code has to be compiled before it is run?
      Thanxs for the response.. But i mean Class file. How to run a class file from javascript

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by madan23041983
        Thanxs for the response.. But i mean Class file. How to run a class file from javascript
        As an applet?

        Comment

        • madan23041983
          New Member
          • Oct 2006
          • 5

          #5
          Originally posted by r035198x
          As an applet?
          Yes.. I need to execute an swing component from javascript..

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Originally posted by madan23041983
            Yes.. I need to execute an swing component from javascript..
            Perhaps you can use document.write to write html tags to a document and write the applet tag to the document

            Comment

            • madan23041983
              New Member
              • Oct 2006
              • 5

              #7
              Originally posted by r035198x
              Perhaps you can use document.write to write html tags to a document and write the applet tag to the document

              Thanq for the response. Can you send a small example regarding this please.

              Comment

              • r035198x
                MVP
                • Sep 2006
                • 13225

                #8
                Originally posted by madan23041983
                Thanq for the response. Can you send a small example regarding this please.
                http://www.mapguide.co m/help/R6.3/api/en/codeSamples/samples.htm

                http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html

                Consider all browsers

                Comment

                • madan23041983
                  New Member
                  • Oct 2006
                  • 5

                  #9
                  Originally posted by r035198x
                  http://www.mapguide.co m/help/R6.3/api/en/codeSamples/samples.htm

                  http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html

                  Consider all browsers
                  Thanq very much for the resource help.. I am having a problem in setting the classpath when trying to use document.write( )..
                  I am using "Windows Look and Feel" for which i need to set the classpath before i execute the class file. How should i set the classpath in this context when trying to execute in document.write( ) statement in Javascript?
                  Please Help!!

                  Comment

                  Working...