Java expiry information


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Java expiry information
# 1  
Old 10-23-2017
Java expiry information

Hi,

Code:
I have a requirement to check the expiry date of Java software installed in  linux servers.

We are using the below Java

java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)

I am not sure whether we can get that but after few research what  found is

a. Go to <java_home>\bin
b. Run jarsigner -verify -verbose -certs <jarfilename>.jar 

As per the above steps gave
echo $JAVA_HOME which resulted in 
/usr/lib/jvm/java



The problem is there are no .jar file in  the above path.Is there a way to get the expiry date, if so how to get.

Thanks in advance.


Last edited by nextStep; 10-23-2017 at 08:14 AM..
# 2  
Old 10-23-2017
There is no expiry date in a a java module. Here is why -

java gets updated periodically. However, when there is a bad flaw found that nobody knew about, java will updated at that point in time with a fix for that security bug, plus possibly whatever other fully tested changes were available, if any.

Since you cannot predict the future (the exact day when some researcher documents yet another horrible java bug) there is no way to know when java will update.


Another point - updating java on some older machines like Solaris 10, has the potential for breaking a lot of middleware. We had to stay with 1.6 java on one machine and an even earlier version on another. Simply because we could not run some applications with any newer version.

If java had any kind of enforced expiry and refused/complained to work after a fixed date all of these apps would have been worthless or very annoying to use.
This User Gave Thanks to jim mcnamara For This Post:
# 3  
Old 10-23-2017
Hmm, this article says there is a hardcoded end date in Java, that applies in the case Oracle cannot be contacted over the internet.

This means Java based software will automatically get unusable when there is a newer Java version in Oracle or if the built-in end date has passed.

IMHO planned obselescence is a committed crime, regardless if hardware or software!
# 4  
Old 10-23-2017
I do not think it stops functioning and I did not know that, so my advice was not correct.
I apologize for the incorrect information.

Here is the oracle statement on java eol dates. AFAIK they are just that, dates.


Oracle Java SE Support Roadmap

Hmm.
Code:
# J == path/to/java
 strings $J | grep '[0-9]{2}\/[0-9]{2}\/[0-9]{4}'

So it is not embedded as a human readable date in the executable image I have
java version == 8-151

Last edited by jim mcnamara; 10-23-2017 at 11:16 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

passwd expiry notification

Hi, I'm trying to set password expiry notification. But unable to do so. >I do not have permission for "passwd -s" on Sun OS(SunOS 5.9 Generic_122300-60 sun4u sparc SUNW,Sun-Fire-480R). >Also tried "chage -l <username>" but it is not configured. I'm just an appln user in that system. Could... (2 Replies)
Discussion started by: sam_bd
2 Replies

2. AIX

User expiry

Hi When a new user is created and their password is set to require changing at first login, is it possible to expire the account if they don't login whithin 10 days ? Thanks Nigel (4 Replies)
Discussion started by: garwoon
4 Replies

3. Programming

Making an information matrix using Java

Hello all, I'm doing some research in Biostatistics this summer studying chloroplast genomes. I have 19 text files that look exactly like this: Name: Marchantia polymorpha FileName: NC_001319 Bases: 121024 Genes: rps12 <85..842 rps7 (892..1359) ndhB (1514..3555)... (0 Replies)
Discussion started by: akreibich07
0 Replies

4. Solaris

Notification of password expiry.

Hi, Is there any way of sending an email to a number of users indicating that the passwords of user accounts will expire? Currently we have a test server with a number of oracle test accounts on it. Each of these accounts correspond to an instance of Oracle on the server. These... (2 Replies)
Discussion started by: sparcman
2 Replies

5. Solaris

Notification of password expiry.

Hi, Is there any way of sending an email to a number of users indicating that the passwords of user accounts will expire? Currently we have a test server with a number of oracle test accounts on it. Each of these accounts correspond to an instance of Oracle on the server. These... (2 Replies)
Discussion started by: sparcman
2 Replies

6. Shell Programming and Scripting

expiry of a linux id?

Hi, Can anyone suggest, how or from where we can understand the expiry time of a linux id, whether login or ftp? My concern is like, i want to know when the ftpid configured on an automated system will expire, so that i can configure some notice or email mentioning that the particular id... (1 Reply)
Discussion started by: DILEEP410
1 Replies

7. HP-UX

Certificate Expiry Dates

Hi, we are having the installed cerificates in our unix server's. The certificates are in following format : cacert.pem,cert8.db,ois294.sem,CertGenCAKey.der,ss_keystore.jks So i want to know the Expiry date for these certificates. how to get the valid FROM to TO dates for these kind of... (1 Reply)
Discussion started by: srujana
1 Replies

8. HP-UX

How to set an non-expiry in HP-Unix

Hi all, want to know how to reset the password in non-expiry in HP-unix....? please some one hwlp me...! :) (2 Replies)
Discussion started by: bullz26
2 Replies

9. Solaris

passwd expiry

any one can help me from where this command passwd -s root fetching from...? so that i can write the script for cheking root password expiry which are expiring before 2 days and sent a mail... Please give me the script if u have....! :b: Solaris any version... (2 Replies)
Discussion started by: bullz26
2 Replies

10. UNIX for Advanced & Expert Users

password expiry

Hi, under SUN Unix, in which file the expiry date of a user password is indicated ? Many thanks. (2 Replies)
Discussion started by: big123456
2 Replies
Login or Register to Ask a Question