So I've been trying to get a few mods to work, but I'm having a problem which I can't seem to solve. Google doesn't seem to know. The problem is that I can't run my .jar files. I've tried opening it with my javaw.exe file and I keep getting a message that says:
Quote from Java Virtual Machine Launcher »
Could not find the main class:
C:\Users\*****\AppData\Roaming\.minecraft\MrMPatcher.jar. Program
will exit.
(In this instance, I'm trying to install MrMessiah Minecraft Mods, but I've tried others that do the same thing.)
Now, I've reinstalled java twice, and I've tried to run it from the command prompt, but that gave me another set of problems. And ideas what could be going on?
Yes, I do have it in C:\Users\****\AppData\Roaming\.minecraft. My problem seems to be that Java is not installed correctly, but I can't find out why. I've googled the error message and I'm not finding any answers that work, which is why I'm posting here. I am hoping since java is so widely used in the world of minecraft that someone here would have some insight.
[*:2hzswvl4]Uninstall Java.
[*:2hzswvl4](windows globe)->Control Panel->System and Security->System->Advanced system settings->Advanced tab->Environment Variables...
[*:2hzswvl4]If you see a variable called CLASSPATH or JAVA_HOME or JRE_HOME or anything related to Java, delete it (the installer will recreate anything that's needed). This page may help. Do not delete PATH or any other variables that are used by applications other than Java. Otherwise, you may make things worse.
[*:2hzswvl4]Reinstall Java.
Rollback Post to RevisionRollBack
When all is said and done, Will you have said more than you have done?
You masked out the user name for privacy, but be aware if your windows login user name includes any unusual characters (such as "!") this causes issues for java, test another windows login username without any odd characters if that might be the case,
CobraA1, I did each of your steps in turn and double checked each of them, but I ended up with the same problem at the end. I also went over the page you linked in order to double check my environment variables. After I uninstalled Java I cleared it of anything that could be considered connected.
It might be helpful to know that I can't type "java" in my command prompt to access it. This was happening before, and I double checked it and it is still happening.
brashendeavors, I did see a post while searching through google that said the same thing, but I've got nothing but letters in my username.
Oh, and I greatly appreciate that people are trying to help!
Java is installed here: C:\Program Files (x86)\Java
As I said before, I'm running Windows 64bit, so any program that doesn't specify itself as 64bit gets installed into "Program Files (x86)" instead of just "Program Files". I thought this might be an issue, but all the variables I've seen are linking to the right folder, and even in the Java control panel under "Java", then view, it has the correct path.
And yes, Java itself works fine. Minecraft runs and any java applets in my browser runs.
For some reason on my windows 7 64 bit, I have java in both Program Files and Program Files (x86) --which probably is due to something sloppy on my end) but apparently it must be possible to get it installed both locations, have you tried installing java using the 64-bit MSIE even if that is not your normal browser?
I am not sure you need to uninstall, just install in both places. The link seemed to suggest some people use both 32/64 versions so it must not be a problem having both locations installed.
Well, I did uninstall it, and just installed the 64bit version, but while minecraft ran, I could not get windows to open the .jar with javaw.exe, so I didn't even get the error I was getting before. I'm going to try and install the 32bit version in the normal program folder and see what happens.
Quote from CobraA1 »
Have you tried double clicking the jar file to run it?
Yes, that is where I started getting the "Could not find main class" error.
Including the quotes, and replacing the stars appropriately.
You may or may not need the "\jre6" part of it, that's just the way it is on my system.
Wow, ok. So I tried to install it to the normal programs folder and it installed to the (x86) one anyway! So much for that.
Vista and Windows 7 will detect 32 bit installs and virtualize the path - not much you can do about that, and doubtful you need to do it anyways. I own a 64 bit system and didn't have to do that kind of stuff.
Rollback Post to RevisionRollBack
When all is said and done, Will you have said more than you have done?
No problem. I suspect something's still messed up with some environment variable (Java has never really done a good job with them), but at least you have a workaround.
Rollback Post to RevisionRollBack
When all is said and done, Will you have said more than you have done?
(In this instance, I'm trying to install MrMessiah Minecraft Mods, but I've tried others that do the same thing.)
Now, I've reinstalled java twice, and I've tried to run it from the command prompt, but that gave me another set of problems. And ideas what could be going on?
Oh, and I'm running Windows 7 Ultimate 64bit.
And make sure MrMPatcher.jar is in that folder. When you open .minecraft, you should see MrMPatcher.jar.
If Java is installed correctly, you should be able to just double click the jar file to run it.
Otherwise, Java might not be set up correctly. Ask Google about Java and environment variables in that case.
[*:2hzswvl4]Uninstall Java.
[*:2hzswvl4](windows globe)->Control Panel->System and Security->System->Advanced system settings->Advanced tab->Environment Variables...
[*:2hzswvl4]If you see a variable called CLASSPATH or JAVA_HOME or JRE_HOME or anything related to Java, delete it (the installer will recreate anything that's needed). This page may help. Do not delete PATH or any other variables that are used by applications other than Java. Otherwise, you may make things worse.
[*:2hzswvl4]Reinstall Java.
It might be helpful to know that I can't type "java" in my command prompt to access it. This was happening before, and I double checked it and it is still happening.
brashendeavors, I did see a post while searching through google that said the same thing, but I've got nothing but letters in my username.
Oh, and I greatly appreciate that people are trying to help!
http://www.java.com/en/download/help/testvm.xml
As I said before, I'm running Windows 64bit, so any program that doesn't specify itself as 64bit gets installed into "Program Files (x86)" instead of just "Program Files". I thought this might be an issue, but all the variables I've seen are linking to the right folder, and even in the Java control panel under "Java", then view, it has the correct path.
And yes, Java itself works fine. Minecraft runs and any java applets in my browser runs.
http://www.java.com/en/download/faq/java_win64bit.xml
Have you tried double clicking the jar file to run it?
Yes, that is where I started getting the "Could not find main class" error.
This is quite annoying...
Including the quotes, and replacing the stars appropriately.
You may or may not need the "\jre6" part of it, that's just the way it is on my system.
Vista and Windows 7 will detect 32 bit installs and virtualize the path - not much you can do about that, and doubtful you need to do it anyways. I own a 64 bit system and didn't have to do that kind of stuff.
Have you tried this suggestion :
viewtopic.php?f=25&t=55700&start=420#p1178514
"If you must run it from a command line, you want to type "java -jar MrMPatcher.jar""
(I think thats the same as CobraA1's, he is being a bit safer using full paths enclosed in quotes)
This totally work! Thanks!
Although my system is apparently still messed up. But at least I can get around it.
Thanks so much!