I am running a 64bit version of Windows 7 with a 64bit version of the Java Runtime Environment (JRE) and have been wondering for a while why Steam only says that I am running Minecraft at the login screen (I start Minecraft through Steam, Steam says "Darestium is playing non-steam game Minecraft" then as soon as you log in on Minecraft it changes your status back to 'Online')? I know this is not the case when you are running the 32bit version of the JRE (with a 64bit version of Windows 7 - having uninstalled the 64bit JRE and replacing it with the 32bit), does anyone know a work around this? If anyone knows the cause of this problem I would be really interested to what it is, and why Steam's behaviour differs between Java versions.
-
Consider posting in stackoverflow.com or superuser.com seeing as this is more programming related.– Lemmings19May 7, 2012 at 13:47
-
Hmm, I believe I'm running the 64-bit JRE at home, yet don't have this problem. I'll double check this evening.– MBraedleyMay 7, 2012 at 14:15
-
1@Lemming19 Sir, how is this programming related? - it is clearly a gaming related topic - and has nothing to do with programming.– DarestiumMay 7, 2012 at 22:54
-
@Darestium I am not saying that it is not gaming related or that it should be removed. I am, however, saying that it relates to something a little more specific than just 'gaming' and that posting a copy of the same question elsewhere may yield better answers. You are asking for the cause of the problem, and it is likely that when you start getting into this sort of thing, the cause will be a technical issue, and therefore related to the code of either Minecraft, or Java and how things differ between 32 and 64 bit. And that, sir, is very programming related.– Lemmings19May 7, 2012 at 23:58
-
1Have a look at the processes (I'd recommend Process Explorer technet.microsoft.com/de-de/sysinternals/bb896653.aspx for that). I guess that Minecraft behaves slightly different when using a 64bit JRE and starts a new process and exits the initial one, thus causing Steam to "loose track" of the game.– KoraktorMay 8, 2012 at 6:11
1 Answer
Adding Minecraft (Java 64bit) to Steam
- Open the command line prompt as an Administrator. Usually, you can find the command prompt in the Accessoires start menu; right-click on it and chose "Run as administrator", accepting any UAC prompt which pops up.
On the command line prompt, make a local symbolic link to the javaw.exe executable by typing in the following:
mklink %AppData%\minecraftjava.exe %ProgramFiles%\Java\jre7\bin\javaw.exe
Replace
jre7
withjre6
if you still have Java 6 installed instead; replace the whole Java path if you installed it into a different location.Try out the new executable with the following command:
%AppData%\minecraftjava.exe -jar %AppData%\.minecraft\minecraft.exe
Open Steam and in the bottom left, click "Add a Game", then "Add a Non-Steam Game"
- Click on "Browse" at the bottom
- Navigate to wherever "
%AppData%
" is on your computer (it's usually in C:\Users\Username\AppData\Roaming) and choose "minecraftjava.exe"
You can verify the location of the%AppData%
folder by opening up a Windows Explorer (Windows+E or right-click on the Start button and chose "Explore") and typing it in the location bar at the top of the window. - Click "Add Selected Programs"
- Right click on the entry made in your Steam Library and click "Properties"
Set the target as this (on one line, including quotes)
"C:\Users\Username\AppData\Roaming\minecraftjava.exe" -jar "C:\Users\Username\AppData\Roaming\.minecraft\minecraft.exe"
Again replace "Username" with your Windows user name.
- Click "Close" to save that change.
To set the icon:
- Right click it again and click "Properties"
- Click "Choose Icon"
- Find your Minecraft.exe file ("C:\Users\Username\AppData\Roaming\.minecraft\Minecraft.exe")
- Click "Close"
- You may have to set the target to what it was set to above again. (After clicking "Close") because for some reason Steam will forget parameters after changing another setting.
Minecraft should now be able to run via Steam, with support for showing your "In Non-Steam Game" status and with the Steam Overlay.
If for whatever reason it does not work, go back into properties and change to target to what it was set to above. When using parameters Steam sometimes forgets this under other circumstances.
-
-1 - you should never manipulate things in your system-wide installation directory like that. Aug 7, 2012 at 8:05
-
2@MartinSojka Tthat is not a reason to downvote at all. this is not even editting any files. This is like modifying
minecraft.jar,
you are making a new copy of it and using that instead of the default one. In the future, please read the post before voting. +1 from me Aug 7, 2012 at 9:03 -
3Duplicating a file is harmless, that's all that's done in the installation directory.– njallamAug 7, 2012 at 9:03
-
You can run it without the duplicated file, but if you want to add Technic Launcher, it allows it to be done with the same process, as Steam won't allow the same .exe file twice.– njallamAug 7, 2012 at 9:04
-
3It will need the Java workspace custom set with the "Open in" settings. This is the simplest way to do this. I said earlier, you can just use javaw.exe instead of the duplicated one. Doing so the way I said in the answer allows the same to be done for Technic Launcher, Spoutcraft or anything else Java-based.– njallamAug 7, 2012 at 9:16