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

crowdin CLI not starting on Ubuntu 22.04 LTS #840

Open
neurino opened this issue Sep 13, 2024 · 3 comments
Open

crowdin CLI not starting on Ubuntu 22.04 LTS #840

neurino opened this issue Sep 13, 2024 · 3 comments
Labels
bug good first issue hacktoberfest This issue welcomes contributions for Hacktoberfest

Comments

@neurino
Copy link

neurino commented Sep 13, 2024

Describe the bug
I downloaded installed crowdin-cli.zip, unpacked it and installed with:

$ sudo ./install-crowdin-cli.sh 
[sudo] password for user: 
Checking JAVA installation...
/usr/bin/java
Checking JAVA version...
Your Java version is 11 - OK
Installing Crowdin CLI...
Crowdin CLI installed!

To Reproduce

$ crowdin
Error: LinkageError occurred while loading main class com.crowdin.cli.Cli
	java.lang.UnsupportedClassVersionError: com/crowdin/cli/Cli has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

Expected behavior
it should work like version 3.19.4 was. Also the installation scripts says Your Java version is 11 - OK

Environment:
Ubuntu 22.04.5 LTS

@andrii-bodnar
Copy link
Member

The minimum required Java version is 17 (Requirements). Probably the version check in the script does not work correctly.

@neurino
Copy link
Author

neurino commented Sep 19, 2024

I upgraded to Ubuntu 24.04 LTS and crowdin CLI started working now — I did not upgrade just to fix it LOL

Feel free to close the ticket if you feel that 22.04 should not be supported out of the box. Thanks

@andrii-bodnar
Copy link
Member

@neurino, the problem was with the minimum Java version, not with Ubuntu. Probably Ubuntu 24 includes Java 17+ out of the box.

There is still an issue with the install-crowdin-cli.sh script that checks the Java version and allows installation on an unsupported version.

@andrii-bodnar andrii-bodnar added the hacktoberfest This issue welcomes contributions for Hacktoberfest label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue hacktoberfest This issue welcomes contributions for Hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants