cannot find the class file when running the java command
hello, thanks for reading.
I am an eclipse user and running files(classes) from the terminal was a bit forgotten to me.
tried to play with my terminal but it gets me to a situation where I had no clue.
I can do the java command 'javac Hello.java'. it reads for a while and then suddenly you have a .class file in the place where the .java file exists but when I do the the javac like 'java Hello', it would say
I believe I have the classpaths set because I can invoke the 'javac' command. and my classpath is
Exception in thread "main" java.lang.NoClassDefFoundError: Hello
I even copied the Hello.class file to the same directory where the java command lies. in the bin directory and it would still give me that friendly message
so I am bit clueless right now, do I have something wrong with my paths? or maybe with the files I am creating?
Any suggestions would be appreciated :D