I've just started studying java, but decided not to install JDK or JRE on my machine because I prefer portable solutions. I've simply took jre1.8.0_74 folder from that machine, where Java was installed and put it into my Eclipse folder - compiling & running well!
But after I've completed my first HelloWorld I asked myself how can I execute .class file I got?! Tried drag'n'dropping it on java.exe, javaw.exe, javaws.exe, javac.exe... nothing worked. Than I've exported project as executable .jar, but didn't managed to execute it too.
So how can I execute .class & .jar without installing Java?
Thanks