CIRDLES / Topsoil

Community-driven replacement for Isoplot
Apache License 2.0
28 stars 35 forks source link

Runtime error at startup on MacBook Pro #63

Closed MarcPoujol closed 9 years ago

MarcPoujol commented 9 years ago

I updated my java to the latest available version (1.8.0_11). I run a MacBook Pro with a Intel Core i5 processor (ie x64) but when I double click the topsoil-0.3.0.jar file, I receive a message saying that it is impossible to run the file...

Any ideas? Tx

johnzeringue commented 9 years ago

I have a MacBook Pro with an i5 running Mavericks. I can't reproduce your error message.

The first time that I ran the file, it told me that my security settings wouldn't allow it, because CIRDLES is an unknown developer, but I never got an error saying "Impossible to run...".

I saw from your earlier email that you're French. I'm not sure what your language settings are, but perhaps different translations produce slightly different messages or you took too much liberty with your translation to English?

If you are getting the security warning, you just need to go under System Preferences, click Security & Privacy, and (under General) choose to "allow apps downloaded from anywhere". If you don't want to do this (and you might shouldn't), you can also go to the same panel and there will be an option at the bottom to allow just Topsoil to run that appears after you try to run the program.

I'm the primary developer, by the way, in case GitHub doesn't mark me as an admin or something.

MarcPoujol commented 9 years ago

Dear John,

I have a MacBook Pro with an i5 running Mavericks. I can't reproduce your error message.

I am running the same machine as you with the same OS.

The first time that I ran the file, it told me that my security settings wouldn't allow it, because CIRDLES is an unknown developer, but I never got an error saying "Impossible to run...".

I saw from your earlier email that you're French. I'm not sure what your language settings are, but perhaps different translations produce slightly different messages or you took too much liberty with your translation to English?

My Mac runs on the French version of Mavericks. I made a copy of the error message I get (see attached document). Basically, the translation is:

Impossible to start (or run) the file JAR Java "topsoil-0.3.0.jar".

If you are getting the security warning, you just need to go under System Preferences, click Security & Privacy, and (under General) choose to "allow apps downloaded from anywhere".

This is already the way it works on my computer. So there is no security issue. I never had any message related to a security issue anyway. When I double click on Topsoil, Java starts then I have the error message and that's it.

I'm the primary developer, by the way, in case GitHub doesn't mark me as an admin or something.

No worries about that, I knew.

— Reply to this email directly or view it on GitHub https://github.com/CIRDLES/topsoil/issues/63#issuecomment-52844578.

As I don't know how Topsoil runs, could we have a problem with the way the numbers are written in French (ie 0,215456) versus the way it is in English (0.215456)? I know that, for example, it was impossible to run Isoplot on a french computer unless changes were made in order to use "." instead of ","

Thank you for your help Regards

Marc

johnzeringue commented 9 years ago

You might be right. I'm not sure that anyone has gotten Topsoil to run internationally.

Could you help me debug? Open the "Terminal" program, paste

java -version && java -jar Downloads/topsoil-0.3.0.jar

and press enter. You may need to adjust Downloads/topsoil-0.3.0.jar to reflect the actual location of your Topsoil download. I assume your Downloads folder has a different name.

When running the command, if the error message appears, close it, navigate back to the terminal window, and highlight and copy everything that was printed out there into a new comment here.

Please let me know if you have any questions.

MarcPoujol commented 9 years ago

Le 21/08/2014 16:27, John Zeringue a écrit :

|java -version && java -jar Downloads/topsoil-0.3.0.jar| Dear John,

This is what I get:

pr049085:~ mac_poujol$ java -version && java -jar Desktop/topsoil-0.3.0.jar java version "1.8.0_20" Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode) Exception in Application start method java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:363) at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:303) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767) Caused by: java.lang.RuntimeException: Exception in Application start method at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:875) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$147(LauncherImpl.java:157) at com.sun.javafx.application.LauncherImpl$$Lambda$49/1160264930.run(Unknown Source) at java.lang.Thread.run(Thread.java:745) Caused by: java.util.MissingResourceException: Can't find bundle for base name org.cirdles.topsoil.Resources, locale fr_FR at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387) at java.util.ResourceBundle.getBundle(ResourceBundle.java:773) at org.cirdles.topsoil.Topsoil.start(Topsoil.java:52) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$153(LauncherImpl.java:821) at com.sun.javafx.application.LauncherImpl$$Lambda$52/1197514859.run(Unknown Source) at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$166(PlatformImpl.java:323) at com.sun.javafx.application.PlatformImpl$$Lambda$46/1512981843.run(Unknown Source) at com.sun.javafx.application.PlatformImpl.lambda$null$164(PlatformImpl.java:292) at com.sun.javafx.application.PlatformImpl$$Lambda$48/1126374770.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(PlatformImpl.java:291) at com.sun.javafx.application.PlatformImpl$$Lambda$47/1717159510.run(Unknown Source) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) Exception running application org.cirdles.topsoil.Topsoil

johnzeringue commented 9 years ago

I think I fixed the issue. You can now find v0.3.1 on the releases page. Please let me know if this properly solves your issue.

MarcPoujol commented 9 years ago

Le 21/08/2014 16:59, John Zeringue a écrit :

I think I fixed the issue. You can now find v0.3.1 on the releases page. Please let me know if this properly solves your issue. Indeed, I now have a window opening. Then I tried to copy some data and paste them in the window and it does not work (I tried either with cmd + v or using the icon paste from clipboard, but nothing happen. I tried with my own data from excel and from the example given on the web page, nothing works ...

any idea why?

Marc

johnzeringue commented 9 years ago

I'm going to close this issue, since your startup problem has been resolved. I've created #64 to discuss your copy paste bug.