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?
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.
Download Jarfix
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
But I have the latest version… I've downloaded it again and again
What is Jarfix doing?
Try to start the application from the console, there you could get an error message.
java -jar name.jar
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
3. He means finished Java programs or their installers. OptiFine and LabyMod are game additions if you can put it that way
Is the console what comes when I press Windows + R haha?
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
Fixes the execution of jar files with the correct path
OK everything good. Then I understand that too.
Simon221585 already gave the tip with the command prompt. That would also have been my idea.