Hello everyone, I might have posted this in the wrong section of the Java forums, but I am in deep need of help about something that's been going on with this laptop ever since I got it.
Basically, whenever I try to run the Optifine Installer, Forge Installer, or ANY java application, a command prompt window pops up for a split second, saying, "could not find or load main class [the directory of the application]". The window shows up for about a third of a second, and disappears. I can not run any java applications that have the Java icon. I have no java knowledge what so ever, and I came here for help on how to solve this. I'm a heavy gamer, and I can't do many things with this certain game, if I can't run any java applications.
Here's what I've tried:
- Reinstalling Java
- Made sure that the program is opened with Java
I am positive I installed java, since I can run Minecraft. Again, I have no knowledge of java what so ever, and I have no idea how to fix this. I've attached a screenshot of what the split second window looks like everytime I try to run a java application. This has been going on for about half a year now, and it would be much appreciated if I get a solution!
I have not yet found a fix for this problem.
i know, its a little late. But here another way how to execute .jar files, it MAY work!
You need to execute the .jar file using the command prompt
NOTE!
You need java for ALL these methods
WINDOWS:
1. open CMD (WindowsKey + R, and then type 'CMD'. Hit enter)
2. navigate to the directory of the .jar file (Type "pushd [PATH]", example: "pushd C:\Windows\System32")
3. type "java -jar [FILENAME.jar]" (example "java -jar minecraft.jar")
I know your on windows because of the screenshot, but if poeple on linux read this with the same problem, heres a fix anyway...
LINUX:
1. open the terminal (you should really know this if your using linux)
2. navigate to the directory of the .jar file (i have no good explenation for this, without making it too long. Google it)
3. type "java -jar [FILENAME.jar]" (example "java -jar minecraft.jar")
MAC:
NOTE!
I never used mac so my explenation may be a little rough
1. open the terminal (i have no good explenation for this. Google it)
2. navigate to the directory of the .jar file (i have no good explenation for this. Google it)
3. type "java -jar [FILENAME.jar]" (example "java -jar minecraft.jar")
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Basically, whenever I try to run the Optifine Installer, Forge Installer, or ANY java application, a command prompt window pops up for a split second, saying, "could not find or load main class [the directory of the application]". The window shows up for about a third of a second, and disappears. I can not run any java applications that have the Java icon. I have no java knowledge what so ever, and I came here for help on how to solve this. I'm a heavy gamer, and I can't do many things with this certain game, if I can't run any java applications.
Here's what I've tried:
- Reinstalling Java
- Made sure that the program is opened with Java
I am positive I installed java, since I can run Minecraft. Again, I have no knowledge of java what so ever, and I have no idea how to fix this. I've attached a screenshot of what the split second window looks like everytime I try to run a java application. This has been going on for about half a year now, and it would be much appreciated if I get a solution!
Thanks everyone!
Here is what the split-second command prompt looks like:
http://imgur.com/vVQskqx
107.152.186.210:25570
My YouTube Channel:
http://www.youtube.c...eonblaststarsMC
i know, its a little late. But here another way how to execute .jar files, it MAY work!
You need to execute the .jar file using the command prompt
NOTE!
You need java for ALL these methods
WINDOWS:
1. open CMD (WindowsKey + R, and then type 'CMD'. Hit enter)
2. navigate to the directory of the .jar file (Type "pushd [PATH]", example: "pushd C:\Windows\System32")
3. type "java -jar [FILENAME.jar]" (example "java -jar minecraft.jar")
I know your on windows because of the screenshot, but if poeple on linux read this with the same problem, heres a fix anyway...
LINUX:
1. open the terminal (you should really know this if your using linux)
2. navigate to the directory of the .jar file (i have no good explenation for this, without making it too long. Google it)
3. type "java -jar [FILENAME.jar]" (example "java -jar minecraft.jar")
MAC:
NOTE!
I never used mac so my explenation may be a little rough
1. open the terminal (i have no good explenation for this. Google it)
2. navigate to the directory of the .jar file (i have no good explenation for this. Google it)
3. type "java -jar [FILENAME.jar]" (example "java -jar minecraft.jar")