I made a java program and packaged it into a Folder(named Folder) and then maked a batch file which i use to call the jar file. Also into the added the Java8_25 JRE.
Folder has (batch file,Java8_25 JRE,program.jar). Here is how i call the program from batch file:
1.Way
start "C:/Program Files (x86)/Folder/Java8/lib/javaw.exe -jar" "C:/Program Files (x86)/Folder/program.jar"
2.Way
start Java8/lib/javaw.exe -jar program.jar
The difference is enough big.Also i see that calling program with the 1 way it is 64 bits and with the second way 32 bits although i opened it with the same Java8 JRE.
1)Why is the first way calling 64 bit and not 32?
2)Why so big difference in memory?
I have also read questions related to this and i think 64 bit java cosumes more memory than 32 bit? but why is this happening here.
(If it helps:Also i have 64 bit OS and when i enter eclipse prefer java 32 bits)