im-pro-at / cncgcodecontroller

CNC-GCode-Controller
MIT License
145 stars 59 forks source link

Can't run #15

Closed Tadeohb closed 10 years ago

Tadeohb commented 10 years ago

Excuse me, do I have to download only the ,jar file? because when I downloaded it and run it, a window showed up with a message: "Could not load Settings" What do I have to do? Please help me bro!

im-pro-at commented 10 years ago

Just ignor it in the first run ;-) Sometimes it also can happen that there are problems with the user profile ... Therefor use the import and Export function under Settings If the program did not start there is sure an other problem Use java -jar JARNAME To run the program from shell there you should see a error message which you can post in another issue Good luck

jamacias commented 10 years ago

Hello! This software is a really great work, but I'm having problems when executing the .jar file we have to download. It always give me the message "Could not load Settings", so it doesn't run at all. I mean that ignoring the message is not enough... I have the latest Java version. What am I missing? Any ideas on how to fix it? Other .jar files, of other programs, work with double-click, but this one doesn't :S

Thank you

im-pro-at commented 10 years ago

I will work on a better error log system ... but it will take some time ...

In the meantime use commandline

"java -jar NAMEOFFILE.jar"

there you can read the error and post it here!

jamacias commented 10 years ago

Thank you for your time. When we try that, we get the same message, and in the command line we get this:

C:\Users\MyUser\Downloads\cncgcodecontroller-4.3\cncgcodecontroller-4.3>java -ja r cnc-gcode-controller_libs.jar may 31, 2014 9:15:15 PM cnc.gcode.controller.Database load Grave: null java.io.FileNotFoundException: C:\Users\Javier.cnccgcodecontroller\Settings.ois (El sistema no puede encontrar la ruta especificada) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(Unknown Source) at cnc.gcode.controller.Database.load(Database.java:113) at cnc.gcode.controller.MainForm.(MainForm.java:27) at cnc.gcode.controller.CNCGCodeController.main(CNCGCodeController.java: 172)

Stable Library

Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 Exception in thread "main" java.lang.NoSuchMethodError: gnu.io.RXTXCommDriver.ge tPortIdentifiers()Ljava/util/Set; at gnu.io.NRSerialPort.getAvailableSerialPorts(NRSerialPort.java:116) at cnc.gcode.controller.Communication.getPortsNames(Communication.java:4 1) at cnc.gcode.controller.MainForm.(MainForm.java:51) at cnc.gcode.controller.CNCGCodeController.main(CNCGCodeController.java: 172)

Note: We have also tried it in our C:\ root folder, but nothing changes.

Hope this helps you to fix it. Thank you.

jamacias commented 10 years ago

Hello again,

I am happy to say that after a few days trying it, it has finally worked! but in another computer. Now it's working on Windows XP with the latest version of Java. It should work on this one (Windows 7 and the latest version as well) but I'll be investigating to find out why it isn't working.

Thank you, the program works perfectly!

im-pro-at commented 10 years ago

Hello

The Problem is the ComPort driver!

What Processor are you have on Windows 7? Java do not support ComPort so its an library compiled for many Systems MAC, Windows (32,64), Linux(32,64,ARM ....) Can also be a problem with rights because the library have to be executed and this can be a security problem. In this project I use nrjavaserial for ComPort and its packed into the jar file.

In the next version this problem should not stop the program from running ;-) Stay tuned!

greetings Patrick