How Can I Do This (Context Menu Editing)

Okay, so I am just learning Java, and I hate how atm I have to use command panel and there lots of typic in javac java this in my testing. So I downloaded ContextEdit and put a compile on the right click of .java, this works fine. However, the program doesn't have an entry for .class, and even if I did, and make it cmd.exe /c java "%1", cmd would still close right after running the program, which wouldn't show me the results. This is my theory

Has anyone got any ideas of how I can have a Run option in my context menu for .class that will open Command Prompt with the command java "%1" and then make it stop after running it, so it doesn't close. Kinda like pause

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.