I am not sure how it can be done by cmd. But the other option is: 1. Go to "Control Panel" 2. Select "Programs" 3. Click on "Java" 4. Select the "Update" 5. Then click on "Update Now"