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

Java 10 not recognized #443

Closed
lostiniceland opened this issue May 10, 2018 · 8 comments
Closed

Java 10 not recognized #443

lostiniceland opened this issue May 10, 2018 · 8 comments

Comments

@lostiniceland
Copy link

Running ScalaPB with Java 10 result in the following error

The java installation you have is not up to date
requires at least version 1.6+, you have
version 10.0.1

Probably the new version-scheme isnt recognized.

@thesamet
Copy link
Contributor

Hi @lostiniceland - can you add more details? Do you use SBT? Does SBT load? If so, at what stage does this message get printed?

@lostiniceland
Copy link
Author

No, not using SBT, my projects are based on Gradle right now. I am actually generating the file via a little shell-script with ScalaPB and Protoc on my path

scalapbc --scala_out=flat_package:build/generated/source/proto/main/java src/main/proto/my.proto

@thesamet
Copy link
Contributor

To clarify, are you getting the error you posted above when you attempt to run scalapbc ?

@lostiniceland
Copy link
Author

lostiniceland commented May 10, 2018

yes

marc@Tux:~/Development/git/myproject$ java -version
openjdk version "10.0.1" 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10)
OpenJDK 64-Bit Server VM (build 10.0.1+10, mixed mode)
marc@Tux:~/Development/git/myproject$ scalapbc --scala_out=flat_package:build/generated/source/proto/main/java src/main/proto/my.proto

The java installation you have is not up to date
requires at least version 1.6+, you have
version 10.0.1

Please go to http://www.java.com/getjava/ and download
a valid Java Runtime and install before running .

@thesamet
Copy link
Contributor

I wasn't able to reproduce this problem. Here is what I did:

docker run --rm -ti openjdk:10-jdk /bin/bash

wget https://github.com/scalapb/ScalaPB/releases/download/v0.7.4/scalapbc-0.7.4.zip

unzip scalapbc-0.7.4.zip 

./scalapbc-0.7.4/bin/scalapbc 
[normal output]

Can you provide a way to reproduce this problem, ideally in a docker container?

@thesamet
Copy link
Contributor

I was able to reproduce this in Ubuntu 18.04. Upgrading sbt-native-package resolved this issue.

@lostiniceland
Copy link
Author

lostiniceland commented May 29, 2018

Thanks for your effort to reproduce (due to vacation I couldnt provide it myself). I will give it a test-drive later.

EDIT: @thesamet how can I package the binary distribution? I was able to build with sbt but now I need to replace the individual jar-files in my current installation and there seems to be some refactorings (moved packages from "com.thesamet...").

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

No branches or pull requests

3 participants