Welcome! Log In Create A New Profile

Advanced

Sollution to make viewer work in Windows 10 + latest JAVA

Posted by Werquinx 
Sollution to make viewer work in Windows 10 + latest JAVA
October 09, 2015 10:20AM
I had the same problem as many that the viewer would not work on Windows with all the latest Windows/Eagle/Java updates.

So I tried many things, and I got the following working with Windows 10 / Eagle 7.4 and Java 8.60

In the pcb-gcode viewer directory you have the "viewer.jar" file.

Double click on it to make it run (you might have to authorize). In my case this opens the viewer with the latest board generated by pcb-gcode

So next step was to make an exe file that will execute this java jar ..

Solution I found was "jsmooth" (you can google) and allowed me to quickly generate an exe from the jar file.

At last, i just updated the pcb-gcode.ulp to use this new executable, and bingo, all works just fine !

cf find following in the ULP file and make change as below :

case OS_WINDOWS:
//system(g_path + "/viewer/application.windows/viewer.exe"winking smiley;
system(g_path + "/viewer/applet/viewerxw.exe"winking smiley;

dlgMessageBox("Close this window when you have finished with the preview"winking smiley;
break;

To make things simple, attached you have the complete "viewer" directory with the new exe and modified ULP

Hope this works for others ...

Xavier.
Attachments:
open | download - viewer.rar (1.54 MB)
Re: Sollution to make viewer work in Windows 10 + latest JAVA
October 09, 2015 12:06PM
Just realized that the ULP file is not in viewer directory so attached is the modified ULP file.

Also the viewer.jar file is in the /viewer/applet/ directory ...

Cheers,
Xavier.
Attachments:
open | download - pcb-gcode.ulp (43.7 KB)
Sorry, only registered users may post in this forum.

Click here to login