The officially official Devuan Forum!

You are not logged in.

#1 2020-07-01 21:07:25

IdeaFix
Member
Registered: 2020-01-02
Posts: 18  
Website

How to get java8 on devuan3?

Subj. Help me please to find a best way.

Offline

#2 2020-07-01 21:46:04

rolfie
Member
Registered: 2017-11-25
Posts: 429  

Re: How to get java8 on devuan3?

Load from Debian:

Paket openjdk-8-jre
stretch (oldstable) (java): OpenJDK-Java-Laufzeitumgebung, verwendet Hotspot JIT

and install with dpkg -i package.

rolfie

Offline

#3 2020-07-01 22:41:40

golinux
Administrator
Registered: 2016-11-25
Posts: 2,077  

Re: How to get java8 on devuan3?

Or directly from the Devuan repos.  That is the preferred way to install Debian packages on Devuan:
https://pkginfo.devuan.org/cgi-bin/d1pk … elease=any

Offline

#4 2020-07-02 09:48:23

IdeaFix
Member
Registered: 2020-01-02
Posts: 18  
Website

Re: How to get java8 on devuan3?

Is it good to install packages from devuan2 to devuan3?

Offline

#5 2020-07-02 16:53:22

golinux
Administrator
Registered: 2016-11-25
Posts: 2,077  

Re: How to get java8 on devuan3?

That depends.  I have some wheezy pkgs running on jessie without issue.

Offline

#6 2020-07-02 19:49:49

IdeaFix
Member
Registered: 2020-01-02
Posts: 18  
Website

Re: How to get java8 on devuan3?

Hi.

I have such system:

root@web:# cat /etc/apt/sources.list
#deb http://deb.debian.org/debian/ wheezy main contrib non-free
#deb http://security.debian.org/ wheezy/updates main contrib non-free
#deb http://deb.debian.org/debian/ wheezy-updates main contrib non-free

#deb http://archive.debian.org/debian/ wheezy main contrib non-free
#deb http://security.debian.org/ wheezy/updates main contrib non-free


#deb http://pkgmaster.devuan.org/merged jessie main
#deb http://pkgmaster.devuan.org/merged jessie-updates main
#deb http://pkgmaster.devuan.org/merged jessie-security main
#deb http://pkgmaster.devuan.org/merged jessie-backports main

#deb http://auto.mirror.devuan.org/merged jessie          main contrib non-free
#deb http://auto.mirror.devuan.org/merged jessie-updates  main contrib non-free
#deb http://auto.mirror.devuan.org/merged jessie-security main contrib non-free
#deb http://auto.mirror.devuan.org/merged jessie-backports main contrib non-free

#deb http://deb.devuan.org/merged ascii main contrib non-free
#deb http://deb.devuan.org/merged ascii-updates main contrib non-free
#deb http://deb.devuan.org/merged ascii-security main contrib non-free
#deb http://deb.devuan.org/merged ascii-backports main contrib non-free
#deb http://deb.devuan.org/merged ascii-proposed-updates main contrib non-free

deb http://deb.devuan.org/merged beowulf main contrib non-free
deb http://deb.devuan.org/merged beowulf-updates main contrib non-free
deb http://deb.devuan.org/merged beowulf-security main contrib non-free
deb http://deb.devuan.org/merged beowulf-backports main contrib non-free
deb http://deb.devuan.org/merged beowulf-proposed-updates main contrib non-free

root@web:# dpkg -l | grep -E "(deb7|deb8|deb9)"

root@web:# uname -a
Linux web 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux
root@web:#

I do not want to use a package from another version. May be, it is possible to find a repository with devuan3 package of openjdk-8-jdk?

Offline

#7 2020-07-02 20:05:10

rolfie
Member
Registered: 2017-11-25
Posts: 429  

Re: How to get java8 on devuan3?

You must know why the openjdk-11 that is available in Beowulf isn't good enough. Have you tried that?

Nevertheless it might be possible to install openjdk-8-jre from ASCII. Depends on the dependencies.

Give this a try:
Uncomment #deb http://deb.devuan.org/merged ascii main contrib non-free in your sources.list.
Run apt update
Then apt install -s -t ascii openjdk-8-jre
and look at the result. The -s simulates the installation only. If it looks good you may risk the installation without the -s option.
Don't forget to undo the uncomment and run apt update afterwards.

rolfie

Offline

#8 2020-07-03 04:38:57

IdeaFix
Member
Registered: 2020-01-02
Posts: 18  
Website

Re: How to get java8 on devuan3?

rolfie
I know, that Beowulf isn't good enough smile But now, I need to run an application, depends on java8 under OS with 2-3 years of support.

It is difficult decision for me, but may be, i will choose Ubuntu.

Offline

#9 2020-07-03 17:15:28

Andre4freedom
Member
Registered: 2017-11-15
Posts: 38  

Re: How to get java8 on devuan3?

Hello IdeaFix and all,
in the repos for Devuan Beowulf you can find the package nvidia-openjdk-8-jre.
I use it for programs that only run on Java 8. I think it's worth testing.
For programs that only run on Java 8 and NOT on Java 11 (from whatever source), nvidia-openjdk-8-jre could be your solution and you could stick to Devuan 3 / Beowulf. Please correct me if I'm wrong.
Good luck! - Andre

Offline

#10 2020-07-03 17:19:53

kuleszdl
Member
Registered: 2018-11-03
Posts: 85  

Re: How to get java8 on devuan3?

As an alternative, you can also consider installing AdoptOpenJDK from their repository targeted at Debian 10:

https://adoptopenjdk.net/

Offline

#11 2020-07-07 19:49:33

IdeaFix
Member
Registered: 2020-01-02
Posts: 18  
Website

Re: How to get java8 on devuan3?

Andre4freedom
I need JDK too. And without a hacks.

kuleszdl
There are some problems with update-alternatives and environment variables. Even old Slackware was more user friendly... no php (exept official) on 32bit systems, no java (exept official). But we have OpenRC. And tomorrow, people from adoptopenjdk will make a systemd dependence.... smile Devuan is not reliable and it is impossible to use devuan for serious purposes.

Offline

#12 2020-07-07 22:41:14

golinux
Administrator
Registered: 2016-11-25
Posts: 2,077  

Re: How to get java8 on devuan3?

IdeaFix wrote:

Devuan is not reliable and it is impossible to use devuan for serious purposes.

LOL!  That would depend on your definition of "serious purposes".  Perhaps the issue is not Devuan but your purposes!

Offline

#13 2020-07-08 19:46:02

IdeaFix
Member
Registered: 2020-01-02
Posts: 18  
Website

Re: How to get java8 on devuan3?

Very constructive, as always. You must be proud of yourself. LOL.

Offline

#14 2020-07-08 20:33:20

golinux
Administrator
Registered: 2016-11-25
Posts: 2,077  

Re: How to get java8 on devuan3?

Any judgmental evaluation has multiple perspectives.  Best to be aware of them all.  wink

Offline

#15 2020-07-18 13:25:24

kuleszdl
Member
Registered: 2018-11-03
Posts: 85  

Re: How to get java8 on devuan3?

There are some problems with update-alternatives and environment variables

Can you please elaborate on that? I highly doubt the AdoptOpenJDK people will make it depend on systemd with some minor upgrade. Of course, if you switch from openjdk8 to 11 or 14 - who knows what will happen in future? But as as long as you stick with openjdk8 I find such a change highly unlikely.

=> solve your environment troubles and enjoy a stable setup.

Offline

Board footer