java returning "NoClassDefFound" error; thinks -jar option is a runnable class -
java -jar <name of executable jar>
results in 1.6 jvm returning noclassdeffound
error 'jar'. why isn't recognising -jar
option , not class run?
jar structure: manifest points main-class @ com.mycompany.entrypoint.class, inside jar. specifies ant-version , haven't set ant_home env variable (running on windows).
exact runtime error:
exception in thread "main" java.lang.noclassdeffounderror: ûjar caused java.lang.classnotfoundexception: ûjar ...
manifest:
manifest-version: 1.0 ant-version: apache ant 1.8.1 created-by: [redacted] main-class: com/mycompany/entrypoint
edit: no idea why tried once more , time executed jar expected.
probably '-' character you're using '-jar' flag not standard ascii '-' sign, kind of utf-8 special character.
remove , replace normal ascii '-' sign.
Comments
Post a Comment