Giter Club home page Giter Club logo

java-installer's Introduction

Java Installer

Github Releases GitHub release

Introduction

This repository maintains packages for installing the latest OpenJDK binaries on Synology NAS and QNAP NAS.

Installation on Synology DSM

Add the following Package Source to Synology DSM ► Package Center ► Settings ► Package Sources:

https://get.filebot.net/syno/

Installation on QNAP QTS

Add the following App Repository to QNAP QTS ► App Center ► Settings ► App Repository ► Add:

https://get.filebot.net/qnap/index.xml

Installation on Linux

The get-java.sh shell script should work on any Linux device:

# Download the latest JDK into the current directory & link java to /usr/local/bin
curl -O https://raw.githubusercontent.com/rednoah/java-installer/latest/release/get-java.sh
sh get-java.sh install

Installation on Windows

The get-java.ps1 PowerShell script requires Windows 8 or higher:

Invoke-WebRequest https://raw.githubusercontent.com/rednoah/java-installer/latest/release/get-java.ps1 -OutFile get-java.ps1 -UseBasicParsing
powershell -File get-java.ps1 install

The script uses 7z to extract the *.tar.gz archive, but it will not modify JAVA_HOME or the PATH.

Supported Platforms

  • Linux (x86_64, aarch64, armv7l, i686, ppc64le)
  • Windows (x86_64, x86)
  • macOS (x86_64, arm64)

Package Sources

java-installer's People

Contributors

rednoah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

java-installer's Issues

Filebot broken - java installer 2.13

After installing the new java installer 2.13 on my Synology, filebot doesnt work anymore!

BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 57
BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 57
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:163)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:37)
	at net.filebot.Main.main(Main.java:132)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 57
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:184)
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:152)
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:273)
	... 5 more

Error (o_O)

Breaks other packages

Hi,

I'm a packager of another synology app and your java installer, which you force to install while installing filebot 4.7, is breaking other packages. it is NOT checking if there is already a java version installed and overwrites existing "JAVA_HOME" variables, which is the part which is breaking my app in this case. I'm sure it also breaking a lot of other apps, because of this i'm asking you kindly to make a check and/or do not overwrite variables. Also people already having java 8 should be perfectly ok using filebot 4.7 with their installation, no need to have this as a dependency, i guess.

Doesn't work and breaks things

Hi there. Thanks for the work, because an automatic java package is much needed. But this one doesn't work for me.

  • I have a DS213air
  • I use Java for Filebot only
  • Everything worked fine with my old non-automatic java package
  • When the update for Filebot arrived, it came with this unofficial java installer as a dependance
  • I said OK and installed it
  • But it won't launch, so Filebot won't launch

I tried a fresh install (removing Filebot, my old java stuff) :

  • Reinstalling Filebot doesn't work because unofficial java installer won't install anymore
  • Installing only unofficial java installer, doesn't work either

Please, just remove this as a dependance, just like it was before, so I can install Filebot.

Synology package is expecting a different checksum

@rednoah

The package downloaded from https://app.filebot.net/syno/ isn't completing correctly. The wrong checksum is expected.

Expected SHA256 checksum: 3beda1742719400bc493cf118fc3c71697971cec3ae95a2430a337eb4d143dda
Actual SHA256 checksum: f4f1f7ab1b5986aa2ee2a2f035a2d7a8ab57a673bdee4fc51d8127dd84f423ae
ERROR: SHA256 checksum mismatch

The first checksum relates to embedded java: ejdk-8u73-linux-i586.tar.gz
The second checksum relates to this version: jdk-8u73-linux-i586.tar.gz

Are you able to take a look?

Thanks

Cannot install...

Version 2.17
DSM 7

admin@CB-NAS:/volume1/@appstore/java-installer$ cat install-java.log
cmp: EOF on /volume1/@appstore/java-installer/get-java.sh.asc
Tue Mar 1 21:17:34 CET 2022: AUTO UPDATE
curl: (7) Error
gpgv: can't open signed data '/volume1/@appstore/java-installer/get-java.sh'
gpgv: can't hash datafile: No such file or directory

What to do?

Synology Package: Unofficial JAVA Installer

Package Source: https://get.filebot.net/syno/

Unofficial JAVA Installer actually isn't downloading the most current JAVA SE that you indicate here, 1.8.0_162-b12. It is actually downloading and installing 1.8.0_131. Based on your info, once the package is executed, it should be getting the newest version automatically.

Is a Version string change possible?

Hi rednoah!

as i mentioned in #10 and #13 the DSM Package Center did not show an Update when you release a new Package.
As you mentioned in this Issues, the reason for that is the version string that the Package Center did not recognize.
Is it possible to change the Version string from 1.8.0_xxx to 1.8.0-xxx, so future updates via Package Center will work?

THX and BR
DKeppi

Doesn't work on DSM 7

On DSM 6 the installer worked. On DSM 7 I get an error that the download failed.

Device: DS418
OS: DSM 7.0-41890

Installer ends successfully but with Oooops, somthing went wrong... View Log for details

Installations ends ok with that message.

At synology logs center there aren't any errors or warning.
If I end the installation by clicking Ok, the application shows with a repair button at the package center.

Is there any other log I should search via ssh?

any other information don't hesitate me to ask.

EDIT:
I found some logs via ssh:
/var/logs/message

2018-05-08T20:35:11+02:00 LEPTON synoscgi_SYNO.Core.Package.Installation_1_install[27353]: resource_api.cpp:163 Acquire service-cfg for oracle-java when 0x0001 (done)
2018-05-08T20:35:16+02:00 LEPTON synoscgi_SYNO.Core.Package.Installation_1_install[27353]: pkgtool.cpp:2942 Package is broken, oracle-java, [150]
2018-05-08T20:35:16+02:00 LEPTON synoscgi_SYNO.Core.Package_1_get[27353]: pkgtool.cpp:2942 Package is broken, oracle-java, [150]
2018-05-08T20:35:16+02:00 LEPTON synoscgi_SYNO.Core.Package_1_list[28197]: pkgtool.cpp:2942 Package is broken, oracle-java, [150]
2018-05-08T20:35:16+02:00 LEPTON synopkg: pkgtool.cpp:2942 Package is broken, oracle-java, [150]
2018-05-08T20:35:17+02:00 LEPTON synoscgi_SYNO.Core.Package_1_list[29208]: pkgtool.cpp:2942 Package is broken, oracle-java, [150]
2018-05-08T20:35:18+02:00 LEPTON synoscgi_SYNO.Core.Package.Installation_1_install[28876]: pkgtool.cpp:2942 Package is broken, oracle-java, [150]
2018-05-08T20:35:18+02:00 LEPTON synoscgi_SYNO.Core.Package.Server_1_list[29553]: pkgtool.cpp:2942 Package is broken, oracle-java, [150]
2018-05-08T20:35:19+02:00 LEPTON synoscgi_SYNO.Core.Package_1_list[29958]: pkgtool.cpp:2942 Package is broken, oracle-java, [150]
2018-05-08T20:35:21+02:00 LEPTON synoscgi_SYNO.Core.Package_1_list[30604]: pkgtool.cpp:2942 Package is broken, oracle-java, [150]
...

thanks

not needed anymore

Synology has there official Java 7 and 8 Plugin, can you fix your Plugin that we don't have to install the "Unofficial Java Installer" if there is always a Java installed? Thanks

Screenshot

Suggestion: Make it look like old Synology Java

Since Synology doesn't install Java on DSM 7+, why not make this look more like a drop-in replacement, so that anything that was previously using the Synology Java package will more easily leverage this package? I'm not sure what all would need to change, but it's a thought.

Unable to download due to "session cookie" issue

When trying to install the package, I get a "Java binary bundle not found. aspect, because files hosted on Oracle's server are protected by a session cookie requiring a JavaScript enabled browser"

How do I get around that?

Fontconfig error: Cannot load default config file

Hello,
I have a java program running on my synology DS218 but there is a problem with Fontconfig.
Here is the error I get:

Fontconfig error: Cannot load default config file
java.lang.NullPointerException: Cannot load from short array because "sun.awt.FontConfiguration.head" is null
at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1262)
at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:224)
at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:106)
at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:706)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:352)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:309)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:309)
at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:56)
at java.desktop/sun.font.PlatformFontInfo.createFontManager(PlatformFontInfo.java:37)
at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:51)
at java.desktop/java.awt.Font.<init>(Font.java:642)
at java.desktop/java.awt.Font.createFont(Font.java:1250)

Code to reproduce the error :

public static void main(final String[] args) throws LoginException {
try {
final GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
for (final String string : ge.getAvailableFontFamilyNames()) {
System.out.println(string);
}
} catch (final Exception e) {
e.printStackTrace();
}
}

Only works as root

Installed and tried it out right away:

devuser@DS:/home/devuser
 $ filebot -version
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
FileBot 4.8.5 (r6224) / OpenJDK Runtime Environment 13.0.1 / Linux 4.4.59+ (amd64)

as root everything works:

root@DS:/home/devuser                                                                                                              │[2020-01-10 11:38:26] - Fri Jan 10 11:38:26 CET 2020 - START
 $ filebot -version                                                                                                                     
FileBot 4.8.5 (r6224) / OpenJDK Runtime Environment 13.0.1 / Linux 4.4.59+ (amd64)    

Maybe I need to take some additional steps to allow other users usage of java?

uninstalling?

Hi Mr Pointner, thank you for such a great contribution, I used this project to installa java on a Synology NAS.
However for several reasons, I'm leaving this NAS only as a NAS, so I would like to uninstall java. Would the "uninstall" from the Synology Package Center actually uninstall java?

Support for armv5tel?

Will you support ARM v5 at some point? I currently have a DS211 which uses a MARVELL Kirkwood 88F6282. If so, that'd be awesome!

Otherwise, it may be time for an upgrade :p.

Check for log4j vuln

Hey,

since many systems (e.g. Synology) are using your java package here, please check the complete package for the log4j vulnerability and if found, fix it. Log4j could also be used by some lib that you are using, to I guess you need to search the whole code if log4j is used :/

Thanks in advance

DMS 6 support dropped

Was is necesarry to drop DSM 6 support? Could we get an seperate old package for that maybe? Thank you for your support on this package in the years!

Installation on Syno DS411-Slim failed

Hi,
I tried to install Java on my Sinology DS411-Slim (for Filebot usage) and it failed.
Hereunder a screenshot of the error message.
02

I then created manually a folder "java" in /usr/local/bin/
This time it failed due to permission.
03

Chmod the folder doesn't fix the issue unfortunately.
Regards.

can't download java-installer

Unfortunately, I cannot install the latest Java version (v2.16) via the package manager on my Synology DS1019+ (DSM 7.0-41882).

When I click to update on the Java package, I get an error message that "java-installer" could not be downloaded.

Even after I re-added the package source https://get.filebot.net/syno/ it does not work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.