Can't open files with Java?

Ho
12

I have the problem that all files that have to be opened with Java close again immediately after clicking on them. (Mainly Minecraft files like LabyMod or Optifine). I also have the latest Java version. Does anyone have any idea how I can fix the problem?

Ba

Your question is too unclear to me.

What files are they? Class / .java / .jar / .txt /?
Who opens You double-click or your Java program?
What are 'LabyMod or Optifine' files? Data or programs?

Please describe your question in more detail. That's not how I understand your problem.

Wo

Download Jarfix

Ul

I'm aware of the problem. An error occurs when you start the programs. If you start it with CMD with java -jar programname.jar then you will see the error message. Maybe it's because of your Java version

Ho

But I have the latest version… I've downloaded it again and again

Ho

What is Jarfix doing?

Ul

Try to start the application from the console, there you could get an error message.

java -jar name.jar

Ho

So they are Jar files and I open them by clicking on "Open with" my Java version… And when I click on Open a window opens for a millisecond and closes again immediately

Ul

3. He means finished Java programs or their installers. OptiFine and LabyMod are game additions if you can put it that way

Ho

Is the console what comes when I press Windows + R haha?

Ul

No a CMD window. Search cmd

Then you navigate to your directory with the cd command.

Then you run java -jar hierprogrammname.jar

the Java program. There you will probably get the error message why it closes again immediately

Wo

Fixes the execution of jar files with the correct path

Ba

OK everything good. Then I understand that too.

Simon221585 already gave the tip with the command prompt. That would also have been my idea.