Java JAR works fine via command line, but not double click JAR

The title is pretty self-explanatory, I think. When I run the JAR, the following exceptions occur:

Error message

So naturally I run it on the command line, so hopefully the exception and stack stack message comes up, but when I do it it works fine: everything works, no messages in the prompt (except for intentional fingerprints, of course).

This is written in JDK 1.7.0_71 (64 bit). I have a JRE for this version, both 32 and 64-bit on my machine. I force it to right click -> open to use javaw.exe from all three of them, but each throws the same error. Input java -version

gets me:

java version "1.7.0_71"
Java (TM) SE Runtime Environment (build.1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

      

Windows 7 64-bit. NetBeans 8 (works fine through NetBeans, no error in the output window). The program uses libraries GDAL, GeoTools, NetCDF, EJML and JodaTime.

I mean I would provide more information, but I don't even know where to start. Even just looking for advice on where to start to find out what the problem is.

UPDATE: After a simple message dialog in random lines until I can narrow down the problem, it looks like the bug is with the GDAL / OGR libraries. (The exact line is at org.gdal.ogr.RegisterAll()

). It's strange why this works great in other ways. For now though I am looking at this particular GDAL question as GDAL bindings were very strange and frustrating before.

+3


source to share





All Articles