i had a file called Simple.java and it uses packages which are present in netcdfAll- 4.2jar and i had compiled it successfully but when i tried to run it im getting error message like
exception in thread main java.lang.NoClassDefFoundError
i had a file called Simple.java and it uses packages which are present in
Share
Without knowing your exact command, you maybe missing the classpath. When running your code using the java command use -cp (classpath) option like this (assuming Linux):
put all required jars as a colon separated list to the -cp switch
Read this page for details