Closed codymays closed 6 years ago
What does it print if you run it from the console with java -jar DataSync-1.9.1.jar
?
Ah, looks like it's a version error.
[image: image.png]
On Thu, Aug 16, 2018 at 12:30 PM rjmac notifications@github.com wrote:
What does it print if you run it from the console with java -jar DataSync-1.9.1.jar?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/socrata/datasync/issues/184#issuecomment-413624084, or mute the thread https://github.com/notifications/unsubscribe-auth/Am4zt7ocktX3uc9s0z0XDzXvmQgOqE6Tks5uRaxEgaJpZM4V-xeH .
Hm, that image didn't come through, but I'm going to assume it says something like "unsupported major.minor version somethingorother". Which isn't right, the jar was compiled on java 8 but the build's supposed to be configured to emit java 7 bytecode. Digging a bit to see what's going on here.
Ah, sorry about the image. Here is the exception text:
Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved.
D:\Socrata\DataSync API>java -jar DataSync-1.9.1.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError:
javax/ws/rs/P
rocessingException : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
2)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at
com.socrata.datasync.ui.SimpleIntegrationWizard.getNewIntegrationJob(
SimpleIntegrationWizard.java:431)
at
com.socrata.datasync.ui.SimpleIntegrationWizard.generateMainPanel(Sim
pleIntegrationWizard.java:628)
at
com.socrata.datasync.ui.SimpleIntegrationWizard.
On Thu, Aug 16, 2018 at 12:41 PM rjmac notifications@github.com wrote:
Hm, that image didn't come through, but I'm going to assume it says something like "unsupported major.minor version somethingorother". Which isn't right, the jar was compiled on java 8 but the build's supposed to be configured to emit java 7 bytecode. Digging a bit to see what's going on here.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/socrata/datasync/issues/184#issuecomment-413627222, or mute the thread https://github.com/notifications/unsubscribe-auth/Am4zt-xcKLA3FMO5XCntUohdgU3kbHHfks5uRa7DgaJpZM4V-xeH .
Ugh ok I see what's going on. An included library we upgraded is built for Java 8 now, so even though datasync proper has 1.7 bytecode it still requires 8. I'm not sure we can downgrade it (the old version of the library was very ancient), but switching to a current version of Java will solve this problem.
Gotcha, thanks. So any version 8 and above?
On Thu, Aug 16, 2018 at 12:47 PM rjmac notifications@github.com wrote:
Ugh ok I see what's going on. An included library we upgraded is built for Java 8 now, so even though datasync proper has 1.7 bytecode it still requires 8. I'm not sure we can downgrade it (the old version of the library was very ancient), but switching to a current version of Java will solve this problem.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/socrata/datasync/issues/184#issuecomment-413629133, or mute the thread https://github.com/notifications/unsubscribe-auth/Am4zt5SJPW2Ki8L8Fhnl-uHO0OaSBVmEks5uRbBGgaJpZM4V-xeH .
Yep, 8+ should all work.
I've updated the documentation page to reflect this new minimum verison.
I am able to run DataSync-1.8.2.jar without an issue (opens successfully) on our Windows 2012 server but when double-clicking to open DataSync-1.9.1.jar or attempting to open from command line nothing happens. We have Java RE 1.7.0_79.