finding a file - has openjdk8 been installed?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
chazb
Level 4
Level 4
Posts: 261
Joined: Wed Nov 30, 2016 2:56 am
Location: Oklahoma

finding a file - has openjdk8 been installed?

Post by chazb » Tue May 22, 2018 1:55 am

How would go about seeing if I have openjdk8 on my system?
Last edited by karlchen on Tue May 22, 2018 8:49 am, edited 1 time in total.
Reason: appended "has openjdk8 been installed?" because this is the question really

User avatar
smurphos
Level 8
Level 8
Posts: 2253
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: finding a file

Post by smurphos » Tue May 22, 2018 2:08 am

1) Open synaptic and use it's search function to search for openjdk - the various openjdk-8* packages will be marked if installed.

2) In the terminal apt policy openjdk-8* or apt-cache policy openjdk-8* or dpkg -l | grep openjdk-8

User avatar
lsemmens
Level 6
Level 6
Posts: 1247
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Re: finding a file

Post by lsemmens » Tue May 22, 2018 2:11 am

I would open Nemo move to root and then perform a search for that file name. Of course that may not solve your problem, which is?
Kernel: 4.15.0-36-generic x86_64 bits: 64
Desktop: Cinnamon 3.8.9
Distro: Linux Mint 19 Tara

Laptop T4500 Dualcore 4Gb RAM
Server AMD Phenom 9650 - GEForce 9400GT 6Gb RAM
+ three other Linux Mint machines
Out of my mind - please leave a message

User avatar
smurphos
Level 8
Level 8
Posts: 2253
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: finding a file

Post by smurphos » Tue May 22, 2018 2:24 am

The OP won't find a file named openjdk8 anywhere in the system - there are various packages named openjdk-8*, so package management tools are the quickest way to check which if any of them are installed.

I believe the OP is using Mint 17.x. If so I doubt he has got it as openjdk-8 isn't in the trusty repos.

User avatar
chazb
Level 4
Level 4
Posts: 261
Joined: Wed Nov 30, 2016 2:56 am
Location: Oklahoma

Re: finding a file

Post by chazb » Tue May 22, 2018 2:25 am

smurphos wrote:
Tue May 22, 2018 2:08 am
1) Open synaptic and use it's search function to search for openjdk - the various openjdk-8* packages will be marked if installed.

2) In the terminal apt policy openjdk-8* or apt-cache policy openjdk-8* or dpkg -l | grep openjdk-8
it appears I don't have it. Which begs two questions.
1. If I wanted it, I would do this,,,,,,,,,,,(sudo apt-get openjdk-8) ?

2. How do I update Synaptic?

User avatar
chazb
Level 4
Level 4
Posts: 261
Joined: Wed Nov 30, 2016 2:56 am
Location: Oklahoma

Re: finding a file

Post by chazb » Tue May 22, 2018 2:39 am

lsemmens wrote:
Tue May 22, 2018 2:11 am
I would open Nemo move to root and then perform a search for that file name. Of course that may not solve your problem, which is?
Oh I was considering in stalling YaCy which requires openjdk8.

User avatar
smurphos
Level 8
Level 8
Posts: 2253
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: finding a file

Post by smurphos » Tue May 22, 2018 2:43 am

chazb wrote:
Tue May 22, 2018 2:25 am
smurphos wrote:
Tue May 22, 2018 2:08 am
1) Open synaptic and use it's search function to search for openjdk - the various openjdk-8* packages will be marked if installed.

2) In the terminal apt policy openjdk-8* or apt-cache policy openjdk-8* or dpkg -l | grep openjdk-8
it appears I don't have it. Which begs two questions.
1. If I wanted it, I would do this,,,,,,,,,,,(sudo apt-get openjdk-8) ?

2. How do I update Synaptic?
Are you still on Mint 17? If so openjdk-8 is not officially available. Upgrade to 18.x is what I'd suggest. There may be PPAs or you could install the equivalent Oracle Java, but I think an upgrade is the best way if you need it - see https://askubuntu.com/questions/464755/ ... -14-04-lts

Synaptic itself is updated via the Update manager along with the rest of your packages.

User avatar
lsemmens
Level 6
Level 6
Posts: 1247
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Re: finding a file

Post by lsemmens » Tue May 22, 2018 6:06 am

chazb wrote:
Tue May 22, 2018 2:39 am
lsemmens wrote:
Tue May 22, 2018 2:11 am
I would open Nemo move to root and then perform a search for that file name. Of course that may not solve your problem, which is?
Oh I was considering in stalling YaCy which requires openjdk8.
Surely, if YaCy has openjdk8 as a dependency, surely it would install it as part of the package. (I'm learning here, too, so don't quote me :D)
Kernel: 4.15.0-36-generic x86_64 bits: 64
Desktop: Cinnamon 3.8.9
Distro: Linux Mint 19 Tara

Laptop T4500 Dualcore 4Gb RAM
Server AMD Phenom 9650 - GEForce 9400GT 6Gb RAM
+ three other Linux Mint machines
Out of my mind - please leave a message

Hoser Rob
Level 12
Level 12
Posts: 4459
Joined: Sat Dec 15, 2012 8:57 am

Re: finding a file

Post by Hoser Rob » Tue May 22, 2018 6:54 am

lsemmens wrote:
Tue May 22, 2018 6:06 am
chazb wrote:
Tue May 22, 2018 2:39 am
lsemmens wrote:
Tue May 22, 2018 2:11 am
I would open Nemo move to root and then perform a search for that file name. Of course that may not solve your problem, which is?
Oh I was considering in stalling YaCy which requires openjdk8.
Surely, if YaCy has openjdk8 as a dependency, surely it would install it as part of the package. (I'm learning here, too, so don't quote me :D)
It's not in the repos and for that to be true it'd have to come in a .deb file or a ppa. It doesn't, it comes in a tar.gz file. So it's not going to pull in needed dependencies, you have to install those yourself.

Installing from tar.gz (ie. compiling and building) is harder than the other ways, and beginners are usually discouraged from it. The last one I used was a backported wireless driver, which is a bit necessary.

Upon a quick search I don't see any nice beginner level tutorial for doing this in newer Ubuntu versions but that's often true with this sort of installation. The main thing I'd suggest is that if, when you're installing a dependency, you see a message that installing that will remove something else, STOP. That something else will be something other software uses as dependencies and removing that version will break that software.

User avatar
chazb
Level 4
Level 4
Posts: 261
Joined: Wed Nov 30, 2016 2:56 am
Location: Oklahoma

Re: finding a file - has openjdk8 been installed?

Post by chazb » Tue May 22, 2018 2:28 pm

Okay guys, thanks. I will install 18.3 here in a month or so, and come back to this.

Post Reply

Return to “Newbie Questions”