i just copies the bin folder of java jre to the folder containing the program and used temp path variables to the copied bin folder.It perfectly worked in pc where jre or jdk is not installed but on my other pc where jdk is installed, it detects the path but error comes"error:java.dll not found" this is my problem.
i am using set PATH=\java\bin%path%
What i am trying to achieve is that: there will be no need to install jre to and define path in new computers to run the jar file