dragon66 / icafe

Java library for reading, writing, converting and manipulating images and metadata
Eclipse Public License 1.0
204 stars 58 forks source link

compile Java 1.6 support #28

Closed jhidalgo93 closed 8 years ago

jhidalgo93 commented 8 years ago

This library can compile the java 1.6?

I have a problem using classes as my contender this in java 1.6

dragon66 commented 8 years ago

Hi @jhidalgo93,

The source code of this library is Java 1.5 compliant. I compiled it using Java 1.7 without explicitly setting code compliance. So if you use the compiled code with Java 1.6, it won't work. You can either compile the source code using version 1.6 or grab a new build soon.

jhidalgo93 commented 8 years ago

You could release a version compiled in Java 1.6 because in my work environment can not use maven to do it myself ?

dragon66 commented 8 years ago

See the new build which is supposed to be 1.5 binary compatible.

jhidalgo93 commented 8 years ago

thanks friend

Lodurnorbel commented 7 years ago

Hi, I downloaded your last version and can't compile it in Java 1.6. I can't upgrade the version of my compiler so, could you help me with this issue? I don't have too much experience using external libraries from a repository and I would like if you could explain me what I have to do to use your library in Java 1.6. Thank you very much.

dragon66 commented 7 years ago

@Lodurnorbel what is the error message did you get? I only used Java 1.5 compatible features for ICAFE so there should be no issue to compile it using Java 1.6.

jhidalgo1 commented 7 years ago

i have a stable version , you can write me apoloeam@gmail.com

Lodurnorbel commented 7 years ago

Hi @dragon66, thanks for your early response If I use the last version and I set up my project on Java 1.6 I get the following message: major version 51 is newer than 50, the highest major version supported by this compiler.

And then, if I zip the folder in "build" folder with all the classes, I get this error: error: error reading ..\icafe-master\icafe-master\build\classes\icafe.jar; error in opening zip file 1 error ..\nbproject\build-impl.xml:957: The following error occurred while executing this line: ..\nbproject\build-impl.xml:292: Compile failed; see the compiler error output for details.

I don´t know if I did it in a bad way the second time, and I would like to know how to do it well. Thank you very much.

dragon66 commented 7 years ago

@Lodurnorbel looks like something is wrong with the settings when generating the build. I remember set it to Java 1.5 compliant. If you download the source without using the pre-compiled library, you should be able to compile it using Java 1.6.