The bug
If you are on a mac, open up minecraft 17w43b and look at the icon of the game. The icon will show text saying exec instead of showing the crafting table icon.
Additionally it has the word 'java' on the menu bar (the bar on the top) instead of Minecraft.
Related issues
is duplicated by
Attachments
Comments

This is a known issue, see the Minecraft blog post about 17w43a and 17w43b.

In snapshot 17w47b no icon appears in the Dock at all, for the launcher or the game.

Still affects 18w05a, please update!

Still affects 18w09a.

Affects 1.13-pre6.

Affects 1.13 pre7.

I already marked pre7 as affected

Not fixed in release 1.13!? come on Mojang you said you were going to fix this.

Affects 1.13.1-pre1

Affects 1.13.1 release

Still affects 1.13.2 Pre-1

yeah same. 1.13 and up

Affects 18w43c

Affects 19w05a

This is still an issue in 1.13.2, as well as the newest snapshot (19w09a) and it is also is affecting the ability for other programs to detect the game.

Affects 19w12a

EASY FIX:
To all thy Mac OS users who are sick and tired of seeing the black 'exec' Java icon, I have a solution if not already known, and this is even better than the boring crafting table.
STEPS TO FIX:
Find a transparent icon of ANY Minecraft block you favor. I chose an Enchantment Table.
Download the image in full resolution by right clicking the image and saving it to your downloads.
Drag the image onto your Desktop and open the image in Preview.
Once in Preview, go to Edit > Select All and then go back to Edit > Copy. *You MUST copy the image in this EXACT way or the whole process will not work*
Open Minecraft and start the game.
Once you have Minecraft open on the start screen (Singleplayer/Multiplayer/Realms screen), move to your dock and right click the black 'exec' icon.
Go to Options > Show in Finder
Once in Finder, you will see the black 'exec' screen is named "java."
Right click the "java" 'exec' icon and click "Get Info."
Click on the SMALL black 'exec' icon in the top left corner of the window and make sure it is highlighted blue.
Type CMD+V (or paste the image using keyboard shortcuts) and it should appear in the window as the new icon.
Close all the windows and finder windows and restart Minecraft.
When it opens, cross your fingers and hope to God that it works and you should see your icon in your dock!
Voila!!! ENJOY!
**This can be used with ANY icon that has a transparent background and is copied in the specific way listed above. You can have Bookshelves, Eye of Ender, Your own skin face! It is up to you, and the possibilities are endless. Have at it, and have fun!
From your fellow smelter and crafter,
RebelKnox

It affects 1.14 & 1.14.1.
Any news on a fix anytime in the near future? This has been a problem for so long and honestly it's a bit annoying the the icon for Terminal is what shows up when Minecraft is open. Can someone please explain to me what exactly the issue is?

It also affects both prereleases for 1.14.1 & both prereleases for 1.14.2.

It also affects 1.14.2 prereleases 3 & 4, as well as 1.14.2, and 1.14.1 prereleases 1 & 2.

Affects 1.14.3 prerelease 2

Still present in 1.14.4 prerelease 3.

Still affects 1.15 Pre 2

Still affects 1.15 release. I think because of this issue is '-Xdock:icon' option is not there in the JSON.

still in 1.16 snapshot. does someone have the crafting table icon? (the one with the reflection, like 1.12 and below)

there is a easy fix, but but for now. go to ~Library/Application Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/java then press cmd+i. Then drag this file on the icon and. Voila, temporary fix.
[media]
I just love how much they neglect macOS edition. COME ON Mojang

Affects 20w20b.

There is also an easy fix for the application name (which currently just says "java") (This is working as of Minecraft 1.16 in June of 2020). You will need to use the Terminal application for this.
Open Terminal (which can be found in /Applications/Utilities/Terminal.app, or by searching "Terminal" in the spotlight search).
Enter cd ~/Library/Application\ Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/, which will set the current directory of the Terminal, hence cd. (Be sure to press enter/return after inputting each command)
Then enter mv java Minecraft, which will rename the "java" executable to "Minecraft" (or any name that you like, but you must be consistent between this step and the next one).
Finally, enter ln -s Minecraft java, which will create a symbolic link between the old java executable (which has been renamed) and the place where the java executable used to be. Now when the Minecraft Launcher looks for the java executable, it will be redirected to the Minecraft executable, and the name in the dock will be updated.
If you want to run all of the commands, copy and paste the following into Terminal and press enter/return:
cd ~/Library/Application\ Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/;mv java Minecraft;ln -s Minecraft java
I can confirm for 2.2.629.
Confirmed for 2.2.740.
Can confirm in 2.2.1864.

As a proof of concept, the following changes on my install achieved desired name and icon improvements. Tested with Minecraft 21w11a under macOS Big Sur 11.2.3; see "Proof of Concept Demonstration 2021-03-23.png".
① Renamed "java" to "Minecraft Java" in "~/Library/Application Support/minecraft/runtime/jre-legacy/mac-os/jre-legacy/jre.bundle/Contents/Home/bin/".
② Added icon (resource fork data) to the "Minecraft Java" executable file. (Pasted icon via Get Info in the Finder.)
③ Updated the Java executable path used by the Minecraft launcher accordingly.

Another fix is run
ln -s ~/Library/Application\ Support/minecraft/runtime/jre-legacy/mac-os/jre-legacy/jre.bundle/Contents/Home/bin/java '/Applications/Minecraft.app/Contents/MacOS/Minecraft Java Edition'
then make a text file called "minecraft" in TextEdit with this text:
#!/bin/bash
'/Applications/Minecraft.app/Contents/MacOS/Minecraft Java Edition' "$@"
After typing it in, go to Format on the menu bar and click "Make Plain Text". if it is there. If it asks you to confirm, just confirm. If it is not there, it means it is already plain text.
When you save it, make sure you can see the Finder preview. Then, use Command+Shift+G to go to folder. Type in
/Applications/Minecraft.app/Contents/Resources
and click Go. Name It "minecraft" with no extension (uncheck the box that says "if no extension is provided, use ".txt") and then save it. Then, run
chmod +x /Applications/Minecraft.app/Contents/Resources/minecraft
Then, open up the Minecraft launcher, go to Installations an edit your installation. Set the java executable to the text file called "minecraft" that you created.

So frustrating because this used to work properly.
btw, this issue also causes problems with Discord App detection. Minecraft is detected as "java", and no longer verified by Discord. Again, this USED to work properly.
@Glitchatic wrote:
— Added icon (resource fork data) to the "Minecraft Java" executable file. (Pasted icon via Get Info in the Finder.
Where did you get the crafting table icon from?
nvm. got the icon from the OP attachments.

Specifying -Xdock:icon=/path/to/icon.png in your JVM arguments used to let you use a custom icon. Now, it is still the exec icon even with the icon argument. The -Xdock:name="Your custom name" argument also has no effect.

can confirm in 2.2.5518

Also confirming on 2.2.5518. Seems like an easy enough fix.

Confirmed in 2.2.7205

Hello, yes, I'm not interested in screwing around with Terminal, renaming executables and creating links and downloading png files from Google Images. I am interested in the software I paid for working correctly, as it used to, before Microsoft broke it.
Currently this is preventing me from targeting Minecraft.app for app-specific behavior in Logi Options, because Minecraft.app is now... just the launcher. Useless.
I quietly seethed while, little by little, quality of life fell to the wayside. It's Microsoft, what do you expect, at least it isn't microtransactions and mandatory 365 accounts and excessive cloud logging leading to vuln- oh wait. :^) So the icon is broken. Whatever. I can still play.
But now, due to the root cause of the icon issue, I cannot actually interact with Minecraft.app from other apps anymore, because it is broken in a ridiculous way, using nonstandard behavior, that no other app exhibits, no, not even Java apps, thank you. It used to work, now it doesn't, there's no QC because they don't care about other platforms.
Anyway. While we're vomiting into /dev/null. Confirmed.

Yes Goot, you are correct. This has been a bug for 4 years, I'd be surprised if we saw anything change now. I have a list of MacOS specific bugs that's all on here and they never get any attention apart from the amazing people of the community who keep updating them as newer versions gets affected. Some of them make the game unplayable on certain Macs, and yet no attention. It's sad. 1.12 was the last good release on MacOS.

As far as I can tell this is a Minecraft game issue, not specifically the launcher per say, as the same behaviour occurs when launching a game from the MultiMC Client.
@unknown moved this report from the Minecraft: Java Edition project to the Minecraft Launcher project, so it must be something that will need to be fixed on the launcher side. Additionally, the report has been assigned an ADO number, meaning the launcher developers are tracking the issue internally. 🙂

Hopefully this is fixed soon … together with the critical bug which leads the Minecraft Launcher to crash immediately after launch and an updated version for Apple Silicon…
Would be an amazing Christmas miracle!

Yo guys I finally found a solution to this issue, just watch this video and you'll get what we all wanted : https://www.youtube.com/watch?v=Zvvw-TeHVpE
This video mainly shows how to fix the scrolling locked while sneaking, but shows at the same time how to recover the crafting table icon of the game !
Hopefully this will work for everyone, I'm on macOS Big Sur and it worked perfectly.

Just a heads up, this seems to effect Linux too. This seems to be an issue with all versions between 1.13 and 1.18.1
System Information (Provided by neofetch)
[media]1.13
[media]1.18.1
[media]1.12.2 (Expected behaviour)
[media]Additional information:
Launcher was installed via the Official AUR package provided by Mojang
I've experienced this same bug on Linux Mint 20.2 and on my Laptop (i5 8th gen integrated graphics)