danila-schelkov / sc-editor

A viewer for Supercell SC graphic files format.
17 stars 1 forks source link

SC Editor

Technical Requirements (ru)

Building

The project uses Maven for building.

To build jar containing only the project code (without dependencies) use:

mvn clean package

And to build jar file with all dependencies built-in use following command:

mvn clean compile assembly:single

Running

  1. Download jar from releases for your OS or build it yourself.
  2. Run with command line:
    java --add-exports java.base/java.lang=ALL-UNNAMED --add-exports java.desktop/sun.awt=ALL-UNNAMED --add-exports java.desktop/sun.java2d=ALL-UNNAMED -jar sc-editor.jar

    Note: JOGL requires you to pass certain VM options. So do not delete it, otherwise the program will not work.

Troubleshooting

If you have issues with running an application try few next steps.

According to the question, adding --illegal-access=permit to the VM-Options solves run issues with Java 16:

java --illegal-access=permit -jar sc-editor.jar