vidmik / anm2gif

Deluxe Paint Animation (.ANM) file player and converter
GNU General Public License v2.0
4 stars 0 forks source link

Problem compiling and running #1

Open mathdufort opened 5 years ago

mathdufort commented 5 years ago

Hello there,

I'm in the process of converting my old Deluxe Paint III animations and I found your project which looks like exactly what I need. I cloned the project and tried running by using gradlew but I'm getting javafx errors like: C:\Temp\anm2gif\src\main\java\se\vidstedt\anm2gif\Gui.java:4: error: package javafx.application does not exist import javafx.application.Application;

I tried downloading openjdk javafx and putting it in java 12 jdk folders but I'm going nowhere. Could you please tell me what I could be doing wrong?

Please excuse my java noobness...

Thanks in advance

Mathieu P.

GeorgeMcMullen commented 2 years ago

I know this is an old issue, but this may help if you or someone else experiences the problem.

  1. Get JavaFX SDK (I used the one from here: https://openjfx.io/)
  2. You can download it and extract it to anywhere. Let's say you downloaded v17.0.1 and extracted it to ~/Downloads/.
  3. In your cloned repo, do the following: cd src/main/java
  4. Next, the following command: javac --module-path ~/Downloads/javafx-sdk-17.0.1/lib --add-modules javafx.controls se/vidstedt/anm2gif/*.java
  5. Finally, you should be able to run the program as such: java se.vidstedt.anm2gif.Main <infile.anm> <out.gif | out directory>

I'm currently getting a NULL pointer exception when attempting to export to GIF, but exporting to a directory works.