-1

I have a program running that uses azure storage blobs. When it runs on a device that had java version 1.8.0_91 there is no error, but when it runs on a device that is java version 1.7.0_45, then it gives the following error

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.microsoft.azure.storage.core.Utility

Could this error be because com.microsoft.azure.storage.core.Utility is not supported in java 1.7 or could it be some other problem altogether.

Any input would be appreciated

Aparna
  • 835
  • 2
  • 23
  • 47

1 Answers1

0

According to the description of Azure Storage for Java on GitHub, the minimum requirement for JDK version is 1.6+. So I don't think the error was casued by not supporting in Java 1.7.

There are some SO threads below that I think their answer are useful & helpful for you to find out the issue reason and resolve it.

  1. What causes and what are the differences between NoClassDefFoundError and ClassNotFoundException?
  2. Why am I getting a NoClassDefFoundError in Java?
  3. How to solve java.lang.NoClassDefFoundError?
Community
  • 1
  • 1
Peter Pan
  • 23,476
  • 4
  • 25
  • 43
  • Thankyou, but the problem is the program gives no error on one system, but gives on another. Another difference between the systems is that one runs Windows and the other Linux (gives the noclassdef errror). – Aparna Dec 05 '16 at 14:35
  • @Aparna Thanks for your feedback. Seems that you post another thread http://stackoverflow.com/questions/40975896/getting-a-java-lang-noclassdeffounderror-in-linux-platform-and-not-windows which I will try to help solving it. – Peter Pan Dec 06 '16 at 01:44