boazy / TWEditorEnhanced

Savegame Editor for The Witcher
35 stars 16 forks source link

Error: Could not find or load main class (with Java.exe) #8

Open MZ7584 opened 4 years ago

MZ7584 commented 4 years ago

First off, a lot of thanks for this code / your work.

Using: TWEditor 3.0.1, Windows 10, jre1.8.0_261

Running TWEditorEnhanced-3.0.1.jar with javaw.exe, I got nothing, no errors. It seemed like it didn't do anything. With java.exe, I got: Error: Could not find or load main class TWEditorEnhanced-3.0.1.jar

I found an old version. Extracted (7-Zip) MANIFEST.MF. And added:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.6.0-b105 (Sun Microsystems Inc.)
Main-Class: TWEditor/Main

to MANIFEST.MF in TWEditorEnhanced-3.0.1.jar (using 7-Zip), that only had: Manifest-Version: 1.0

And when I ran it, it gave errors (file locations, language) that were easily fixed and it worked.

Not needed: Renamed TWEditorEnhanced-3.0.1.jar to TWEditor.jar