-2

Why can't I run a Java application without a JDK installed? Is there a way to run a Java program on Windows without the JDK?

Turtle
  • 1,626
  • 16
  • 26

3 Answers3

2

To run a java programm you don't need the JDK installed. You only need an installed JRE.

tomas
  • 830
  • 3
  • 8
  • 25
0

I think you're mistaking JRE and JDK, but if you're asking "Can I run a java program (a .jar) on windows without installing Java", then the answer is "No, you can't".

JRE stands for "Java Runtime Environnement", it's the VM Java uses to lauch and execute your program. If you don't have a JRE installed you cannot launch a java program.

Turtle
  • 1,626
  • 16
  • 26
  • I'm talking about running the java application of Windows without downloading anything like any other Windows program. – Mohammed Hamdy May 05 '17 at 12:13
  • @MohammedHamdy You can't run a java application without installing a JRE. It's not possible. It's like trying to use Firefox without installing it before. – Turtle May 05 '17 at 12:30
  • Is the software available for Windows are written in any language ?? Such as media palyer classic – Mohammed Hamdy May 05 '17 at 12:49
  • @MohammedHamdy There is a big difference between an executable for windows (a .exe) and a java executable (a .jar). If you're looking to create a .exe file, you should modify your question. – Turtle May 05 '17 at 13:33
  • exe. file. It also not works only in the presence of JDK – Mohammed Hamdy May 05 '17 at 14:03
0

Java is compiled to a system independent byte code.

There must be a System dependent byte code interpreter on the target machine to execute the Java program.

Timothy Truckle
  • 15,071
  • 2
  • 27
  • 51