I have done my project every thing is fine but my problem is how can i run the program in any other computers so that others can use it without instal jdk nor jre.
Asked
Active
Viewed 509 times
1
-
2Without using JRE? No, it's not possible (at-least not at the level of having JRE) – Pradeep Simha Dec 09 '13 at 18:35
-
Are you asking how to run a Java application without having Java installed? – claymore1977 Dec 09 '13 at 18:35
-
i want to know if possible to run without java instaled @ claymore1977 – KIUTA Dec 09 '13 at 18:41
2 Answers
1
You can't. You need at least the JRE installed on the client machine. The best you can do is create an EXE program that has the JRE embeded and when run it first time you install the JRE then you run your java program.

Jorge Campos
- 22,647
- 7
- 56
- 87
-
thanks for advice am now searching for that approach, it seem to be nice approach, though might be tough coz am still young in java, i have recently graduated this course – KIUTA Dec 09 '13 at 19:02
-
For that I will recommend you to use [NSIS](http://nsis.sourceforge.net/Main_Page) it is very easy to learn and it is for this type of purpose (installation) but you can customize it to check if the program (on this case JRE) is installed and if it is you just call your java programa (by line command). – Jorge Campos Dec 09 '13 at 19:04
0
It is not possible.
For any jar file you must have installed JRE (at least).
If you mean that you can use Launch4J for example, it uses already installed JRE. Another example is Excelsior which runs lightweight JRE also.

Bosko Mijin
- 3,287
- 3
- 32
- 45