1 Reply Latest reply: Jan 23, 2007 12:41 AM by 807599 RSS

    How can i run my .class file with out installing java ?

    807599
      Hai friends..am new to java , plz help me any one.
      I wrote a small program in java lang. i want to run this program in my friend's system , which is doesnt have java language .. How can i run this program in my friends system with out installing java language?
      one of my friends told that ,it needs to copy the jvm in to ur directory where the java code is present . How can i copy the jvm from where to where ..?plz help me any one
        • 1. Re: How can i run my .class file with out installing java ?
          807599
          Your friend will have to install the Java runtime if they want to run Java
          programs.

          Don't go copying files yourself - and especially don't go copying them to the
          location of the Java code. After all, if your friend wants to run 42 different
          Java programs they shouldn't have to have 42 copies of the runtime.

          Just download and run the installer from this site:
          http://java.sun.com/javase/downloads/index.jsp
          Be careful to download the "Java Runtime Environment" not the JDK.