Hello. I am trying to run .java-files from cmd. First i type: "javac filename.java" to make it into a .class-file. This works fine, but when i try to run the .class file typing: "java filename" i get an error message:
Exeption in thread "main" java.lang.NoClassDefFoundError: filename
Do you know what I am doing wrong. Maybe i have need to configure java in some way?
Exeption in thread "main" java.lang.NoClassDefFoundError: filename
Do you know what I am doing wrong. Maybe i have need to configure java in some way?