Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle Java (JDK) 8 Installer PPA (DISCONTINUED) #2164

Closed
atomlab opened this issue Apr 27, 2019 · 9 comments
Closed

Oracle Java (JDK) 8 Installer PPA (DISCONTINUED) #2164

atomlab opened this issue Apr 27, 2019 · 9 comments
Labels
topic: Deployment configuration, startup command

Comments

@atomlab
Copy link

atomlab commented Apr 27, 2019

From April 16, 2019 is not possible install Java8 on Ubuntu 16.04 or 18.04 from ppa repository.

Oracle Java (JDK) 8 Installer PPA (DISCONTINUED)
The Oracle JDK License has changed for releases starting April 16, 2019.

https://launchpad.net/~webupd8team/+archive/ubuntu/java

This means that now there is no easy way to install java on Ubuntu.

@cryptodev81
Copy link

We are in the process of integrating TRON and this is a problem, by using the newest Oracle 8 JDK after April 16, 2019 you are required to have purchased licenses! (up to 260 euro's per processor/core per year)

I would like to know if anything can be done to use the OpenJDK instead of the OracleJDK, Oracle can (and probably will according to it's track record) start investigating all currently running Tron node's if licences have been purchased.

Important Oracle JDK License Update

The Oracle JDK License has changed for releases starting April 16, 2019.

The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. An FAQ is available here.

Commercial license and support is available with a low cost Java SE Subscription.

Oracle also provides the latest OpenJDK release under the open source GPL License at jdk.java.net.

This can potentially hurt the TRON adoption and/or reduce node's from being set up.

You can probably run the older versions of the SDK that are not bound to the new licensing structure but this will increase the Risk of potential security issue's since they wont be updated.

@tzdybal
Copy link

tzdybal commented May 3, 2019

I was able to successfully compile and run FullNode with OpenJDK. All you need is to install openjfx.

I guess more testing should be done to confirm that everything works smoothly.

@cryptodev81
Copy link

I was able to successfully compile and run FullNode with OpenJDK. All you need is to install openjfx.

I guess more testing should be done to confirm that everything works smoothly.

Thanks for the reply, I've tried openjfx as well, seems to be working fine so far. Would like to get confirmation that this will be sufficient for running full nodes.

@visualbasic6
Copy link

@tzdybal @cryptodev81 @jiangyy0824

openjfk did install, but i'm unable to use tron cli. it appears to start but immediately crashes. the crash is detailed in tron.log, which is here in its entirety: https://pastebin.com/raw/aRxU0NxL

i have no clue. any ideas? 🤔

@tzdybal
Copy link

tzdybal commented May 12, 2019

openjfx is not on the classpath during execution.

@visualbasic6
Copy link

visualbasic6 commented May 12, 2019

@tzdybal thanks. how do i add openjfx to the classpath? not really a nix/java guy.

would it be export CLASSPATH /etc/java-8-openjdk?

also, i'm running ubuntu 18.04 and java -version returns:

openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.10.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

which mentions ubuntu 18.10 - do you know if could that spell any trouble?

@jiangyy0824 jiangyy0824 added the topic: Deployment configuration, startup command label Aug 1, 2019
@avidprogrammerc
Copy link

@tzdybal which version of openjdk did you use?

@tzdybal
Copy link

tzdybal commented Aug 30, 2019

Probably version 8u222.

@zeroXBami
Copy link

zeroXBami commented Aug 14, 2020

@tzdybal I installed OpenJDK and openjfx but still compile failed with error:

/home/fullnode/FullNode/java-tron/protocol/src/main/java/org/tron/api/TronZksnarkGrpc.java:20: error: cannot find symbol
@javax.annotation.Generated(
                 ^
  symbol:   class Generated
  location: package javax.annotation
/home/fullnode/FullNode/java-tron/protocol/src/main/java/org/tron/api/DatabaseGrpc.java:23: error: cannot find symbol
@javax.annotation.Generated(
                 ^
  symbol:   class Generated
  location: package javax.annotation
/home/fullnode/FullNode/java-tron/protocol/src/main/java/org/tron/api/NetworkGrpc.java:23: error: cannot find symbol
@javax.annotation.Generated(
                 ^
  symbol:   class Generated
  location: package javax.annotation
/home/fullnode/FullNode/java-tron/protocol/src/main/java/org/tron/api/WalletExtensionGrpc.java:20: error: cannot find symbol
@javax.annotation.Generated(
                 ^
  symbol:   class Generated
  location: package javax.annotation
/home/fullnode/FullNode/java-tron/protocol/src/main/java/org/tron/api/WalletSolidityGrpc.java:20: error: cannot find symbol
@javax.annotation.Generated(
                 ^
  symbol:   class Generated
  location: package javax.annotation
/home/fullnode/FullNode/java-tron/protocol/src/main/java/org/tron/api/WalletGrpc.java:20: error: cannot find symbol
@javax.annotation.Generated(
                 ^
  symbol:   class Generated
  location: package javax.annotation
6 errors```
Could you please help ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: Deployment configuration, startup command
Projects
None yet
Development

No branches or pull requests

7 participants