tronprotocol / java-tron

Java implementation of the Tron whitepaper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Failed in Ubuntu 16.04.4 LTS

WendySanarwanto opened this issue · comments

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    When I followed instruction on README.md file for building the source by running ./gradlew build, the build process was ended as BUILD FAILED

  2. What did you expect to see?
    The build process should be ended as successful.

  3. What did you see instead?
    image

My environment settings:
image

https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04

Install the 1.8 jdk its a dependency issue the error comes from a function that has been deprecated in the latest java version.

Hi @AydenRennaker,

I've followed your suggestion by installing Oracle JDK 8, replacing my OpenJDK 8, and then re-ran the build. The build's outcome is SUCCESS. I will edit the README.md file to tell the reader that they should use Oracle JDK 8 over OpenJDK 8 so that they won't get failing build.

Cheers.

I suggest installing openjfx using sudo apt-get install openjfx instead of forcing users to install Oracle JDK 8 as the issue is related to missing JavaFX package. See https://stackoverflow.com/a/19529820.

Hi @lacasseio ,

Thanks for your feedback. I will retest your suggestion and will get back with the result.

Real pain to work with Oracle JDK now as it always been, any new words on the dependency on it? I would really like to go for at least OpenJDK being officially supported...

I managed to compile on Fedora with OpenJDK and OpenJFX, I just installed distro packages and build with the gradle. Just wanted to let you know Oracle JDK is not necessary.
Not related to Ubuntu though, sorry, just think this info can be useful to someone else.

Or you could use zulu-javafx with asdf

  1. asdf install java zulu-javafx-8.58.0.13
  2. asdf global java zulu-javafx-8.58.0.13
  3. ./gradlew build