Java Version: Java 6u24 x64, same applies to 7u6 x64 and presumably 32-bit as well.
Antivirus Program: Microsoft Security Essentials
Description of Problem:
If you have this problem, skip to the bottom. If you're a dev, please read on.
Launcher does not properly escape the filepath of technic-launcher.jar. Users who have a space in their username cannot use TechnicLauncher.exe to start Minecraft and must manually run technic-launcher.jar or miss out on the fun.
To determine this use SysInternals Process Monitor from Microsoft TechNet (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) and use the right-click menu to include TechnicLauncher.exe. Clear the log, then from a user account containing a space launch TechnicLauncher.exe. ProcMon should now contain about 6500 log entries. From the bottom of the log page up once or twice and look for an entry labeled "Process Create"; and "C:\Program Files\Java\jre6\bin\java.exe" (If you see a full page of "ReadFile" and "C:\Users\username here\AppData\Roaming\.techniclauncher\technic-launcher.jar"; you're up too high and should scroll back down a little bit)
When double-clicked, the Process Create entry will contain the following:
Copying and pasting that command line into a cmd window gets you the error message:
Unable to access jarfile C:\Users\username
To fix this, TechnicLauncher.exe needs to be patched to surround the path to technic-launcher.jar with quotes, just as it already properly quotes the path to java.exe.
Note: I've verified this with two identical brand-new user accounts "Test" and "Test 2" and calling "runas /user:Test TechnicLauncher.exe" and "runas /user:"Test 2" TechnicLauncher.exe". "Test 2" exhibits the problem, "Test" brings up launcher window exactly as it should.
Work-around if you have this problem:
You must create a new Windows user whose name contains NO SPACES, and only use TechnicLauncher from that username.
Error Messages:
Unable to access jarfile C:\Users\username
Error Log:
No logs as technic-launcher.jar never actually gets loaded.
Question
tepidpond
Launcher Version: 1.0.1.0
Operating System: Windows 7 Professional SP1 x64
Java Version: Java 6u24 x64, same applies to 7u6 x64 and presumably 32-bit as well.
Antivirus Program: Microsoft Security Essentials
Description of Problem:
If you have this problem, skip to the bottom. If you're a dev, please read on.
Launcher does not properly escape the filepath of technic-launcher.jar. Users who have a space in their username cannot use TechnicLauncher.exe to start Minecraft and must manually run technic-launcher.jar or miss out on the fun.
To determine this use SysInternals Process Monitor from Microsoft TechNet (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) and use the right-click menu to include TechnicLauncher.exe. Clear the log, then from a user account containing a space launch TechnicLauncher.exe. ProcMon should now contain about 6500 log entries. From the bottom of the log page up once or twice and look for an entry labeled "Process Create"; and "C:\Program Files\Java\jre6\bin\java.exe" (If you see a full page of "ReadFile" and "C:\Users\username here\AppData\Roaming\.techniclauncher\technic-launcher.jar"; you're up too high and should scroll back down a little bit)
When double-clicked, the Process Create entry will contain the following:
To fix this, TechnicLauncher.exe needs to be patched to surround the path to technic-launcher.jar with quotes, just as it already properly quotes the path to java.exe.
Note: I've verified this with two identical brand-new user accounts "Test" and "Test 2" and calling "runas /user:Test TechnicLauncher.exe" and "runas /user:"Test 2" TechnicLauncher.exe". "Test 2" exhibits the problem, "Test" brings up launcher window exactly as it should.
Work-around if you have this problem:
You must create a new Windows user whose name contains NO SPACES, and only use TechnicLauncher from that username.
Error Messages:
Unable to access jarfile C:\Users\username
Error Log:
No logs as technic-launcher.jar never actually gets loaded.
14 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.