Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[Tutorial]Launching Minecraft from Batch File after Minecraft 2.0 Launcher

This is a brief tutorial on making a .bat file that launches minecraft.


Getting Launch Arguments

To start off we're gonna have to get the minecraft launchers launch arguments.

This can be done either by enabling Command Line in Task Manager by right clicking name and clicking on Command Line.

However Task Manager doesn't allow copy and pasting so its better to use Process Explorer. 

https:][docs.microsoft][com/en-us/sysinternals/downloads/process-explorer

This process is the same either way minus Task Manager having no 

copy feature.


For this tutorial i'm gonna be using Process Explorer.

Start off by opening The Minecraft Launcher and running any version of minecraft i'm gonna be running 1.12.2.

LEAVE IT OPEN!!!

In Process Explorer find MinecraftLauncher.exe ->javaw.exe right click Properties and copy the Command Line text field into Notepad.

In Task Manager find Java™ Platform SE binary and copy the Command Line field into  Notepad.


Get Java Libraries

WHILE Minecraft is still open press Windows Key + R and type %temp% and press okay.

Look for the files 

Code
jinput-dx8.dll, jinput-dx8_64.dll, jinput-raw.dll, jinput-raw_64.dll, jinput-wintab.dll, lwjgl.dll, lwjgl64.dll, OpenAL32.dll, OpenAL64.dll, SAPIWrapper_x64.dll, SAPIWrapper_x86.dll
in a Folder with a random name.

Copy the folder containing those files to where ever you want and rename the Folder to javaLibraries.


Editing Launch Arguments

Now open the Notepad we opened earlier.

Use Find Ctrl + F to find 

Code
-Djava.library.path=


Use Replace Ctrl + H to replace 

Code
C:\Users\<User>\AppData\Local\Temp\<random folder name>
with your javaLibraries path.


Use Find Ctrl + F to find 


Code
C:\Users\<User>\AppData\Roaming\.minecraft


Use Replace Ctrl + H to replace 


Code
%appdata%\.minecraft

Use Find Ctrl + F to find 



Code
C:\Users\<User>\AppData\Roaming\.minecraft\libraries





Use Replace Ctrl + H to replace 



Code
%appdata%\.minecraft\libraries


Before the Launch Arguments begin on the same line add

Code
start ""



After the Launch Arguments on the next line add 

Code
exit

Save the file as a .bat and run.


This can be use to make a custom launcher using the json.org  libraries on java to load the launcher_profiles.json and get the users AccessToken,Username,Ect. and creating a custom bat with different [b]AccessToken,Username,Ect.[/b]
Quality tutorial on Christmas, I can port this to linux if needed for anyone. In other regards, thanks for the tutorial.
(Dec 25, 2017 06:52 AM)foddermc Wrote:  Quality tutorial on Christmas, I can port this to linux if needed for anyone. In other regards, thanks for the tutorial.

You're welcome Merry Christmas
(Dec 25, 2017 01:26 PM)noahs200010 Wrote:  You're welcome Merry Christmas

Merry Christmas
(Dec 25, 2017 06:36 PM)GoodVibes Wrote:  Merry Christmas

Happy Hanukkah
(Dec 26, 2017 10:46 AM)SIM-1576816 Wrote:  Happy Hanukkah

Happy Hanukkah


Possibly Related Threads...
Thread / Author Replies Views Last Post
by JordyOct 15, 2026 09:26 PM 0 26 Oct 15, 2026 09:26 PM
Last Post: Jordy
by itsTummyDec 3, 2024 06:26 PM 0 85 Dec 3, 2024 06:26 PM
Last Post: itsTummy
by EdenJun 28, 2021 05:03 PM 0 106 Jun 28, 2021 05:03 PM
Last Post: Eden