Only work in java 7??

Issue #1 resolved
Jorge Gomes created an issue

I compile my project in java 1.6 and the machine is 1.6, but whne i call your method i have this error java.lang.UnsupportedClassVersionError: net/aksingh/java/api/owm/OpenWeatherMap : Unsupported major.minor version 51.0

I thinks this is because, your jar is compile in java 7, isn't? I can run your library in java 6??

Comments (3)

  1. Jorge Gomes reporter

    I found the proble, the library(OWMJAPis.jar and JSON.jar) ara compiled with java 7, I dowload the sourdes and recompile with java 6 and work fine

  2. Ashutosh Kumar Singh repo owner

    Hi Jorge,

    Yes, the problem is same which you suspected. I had compiled the code with Java 7 and that's why the problem. Thanks for trying the possibilities and getting the solution. I'm working on the next release of the library. I will compile it with Java 6.

    Would you like to suggest some feature or upgrade for the next version?

    Thanks!

  3. Ashutosh Kumar Singh repo owner

    Source code is compiled with Java 7 and not with Java 6. Kindly re-compile the source code using Java 6 and things will work. :)

    I will compile future releases with Java 6 to support the work of people like you.

  4. Log in to comment