I am interested in writing Java games and wondering if Minecraft is written purely using the standard JDK or if it uses open source libraries (or commercial ones).
Yes. Minecraft uses the LWJGL library for graphics and sound.
It uses the Java Game Controller jinput , and also here
jinput