0

I create project in netBeans use jdk 1.6. On my computer project is worked, but on other computers do not work. on this and I want to create an application that runs on their libraries, how to do it

Mediator
  • 14,951
  • 35
  • 113
  • 191
  • See [What's the best way to distribute Java applications?](http://stackoverflow.com/questions/80105) and [Is there a mechanism to distribute an app with its own JRE?](http://stackoverflow.com/questions/2716391) – McDowell May 09 '11 at 11:46

2 Answers2

2

If on other computer there is no JRE then you cannot run your application.

So before that you have to install the JRE on the other's machine.

Or you can provide a installation package that consists of JRE and application.

Ankit
  • 2,753
  • 1
  • 19
  • 26
  • search for **Installjammer** and the link is http://www.installjammer.com/ which is used to create installation for Java application. – Ankit May 09 '11 at 12:07
0

Since you did not tell us what the error was or why it "did not work" on other computers, I take a guess. And here is the solution: Change the PATH variable so that the java executable will be found.

Ingo
  • 36,037
  • 5
  • 53
  • 100