0

When my jar is run on another computer there occurs a java exception but on my setup it runs ok. They are using Java 1.8? atleast one of them is. and my JDK is also 1.8.

Could the cause of this be in META-INF? I also tried sending .class files and running the main class using cmd (it maybe gave some other error i think)

Also I've exported it as a jar from eclipse, not executable jar. Could this be the cause?

EDIT One of the stacktraces says: "Unsupported major.minor version 52.0‏"

user3738243
  • 159
  • 2
  • 13
  • 1
    Post the exception stack trace. – Laerte Mar 04 '15 at 21:36
  • 1
    ask them to run it by opening a command line window and execute `java -jar thejar.jar`, and to paste the stack trace they get. It contains the cause. – JB Nizet Mar 04 '15 at 21:36
  • okay, there's one stacktraces now :) or well.. not the whole stack trace I quess? but signs of something causing the error :) – user3738243 Mar 04 '15 at 22:00

2 Answers2

1

Java version mismatch. The other computer not really running with JRE 8. See this answer for detail Unsupported major.minor version 52.0

Community
  • 1
  • 1
k1eran
  • 4,492
  • 8
  • 50
  • 73
0

Your code was compiled with Java Version 1.8 while it is being executed with Java Version 1.7 or below.

Gwyn Evans
  • 1,361
  • 7
  • 17