Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
525 views
in Technique[技术] by (71.8m points)

Running minecraft using cmd prompt: error: could not find or load main class net.minecraft.LauncherFrame

I've been wanting to make an alpha/beta java Minecraft launcher from the beginning, and I've been constantly researching on how to run it using Command Prompt. I've found this tutorial on YouTube and yes, it is relatively old, from 2012! I followed the tutorial and how to get the directory but instead of putting it on the shortcut, I used it on cmd prompt. When I, though, it gives out this error: Error: Could not find or load main class net.minecraft.LauncherFrame. Am I doing anything wrong? Here is what I put in cmd prompt:

C:Program FilesJavajre1.8.0_261in>java -Xmx1024M -Xms512M -cp Minecraft.exe net.minecraft.LauncherFrame

I think I am doing something wrong with the cmd code, but I have no clue. I know that Alpha and Beta minecraft is relatively old, so I cannot find that old of tutorials on how to run it with cmd prompt, if cmd prompt was even a thing back then...

If anyone has Alpha/Beta knowledge, it would be great if you had an answer.

The things I have tried: changing net.minecraft.LauncherFrame to net.minecraft.client.main.Main changing java to javaw changing the directory C:Program FilesJavajre1.8.0_261in to ...\%APPDATA%.minecraftversions looking it up for countless hours

Things I have not tried and may test: changing the jre directory version to the openjdk version of the old java that Alpha/Beta used

I am focusing on the old methods, even though there is no .jar launcher anymore because I would assume since Alpha/Beta was when the .jar launcher was a thing it would still work that way.

Thanks,

Pale_Gray

edit

When I use javaw instead of java, no errors occur, yet nothing happens. It just moves on to the next thing you are going to type. Yes, for the jdk and jre. image

question from:https://stackoverflow.com/questions/65830103/running-minecraft-using-cmd-prompt-error-could-not-find-or-load-main-class-net

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...