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

Source option 6 is no longer supported. Use 7 or later. #2031

Open
Triggergirl opened this issue Oct 12, 2020 · 8 comments
Open

Source option 6 is no longer supported. Use 7 or later. #2031

Triggergirl opened this issue Oct 12, 2020 · 8 comments
Labels

Comments

@Triggergirl
Copy link

Hi All,
I was trying to build the opentsdb from git url: https://github.com/OpenTSDB/opentsdb.git

After cloning the project, While executing sh build.sh, i was getting below error:

warning: [options] bootstrap class path not set in conjunction with -source 6
error: Source option 6 is no longer supported. Use 7 or later.
make[1]: *** [.javac-stamp] Error 2
make: *** [all] Error 2

Kindly let me know your answers on this one. Am using MAC laptop with OS Catalina

@pengmq1
Copy link

pengmq1 commented Oct 20, 2020

try use jdk 1.8?

@Triggergirl
Copy link
Author

Hi, where to edit to make the build point to jdk1.8

@johann8384
Copy link
Member

johann8384 commented Nov 6, 2020 via email

@avixicu
Copy link

avixicu commented Nov 27, 2020

I have the same problem as @Triggergirl using ubuntu 20 and java 1.8.0_271.

Do you know any work-around?

@jordiTrigo
Copy link

Hi, I'm facing the same issue. Here I'm trying to install opentsdb in Ubuntu 20 with Java 1.8, just the same as @avixicu.
Any progression in solving the issue?

Thanks in advance

@vhirk
Copy link

vhirk commented Jun 29, 2021

Hi, did anybody solve this problem?

@manolama
Copy link
Member

@vhirk you can edit https://github.com/OpenTSDB/opentsdb/blob/master/Makefile.am#L516 and change the 6 to an 8.

Is anyone unable to use a 1.8 JVM or later? I wouldn't mind toggling it to 8 before cutting 2.4.1 but I want to make sure folks aren't running ancient copies who would be left building their own.

@manolama manolama added the easy label Jul 23, 2021
@bjozet
Copy link
Contributor

bjozet commented Oct 30, 2021

Ubuntu sets differet alternatives for java and javac. Check to see if you have different version than 1.8 for javac and configure it elseways (this changes javac version systemwide though, so don't change in this manner if you're depending on it for other things).

$ sudo update-alternatives --config javac
There are 2 choices for the alternative javac (providing /usr/bin/javac).

  Selection    Path                                          Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-16-openjdk-amd64/bin/javac   1611      auto mode
  1            /usr/lib/jvm/java-16-openjdk-amd64/bin/javac   1611      manual mode
* 2            /usr/lib/jvm/java-8-openjdk-amd64/bin/javac    1081      manual mode

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

No branches or pull requests

8 participants