New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsupported major.minor version 52.0 #397
Comments
I have fixed this by compiling the libraries in JDK 1.7 now this is working in my local tomcat with JVM 1.7 but I am getting below error while deploying the application in openshift.redhat.com. I don't know RedHat environment details :( which basically says Caused by: java.lang.RuntimeException: Library 'OpenIMAJGrabber' was not loaded successfully from file '/var/lib/openshift/56081b1789f5cf12fc000062/jbossews/tmp/BridJExtractedLibraries9012739367972665359/OpenIMAJGrabber.so' StackTrace: |
Hi @biswajitroy04, Thank you for the report. I checked the 0.3.10 version available from Maven:
The output is:
The above points out it's 1.6. I did the same with the 0.3.11-SNAPSHOT and effect was the same. I suppose that problematic class in your case was simply In regards to the second issue - this may be caused either by:
But are you really trying to open UVC in a cloud? Or did you want to use some IP camera and simply forget to set appropriate capture driver? |
Thanks a lot for your reply. I will check all these aspects and yes I need Thanks On Mon, Sep 28, 2015 at 12:54 PM, Bartosz Firyn notifications@github.com
|
Hi @biswajitroy04, Ok, in regards of the major/minor version issue I'm almost 100% sure that To switch from UVC to IP camera just replace the capture driver: static {
Webcam.setDriver(new IpCamDriver(new IpCamStorage("cameras.xml")));
} (keep in mind that you have to have By doing the above the issue with And here is small low latency streaming example using IP cameras on a web service backend which transmit images to the GUI through WebSocket. Take care! |
I forget to put a link to the example. Here it is: |
@biswajitroy04, I'm closing this ticket. Please comment here if you have any further questions in regards to this. |
Hi ,
My application uses com.github.sarxos.webcam.Webcam libraries and that's why it needs JRE 1.8 and my application is working in my local since I have JRE 1.8 in my local but while I am deploying my application in "http://security-ecam.rhcloud.com/" OpenShift I am getting below Exception
java.lang.UnsupportedClassVersionError: com/TestJava : Unsupported major.minor version 52.0 (unable to load class com.TestJava)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2961)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1210)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
So how to deploy and run the app in server using JRE <1.8
Thanks
Biswajit Roy
The text was updated successfully, but these errors were encountered: