Open the versions folder and create a new folder whatever you would like to call itģ. Copy/cut the jar file, but don't paste it yetĢ.
the reason is because when you put the java file in the mod folder, it will just work as a basic mod until another one in another section in the '.minecraft' folder is beeing used. The way you describe on how to install java mods, is wrong.