Starting eclipse from Command Prompt different than double clicking <p>My university wipes their public computers every time someone logs off, so I have decided to write a .bat file that copies my eclipse from a flash drive to their desktop with all my code intact. The file currently looks like this:</p> <pre><code>@echo off mkdir C:\Users\lib-pac-olin-ppc\Desktop\eclipse xcopy eclipse C:\Users\lib-pac-olin-ppc\Desktop\eclipse /S /E C:\Users\lib-pac-olin-ppc\Desktop\eclipse\eclipse.exe </code></pre> <p>When I run this, eclipse starts up but behaves as if it has been launched for the first time. It does not adopt the default workspace settings and it flashes up the welcome screen. However, when I launch eclipse by directly double clicking it, it goes to my workspace and pulls up my code. It also launches a lot faster. Why is this happening?</p> <p>For the person that asked, here is the .ini file:</p> <pre><code>-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326 -product org.eclipse.epp.package.standard.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.7 -Xms40m -Xmx512m </code></pre> <p>I should note that the JVM was placed in a folder called jre within the eclipse directory, which is where eclipse looks for it by default.</p>