robertzenz / easyminelauncher Goto Github PK
View Code? Open in Web Editor NEWA free and simple launcher for Minecraft.
Home Page: http://easyminelauncher.bonsaimind.org
License: Other
A free and simple launcher for Minecraft.
Home Page: http://easyminelauncher.bonsaimind.org
License: Other
I cant get Forge mod loader to work with this launcher, if I could this would be the perfect tool for me, here is a error log:
Failed to read options.txt or it does not exist!
Loading natives from: F:\bin\natives
Loading Minecraft from: F:\bin\minecraft.jar
2012-12-23 12:16:15 [INFO] [ForgeModLoader] Forge Mod Loader version 4.6.12.511
for Minecraft 1.4.6 loading
2012-12-23 12:16:16 [SEVERE] [ForgeModLoader] FML appears to be missing any sign
ature data. This is not a good thing
2012-12-23 12:16:16 [SEVERE] [ForgeModLoader] Found unknown applet parent org.bo
nsaimind.easyminelauncher.ContainerApplet, unable to inject!
2012-12-23 12:16:16 [INFO] [STDERR] Exception in thread "main" java.lang.Runtime
Exception: java.lang.RuntimeException
2012-12-23 12:16:16 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher
.relaunchApplet(FMLRelauncher.java:269)
2012-12-23 12:16:16 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher
.appletEntry(FMLRelauncher.java:212)
2012-12-23 12:16:16 [INFO] [STDERR] at net.minecraft.client.MinecraftApplet.
init(MinecraftApplet.java:25)
2012-12-23 12:16:16 [INFO] [STDERR] at org.bonsaimind.easyminelauncher.Conta
inerApplet.init(Unknown Source)
2012-12-23 12:16:16 [INFO] [STDERR] at org.bonsaimind.easyminelauncher.Main.
main(Unknown Source)
2012-12-23 12:16:16 [INFO] [STDERR] Caused by: java.lang.RuntimeException
2012-12-23 12:16:16 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher
.relaunchApplet(FMLRelauncher.java:264)
2012-12-23 12:16:16 [INFO] [STDERR] ... 4 more
Press any key to continue . . .
I copied ContainerApplet and ContainerFrame to my project, and i run minecraft with this code:
System.setProperty("minecraft.applet.WrapperClass", "piotrek54pl.gmail.com.ContainerApplet");
ContainerApplet container = new ContainerApplet();
container.setUsername(username);
container.setSessionId(sessionid);
container.setServer("mc.skkf.net", "25565");
ContainerFrame frame = new ContainerFrame("Minecraft :D");
frame.setAlwaysOnTop(false);
frame.setUndecorated(false);
frame.setContainerApplet(container);
frame.setSize(854,480);
frame.setVisible(true);
String DIR = System.getProperty("user.home")+"\\weedcraft\\.minecraft\\";
System.setProperty("user.home", DIR);
System.setProperty("minecraft.applet.TargetDirectory", DIR);
container.loadNatives(DIR+"bin\\natives");
if (container.loadJarsAndApplet(DIR+"bin", DIR+"bin")) {
container.init();
container.start();
} else {
System.err.println("Failed to load Minecraft! Exiting.");
System.exit(0);
}
Works perfectly in eclipse, but when i export it into .jar and i run it, i get errors:
2013-03-24 18:43:57 [SEVERE] [ForgeModLoader] Found unknown applet parent piotre
k54pl.gmail.com.ContainerApplet, unable to inject!
2013-03-24 18:43:57 [INFO] [STDERR] java.lang.RuntimeException: java.lang.Runtim
eException
2013-03-24 18:43:57 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher
.relaunchApplet(FMLRelauncher.java:269)
2013-03-24 18:43:57 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher
.appletEntry(FMLRelauncher.java:212)
2013-03-24 18:43:57 [INFO] [STDERR] at net.minecraft.client.MinecraftApplet.
init(MinecraftApplet.java:25)
2013-03-24 18:43:57 [INFO] [STDERR] at piotrek54pl.gmail.com.ContainerApplet
.init(ContainerApplet.java:197)
2013-03-24 18:43:57 [INFO] [STDERR] at piotrek54pl.gmail.com.StartMinecraft.
start(StartMinecraft.java:45)
2013-03-24 18:43:57 [INFO] [STDERR] at piotrek54pl.gmail.com.Login.run(Login
.java:23)
2013-03-24 18:43:57 [INFO] [STDERR] at piotrek54pl.gmail.com.Updater$1.done(
Updater.java:82)
2013-03-24 18:43:57 [INFO] [STDERR] at javax.swing.SwingWorker$5.run(Unknown
Source)
2013-03-24 18:43:57 [INFO] [STDERR] at javax.swing.SwingWorker$DoSubmitAccum
ulativeRunnable.run(Unknown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at sun.swing.AccumulativeRunnable.run(Un
known Source)
2013-03-24 18:43:57 [INFO] [STDERR] at javax.swing.SwingWorker$DoSubmitAccum
ulativeRunnable.actionPerformed(Unknown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at javax.swing.Timer.fireActionPerformed
(Unknown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at javax.swing.Timer$DoPostEvent.run(Unk
nown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at java.awt.event.InvocationEvent.dispat
ch(Unknown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at java.awt.EventQueue.dispatchEventImpl
(Unknown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at java.awt.EventQueue.access$200(Unknow
n Source)
2013-03-24 18:43:57 [INFO] [STDERR] at java.awt.EventQueue$3.run(Unknown Sou
rce)
2013-03-24 18:43:57 [INFO] [STDERR] at java.awt.EventQueue$3.run(Unknown Sou
rce)
2013-03-24 18:43:57 [INFO] [STDERR] at java.security.AccessController.doPriv
ileged(Native Method)
2013-03-24 18:43:57 [INFO] [STDERR] at java.security.ProtectionDomain$1.doIn
tersectionPrivilege(Unknown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at java.awt.EventQueue.dispatchEvent(Unk
nown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at java.awt.EventDispatchThread.pumpOneE
ventForFilters(Unknown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at java.awt.EventDispatchThread.pumpEven
tsForFilter(Unknown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at java.awt.EventDispatchThread.pumpEven
tsForHierarchy(Unknown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at java.awt.EventDispatchThread.pumpEven
ts(Unknown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at java.awt.EventDispatchThread.pumpEven
ts(Unknown Source)
2013-03-24 18:43:57 [INFO] [STDERR] at java.awt.EventDispatchThread.run(Unkn
own Source)
2013-03-24 18:43:57 [INFO] [STDERR] Caused by: java.lang.RuntimeException
2013-03-24 18:43:57 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher
.relaunchApplet(FMLRelauncher.java:264)
2013-03-24 18:43:57 [INFO] [STDERR] ... 26 more
Hi, I'm trying to use this launcher because MagicLauncher won't recognize my 1.4.2 minecraft.jar and it's too GUI-oriented to actually know what it's doing. But I'm pretty new to Java, and having cloned your repo, and can't figure out how to compile the source into Java bytecode and put it all into a jar.
Closest I've gotten is:
$ javac src/org/bonsaimind/easyminelauncher/*
$ # created a manifest file because Java seems to want one, this one didn't work:
$ mkdir META-INF
$ echo "Main-Class: src.org.bonsaimind.easyminelauncher.Main" > META-INF/MANIFEST.MF
$ jar cvf EasyMineLanucher.jar META-INF src
Could you help me out a bit (or maybe add the instructions to your README)?
Thanks,
Joel
It seems that using these options:
java -jar launch.jar --jar-dir=bin/ --native-dir=bin/natives/ --parent-dir=$(pwd)/ --additional-jar=minecraftforge-universal-1.5.2-7.8.1.738.zip
EasyMineLauncher crashes with a java.lang.NoClassDefFoundError:
Loading natives from: /home/stephen/Development/testm/bin/natives
Loading Minecraft from: /home/stephen/Development/testm/bin/minecraft.jar
Exception in thread "main" java.lang.NoClassDefFoundError: avu
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2413)
at java.lang.Class.getConstructor0(Class.java:2723)
at java.lang.Class.newInstance0(Class.java:345)
at java.lang.Class.newInstance(Class.java:327)
at org.bonsaimind.easyminelauncher.ContainerApplet.loadJarsAndApplet(Unknown Source)
at org.bonsaimind.easyminelauncher.Main.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: avu
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 7 more
It does, however, work without the additional-jar option.
The title says it all. Here is the error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/bonsaimind/easyminelauncher/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Also can't compile manually:
src/org/bonsaimind/easyminelauncher/Main.java:491: cannot find symbol
symbol : method setOpacity(float)
location: class org.bonsaimind.easyminelauncher.ContainerFrame
frame.setOpacity(opacity);
^
1 error
I would use this a lot more if you could set the command-line for the game, and how the custom authorization part gets the login tokens (the URL that the launcher fetches, and how it splits and returns them), and other things that the game environment might need (like executing a shell/batch script, that kind of stuff.)
Hi, i can't loggin correctly with my mojang account. I set my username as my email for loggin (--username=[email protected]) but it keep my email as username (I checked in chat in singleplayer).
Yeah, I know...
Hi, i found another bug: impossible to use --authentication-failure=
Exception in thread "main" java.lang.IllegalArgumentException: No enum constant
org.bonsaimind.easyminelauncher.AuthenticationFailureBehavior.e=ALERT_CONTINUE
at java.lang.Enum.valueOf(Unknown Source)
at org.bonsaimind.easyminelauncher.AuthenticationFailureBehavior.valueOf
(Unknown Source)
at org.bonsaimind.easyminelauncher.Main.main(Unknown Source)
Appuyez sur une touche pour continuer...
P.S. If possible, can you add a function to load dirrectly the lastlogin file with a parameter ?
Requesting support to prompt for username/password on startup which will then pass to Mojang; see SKMC Launcher for example:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.