mikroskeem / radicalaces

Radical Aces Classic ported to desktop
24 stars 5 forks source link

Failure: Build failed with an exception #2

Closed ThomasGGoodwin closed 5 years ago

ThomasGGoodwin commented 5 years ago

When I was running the gradle batch file, it finished unzipping and then outputted this error.

FAILURE: Build failed with an exception.

What should I do about this?

mikroskeem commented 5 years ago

I think Gradle version what this project tries to use is out of date and won't work with newer Java versions. I'll update it in a moment

mikroskeem commented 5 years ago

I pushed b1c99e2, you have to wait for another download but hopefully it'll work. Let me know how it goes then :smile:

ThomasGGoodwin commented 5 years ago

It went farther along, but then it posted this error.

BUILD FAILED in 2m 7s 1 actionable task: 1 executed

mikroskeem commented 5 years ago

You need to install JDK as Gradle suggests.

ThomasGGoodwin commented 5 years ago

Thank you! I've been searching for this for so long!

mikroskeem commented 5 years ago

If JDK install did not work for some reason then I pushed 5e659b4 to allow building this with ECJ compiler which does not require JDK presence.

gradlew -PuseEcj

ThomasGGoodwin commented 5 years ago

I set my JAVA_HOME variable correctly, and now it is giving me this.

Task :compileJava FAILED C:\Users\thoma\Downloads\radicalaces-master\radicalaces-master\src\main\java\eu\mikroskeem\radicalaces\applet\SimpleAppletContext.java:21: error: package sun.applet does not exist return audioclips.computeIfAbsent(url, key-> new sun.applet.AppletAudioClip(url)); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error

FAILURE: Build failed with an exception.

BUILD FAILED in 3s 1 actionable task: 1 executed

mikroskeem commented 5 years ago

wew, Java 11 (I assume you picked the first result from Google) removed sun.applet.* stuff.

49979f3 should do the trick

ThomasGGoodwin commented 5 years ago

Sorry man, but now the build finished without any errors but now the launcher says its loading and hasn't moved from 21%.

mikroskeem commented 5 years ago

Heh, I think I know why... Hold on I'll get you a prebuilt jar

mikroskeem commented 5 years ago

https://mikroskeem.eu/stuff/radicalaces.jar

kylemonti commented 5 years ago

Hi everyone, bit new to Gradle so excuse my ignorance. For those who have managed to run the game properly, was it on a Windows, Mac or Linux machine?

Thanks,

Kyle.

mikroskeem commented 5 years ago

Builds for me on all those three OS-es.

kylemonti commented 5 years ago

Builds for me on all those three OS-es.

Thanks for the reply. Would someone be so kind as to show me how to build this game on Gradle using Ubuntu please?

mikroskeem commented 5 years ago

It's literally on the front page when you open the project link, but for sure there you go:

Make sure that you have Java JDK installed and then in your favourite terminal emulator, do the following:

git clone https://github.com/mikroskeem/radicalaces
cd radicalaces
./gradlew build
kylemonti commented 5 years ago

I had never used gradle before so I was not sure what you meant on the front page. Also I must have had some issues with the previous JDK I had installed on my Linux. Anyways, it worked just now, thanks a lot 😁😁😁

Bring on an android version 😆