Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Cannot compile in Java1.6 environment #756

Closed
ylinLOY opened this issue Oct 29, 2020 · 3 comments
Closed

Cannot compile in Java1.6 environment #756

ylinLOY opened this issue Oct 29, 2020 · 3 comments

Comments

@ylinLOY
Copy link

ylinLOY commented Oct 29, 2020

Requirement - what kind of business use case are you trying to solve?

use for POC test instrument Java application

Problem - what in Jaeger blocks you from solving the requirement?

failed to compile in source code in Java 1.6 env
]# ./gradlew

FAILURE: Build failed with an exception.

  • What went wrong:
    Gradle 5.4.1 requires Java 8 or later to run. You are currently using Java 6.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org
    jaeger-client-java]# echo $JAVA_HOME
    /data/java/current/jre

jaeger-client-java]# $JAVA_HOME/bin/java -version
java version "1.6.0_211"
Java(TM) SE Runtime Environment (build 1.6.0_211-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.211-b11, mixed mode)

Proposal - what do you suggest to solve the problem or improve the existing situation?

Any open questions to address

@yurishkuro
Copy link
Member

The plan was to drop Java 6 support #511.

@ylinLOY
Copy link
Author

ylinLOY commented Oct 29, 2020

Is Java 7 still supported?
Thanks.

@yurishkuro
Copy link
Member

The artifacts are still targeted at 1.6. We don't need to be able to compile with 1.6 in order to support 1.6 at runtime.

compileJava {
sourceCompatibility = 1.6
targetCompatibility = 1.6
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants