Getting location of java version 1.6 from registry
MMM: Loading mod MinecraftModManager
MMM: ===========================
MMM: Failed to extend net/minecraft/GameUpdater. All mods that attempt to exten
d it will be disabled:
MMM: Unable to find owning mod for not/minecraft/MMMGameUpdaterWrapper
MMM: exception:
java.lang.ClassNotFoundException: Unable to custom-load class net/minecraft/Game
Updater
at not.minecraft.MMM.findClassBytes(MMM.java:1758)
So, it can't find java.exe... What am I doing wrong?
Actually, it is finding java.exe... all the MMM: lines are coming from MMM running (which means that java is running).
The problem it's having is that it can't find net.minecraft.GameUpdater.class, which is a class in the launcher minecraft.jar. Is that minecraft.jar in the same directory as the mmm files?
Rollback Post to RevisionRollBack
Check out my Minecraft Mod Manager, before official modding support makes it redundant in a few weeks. Better late than never!
Using version 0.2, I've gotten to step 5, but when I move to run the .bat file it gives me the error -
Getting location of java version from registrty
Trying to find java on your path
'"java.exe"' is not recognized as an internal or external command, operable program or batch file.
Failed to run "java.exe"
How do I edit the path in this new version?
The .bat file now tries three things to find java on windows - it looks in the registry, it looks at the JAVA_HOME environment variable, and then it looks for it on your path.
Apparently, it's failing to find a useful value in the registry. Probably the next option is to manually set the JAVA_HOME environment variable. Set it to the location of your java installation.
There are lots of instructions out there for setting JAVA_HOME, if you're unsure how to proceed:
Using version 0.2, I've gotten to step 5, but when I move to run the .bat file it gives me the error -
Getting location of java version from registrty
Trying to find java on your path
'"java.exe"' is not recognized as an internal or external command, operable program or batch file.
Failed to run "java.exe"
How do I edit the path in this new version?
The .bat file now tries three things to find java on windows - it looks in the registry, it looks at the JAVA_HOME environment variable, and then it looks for it on your path.
Apparently, it's failing to find a useful value in the registry. Probably the next option is to manually set the JAVA_HOME environment variable. Set it to the location of your java installation.
There are lots of instructions out there for setting JAVA_HOME, if you're unsure how to proceed:
Alright, I did that, but now when I run the .bat Command Shell pops very briefly before closing, without adding the addons folder to the .minecraft folder. I think it says something like '(java install path) was unexpected at this time.'
Alright, looked into it more.
Turns out, the mods are being loaded before MinecraftApplet.init() is being called.
Therefore, when ModLoader trys to do: instance = Minecraft.a
It sets instance = null because this line hasn't been called yet: this.b = new k(this, this, this.a, this, getWidth(), getHeight(), bool);
In MinecraftApplet.init()
So, any ideas on how to force ModLoader.init() to be called AFTER MinecraftApplet.init()?
Getting location of java version 1.6 from registry
MMM: Loading mod MinecraftModManager
MMM: loaded relevant remappings: 540
MMM: Loading mods from directory C:\Users\Ryan\AppData\Roaming\.minecraft\mmm_mo
ds\
MMM: Processing global command file modloader.mmm
MMM: Loading mod (1.3_01-BETA)SinglePlayerCommandsV2.4 (5).zip
MMM: Loading mod AudioMod.zip
MMM: Loading mod GuiAPI0.9.7-1.3_01.zip
MMM: Loading mod Haxman's Mods.zip
MMM: Loading mod ModLoader and Grass Fix B1.3_01v5 (12).zip
MMM: Loading mod TooManyItems.zip
MMM: Loading mod ZanMinimap0.9.7cNewTexture-1.3_01.zip
ModLoader Beta 1.3_01v5 Initializing...
Done.
28
Mod Loaded: mod_Superrunblock 1.3_01
Mod Loaded: mod_Runblock 1.3_01
Mod Loaded: mod_Quicksand 1.3_01
Mod Loaded: mod_Mud 1.3_01
Mod Loaded: mod_Ironfence 1.3_01
MMM: ######################################
MMM: Failed to perform init callback: method ModLoader.readFromClassPath raised
an exception.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at not.minecraft.MMM.invokeInitCallbacks(MMM.java:1450)
at not.minecraft.MMM.initialise(MMM.java:1533)
at net.minecraft.GameUpdater.createApplet(MMMGameUpdaterWrapper.java:33)
at net.minecraft.Launcher$1.run(Launcher.java:87)
Caused by: java.util.zip.ZipException: invalid entry CRC (expected 0x0 but got 0
xba641c69)
at java.util.zip.ZipInputStream.read(Unknown Source)
at java.util.zip.ZipInputStream.closeEntry(Unknown Source)
at java.util.zip.ZipInputStream.getNextEntry(Unknown Source)
at ModLoader.readFromClassPath(ModLoader.java:643)
... 8 more
MMM: Mod ModLoader and Grass Fix B1.3_01v5 (12).zip will be disabled.
MMM: ######################################
Setting user: ryantaker, -6536498338287088058
Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin
Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.or
g)
OpenAL initialized.
Overriding /terrain.png with /haxman12mods/superrunblock.png @ 30
java.lang.NoClassDefFoundError: ModTexture
at ModLoader.RegisterAllTextureOverrides(ModLoader.java:698)
at ModLoader.OnTick(ModLoader.java:949)
at mh.b(mh.java:374)
at net.minecraft.client.Minecraft.run(SourceFile:694)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Unable to custom-load class ModText
ure
at not.minecraft.MMM.findClassBytes(MMM.java:1758)
at not.minecraft.MMM.findClass(MMM.java:1773)
at not.minecraft.MMM.findModClass(MMM.java:1700)
at not.minecraft.MMM.loadClass(MMM.java:1893)
... 5 more
Caused by: java.lang.ClassNotFoundException: No matching class name 'ModTexture'
found in path [Minecraft.jar, mmm.jar, C:\Users\Ryan\AppData\Roaming\.minecraft
\\bin\jinput.jar, C:\Users\Ryan\AppData\Roaming\.minecraft\\bin\lwjgl.jar, C:\Us
ers\Ryan\AppData\Roaming\.minecraft\\bin\lwjgl_util.jar, C:\Users\Ryan\AppData\R
oaming\.minecraft\\bin\minecraft.jar, C:\Users\Ryan\AppData\Roaming\.minecraft\\
bin\native\windows_natives.jar]
at not.minecraft.MMM.findClassBytes(MMM.java:1747)
... 8 more
I think I failed to move some files into the resource directory, but I'm not sure if Modloader v5 is in a zip format not supported by MMM. Can anyone offer any help?
Thank you for your time :biggrin.gif:
edit: Can you try to add a log? It's hard to paste output into a text file when it crashes.
It works with Win7, that warning is from Minecraft itself not MMM.
Only thing I can say is the mod is not in the correct format/for this version of minecraft.
Trying to figure it out, but no luck so far,
I'm running on Mac OS X 10.5 Leopard, and I can't seem to figure out what to run the .sh file under, anyone happen to know?
edit: I'm going insane, I can't seem to figure out anything to run .sh so I can use the mod manager D:
I'm really sorry, I have no idea how to do what you just said. :c Could you help me?
Ok, since messing up your path might break other things, I'll suggest you should go for the second option I gave, editing minecraft.bat.
[*:ddaon7ch] Find where java is installed on your computer. There are a number of ways you could do that: you might remember where you installed it, or you can poke around on your C: drive looking for "Java" (often either in C:\ or C:\Program Files on WinXP), or you could fire up the Add/Remove Programs control panel, find Java in the list of installed programs, click on it, click on the "Click here for support information" link, and if it's a recent enough version it'll have a link to the Readme to a location such as "C:\Program Files\Java\jre1.6.0_21\README.txt".
[*:ddaon7ch] Browse to the location of the java installation, and there should be a folder called "bin". Among the many items in that folder should be an exe, java.exe.
[*:ddaon7ch] Once you know the location of java.exe, browse to MMM's minecraft.bat. Make a backup copy of it just to be safe, and then edit it (there should be an "Edit" option if you right-click the .bat file).
[*:ddaon7ch] The first (and only) line of the file starts off java -Xmx1024M -Xms512M blah blah. Change the first word, java, to be a full path to java.exe, enclosed in quotes if there's a space in the path, like so: "C:\Program Files\Java\jre1.6.0_21\bin\java.exe"
O.k. I have the same problem as him, but Im running XP. When I try to edit the mmm.bat, I get this, and dont know where/how to paste the path name to java.
if "%JAVA_HOME%" == "" (
set JAVA_HOME=%RETURN%
echo Getting location of java version %CURRENT_JAVA% from registry
) else (
echo Using JAVA_HOME environment variable value %JAVA_HOME%
)
if "%JAVA_HOME%" == "" (
set JAVA_EXE="java.exe"
echo Trying to find java on your path
) else (
set JAVA_EXE="%JAVA_HOME%\bin\java.exe"
)
if "%MINECRAFT_DEBUG%" == "" goto runLauncher
rem Turn on JPDA debugging with default port and transport
set JPDA="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
you MUST put Minecraft.jar {the launcher} in the same folder as the bat file. You're obviously not doing that cuz its failing to find it.This has nothing to do with java, its you not putting it in the right place.
Has This been updated fir 1.4? Or does it even need to be updated? I tried to use it to install toomanyitems, and somehow it unupdated my minecraft to 1.3
I don't see how the toomanyitems mod could do this, even if it is still just a 1.3 mod, so I thought maybe it was this? D: doesn't matter that much, just I want to know if I should check back later for and update
Kthnxbai :smile.gif:
Has This been updated fir 1.4? Or does it even need to be updated? I tried to use it to install toomanyitems, and somehow it unupdated my minecraft to 1.3
I don't see how the toomanyitems mod could do this, even if it is still just a 1.3 mod, so I thought maybe it was this? D: doesn't matter that much, just I want to know if I should check back later for and update
Kthnxbai :smile.gif:
If you're just using it to run regular mods, it doesn't need updating - it doesn't rely on any classes in the current version of Minecraft, only those in the minecraft launcher (which are unobfuscated, and change much less frequently).
Any MMM-specific mods out there would need an updated remapping.txt for beta 1.4. I'm working on a Perl script to generate that automatically from MCP (I've built them by hand from MCP's data previously). But I don't know of any yet, and with Notch saying that the official modding API is their next focus, there probably won't be :smile.gif:
Re: reverting you back to minecraft 1.3... that's peculiar. It's possible that MMM got confused over the update, and loaded the 1.3 mappings while you're running 1.4, but that would a) only happen the one time, when it was launched as 1.3 and then updated to 1.4, so re-running it should fix that, and :cool.gif: only affect mods that rely on the remappings (i.e. MMM-specific mods). What happens when you re-run the launcher - does it offer to update Minecraft again? Does the text on the top-left in-game not say "Minecraft beta 1.4"?
Rollback Post to RevisionRollBack
Check out my Minecraft Mod Manager, before official modding support makes it redundant in a few weeks. Better late than never!
Re: reverting you back to minecraft 1.3... that's peculiar. It's possible that MMM got confused over the update, and loaded the 1.3 mappings while you're running 1.4, but that would a) only happen the one time, when it was launched as 1.3 and then updated to 1.4, so re-running it should fix that, and :cool.gif: only affect mods that rely on the remappings (i.e. MMM-specific mods). What happens when you re-run the launcher - does it offer to update Minecraft again? Does the text on the top-left in-game not say "Minecraft beta 1.4"?
I have tried reinstalling minecraft and restarting it several times, and the numbers in the corner say "Minecraft Beta 1.3"
It does not offer to update minecraft, the only way I can get it back to 1.4 is to delete the version file etc. to get a clean minecraft.jar. I don't know if it's maybe the mod doing this.
sorry for the late reply :tongue.gif:
*EDIT* I guess it was the toomanyitems mod. i renstalled it and it works fine now. I'm comfused and have no idea why. oh well whatever. Thanks :smile.gif:
Actually, it is finding java.exe... all the MMM: lines are coming from MMM running (which means that java is running).
The problem it's having is that it can't find net.minecraft.GameUpdater.class, which is a class in the launcher minecraft.jar. Is that minecraft.jar in the same directory as the mmm files?
The .bat file now tries three things to find java on windows - it looks in the registry, it looks at the JAVA_HOME environment variable, and then it looks for it on your path.
Apparently, it's failing to find a useful value in the registry. Probably the next option is to manually set the JAVA_HOME environment variable. Set it to the location of your java installation.
There are lots of instructions out there for setting JAVA_HOME, if you're unsure how to proceed:
http://www.google.com/search?btnG=1&pws=0&q=JAVA_HOME+windows
Alright, I did that, but now when I run the .bat Command Shell pops very briefly before closing, without adding the addons folder to the .minecraft folder. I think it says something like '(java install path) was unexpected at this time.'
Turns out, the mods are being loaded before MinecraftApplet.init() is being called.
Therefore, when ModLoader trys to do: instance = Minecraft.a
It sets instance = null because this line hasn't been called yet: this.b = new k(this, this, this.a, this, getWidth(), getHeight(), bool);
In MinecraftApplet.init()
So, any ideas on how to force ModLoader.init() to be called AFTER MinecraftApplet.init()?
I think I failed to move some files into the resource directory, but I'm not sure if Modloader v5 is in a zip format not supported by MMM. Can anyone offer any help?
Thank you for your time :biggrin.gif:
edit: Can you try to add a log? It's hard to paste output into a text file when it crashes.
Only thing I can say is the mod is not in the correct format/for this version of minecraft.
I'm running on Mac OS X 10.5 Leopard, and I can't seem to figure out what to run the .sh file under, anyone happen to know?
edit: I'm going insane, I can't seem to figure out anything to run .sh so I can use the mod manager D:
O.k. I have the same problem as him, but Im running XP. When I try to edit the mmm.bat, I get this, and dont know where/how to paste the path name to java.
"
Could you please help me?
Change that line to the full path of your java.exe
I tried that, and no luck.
I made it say this: JAVA_EXE="C:\Program Files\Java\jre6\bin\java.exe"
Was that correct?
Here's a screenshot
Thanx for your patience.
I don't see how the toomanyitems mod could do this, even if it is still just a 1.3 mod, so I thought maybe it was this? D: doesn't matter that much, just I want to know if I should check back later for and update
Kthnxbai :smile.gif:
If you're just using it to run regular mods, it doesn't need updating - it doesn't rely on any classes in the current version of Minecraft, only those in the minecraft launcher (which are unobfuscated, and change much less frequently).
Any MMM-specific mods out there would need an updated remapping.txt for beta 1.4. I'm working on a Perl script to generate that automatically from MCP (I've built them by hand from MCP's data previously). But I don't know of any yet, and with Notch saying that the official modding API is their next focus, there probably won't be :smile.gif:
Re: reverting you back to minecraft 1.3... that's peculiar. It's possible that MMM got confused over the update, and loaded the 1.3 mappings while you're running 1.4, but that would a) only happen the one time, when it was launched as 1.3 and then updated to 1.4, so re-running it should fix that, and :cool.gif: only affect mods that rely on the remappings (i.e. MMM-specific mods). What happens when you re-run the launcher - does it offer to update Minecraft again? Does the text on the top-left in-game not say "Minecraft beta 1.4"?
I have tried reinstalling minecraft and restarting it several times, and the numbers in the corner say "Minecraft Beta 1.3"
It does not offer to update minecraft, the only way I can get it back to 1.4 is to delete the version file etc. to get a clean minecraft.jar. I don't know if it's maybe the mod doing this.
sorry for the late reply :tongue.gif:
*EDIT* I guess it was the toomanyitems mod. i renstalled it and it works fine now. I'm comfused and have no idea why. oh well whatever. Thanks :smile.gif: