Javascript files opened with editor?

ch
1

I accidentally opened the file with the editor when installing Optifine for Minecraft and therefore can no longer install it in Minecraft how can you undo it

Gu

Just right click on the file, then open with and then select Java. Then you can usually also set that Java should always use it to open such files.