Comments (6)
JDK 7 has been end of life since April, 2015. OpenJDK 8 has been available since 2014. Is there a reason you are still using 7?
from opencv.
@vonnieda I'm developing project which will be working in the hosting environment I have little control, so I need maximum flexibility. In my experience of developing such java server-side projects, large IT companies prefer stable and open versions of SDK which come standard with Linux OS.
Current widely used server linux distro CentOS 7 includes OpenJDK 7 by default.
Anyway, I don't think your bindings are using any of Java 8 features and supporting JDK7 for you is just a matter of specifying -source and -target build keys when packaging it. It is common practice for libraries to require only previous version of platform to increase library's availability.
from opencv.
@virl As I said, JDK 7 was end of lifed in April of 2015. That means it is not longer recommended for new applications. The current JDK is 8 and has been for for over 2.5 years. JDK 9 is about to be released and then we'll see 8 end of lifed.
The difficulty in doing this is that I don't control the build scripts used by OpenCV to build the OpenCV jar. I run the standard OpenCV build process and then bundle the generated jar. For me to switch the source and target for that jar I'd have to patch the OpenCV build scripts which I don't want to do.
If you can suggest an easy way to do this, or better yet, provide a pull request, I'm willing to include it.
from opencv.
@vonnieda What you saying about end-of-life is true for client apps, not libraries. Most libraries (even latest versions) on Maven still use JDK 7 if they're not requiring Java 8 features.
As for build process, the JDK source and target version is specified in pom.xml. Usually you do not need to change anything else (and don't need to install JDK7 to build it, of course).
from opencv.
@virl OpenCV does not use Maven to build, it uses Ant. I do not control the build scripts for the OpenCV part of the build, only the wrappers. So to do this we would have to patch the OpenCV build scripts before building OpenCV. Note that my pom.xml already does specify 1.7 https://github.com/openpnp/opencv/blob/develop/pom.xml#L146 but that is not the one that matters.
As I said, if you are willing to provide a pull request to fix this I am happy to include it.
from opencv.
@vonnieda Ok thanks for reply.
from opencv.
Related Issues (20)
- Should the License be Changed to Apache v2 for OpenCV version 4.7?
- videoCapture.isOpened() always is false! HOT 4
- Opencv 4.8.1 and BarcodeDetection
- libwebp cve-2023-4863 HOT 1
- Memory Leak with some functions HOT 2
- Java 11 requirement HOT 1
- OpenCV.loadLocally() init error HOT 2
- Caused by: java.lang.UnsatisfiedLinkError: /tmp/opencv_openpnp5364447482759473585/nu/pattern/opencv/linux/x86_64/libopencv_java460.so: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /tmp/opencv_openpnp5364447482759473585/nu/pattern/opencv/linux/x86_64/libopencv_java460.so) HOT 2
- platform specific binaries/artifacts HOT 1
- Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java490 in java.library.path HOT 1
- Long delay when opening camera 0
- update with 4.10.0
- Impossible to load library on Mac OS X HOT 1
- 4.7.0 Version HOT 1
- BarcodeDetector HOT 4
- Extra modules HOT 1
- Class CaptureDelegate is implemented in both HOT 2
- version 4.8.0
- Project runs on M2 Mac but fails on x86 Linux HOT 1
- Setting VideoCapture to certain square resolutions results in garbled output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencv.