I cannot run my java using cmd

Please help.
Thank you
Well, you've to compile it before you try java Subset. This tutorial on creation, compilation and execution of Java source files in command prompt might be of help to you. As a quick update, here's what you can consider doing:
javacjava commanddown-vote , an explanation would be useful!There is no Subset class in the classpath. Netbeans places the compiled classes in the build directory, so try (as I stated in my comment)...
java -cp build Subset
Make sure you've built via Netbeans. If you haven't, you can also do...
javac -d build src/Subset.java
java -cp build Subsetmaybe?Subset.classin the directory?javac *?