So currently ive been thinking , thinking about compilers and the actual RE. My question is how does the computer know that when I run my .jar to load it into the JRE and not to open it , and if I were to go about creating a similar RE how would this be done.
in Windows you set the file association of a *.jar file to java.exe (…mypath…/bin/java.exe)
Control Panel\Programs\Default Programs\Set Associations
Dont know where in the registry this is stored.
Anyhow, java.exe gets launched and then must get the link to the jar file as a parameter.
From there the JavaVM will load the zip-file and look up whats stated in the MANIFEST.MF file, and launches the jar if alls things are set
anyway, its the OS that associated the program or protocol with the file.