Determine if other Java applications are dependant on specific version of JRE

How can I determine if other Java applications are dependant on specific version of JRE.

Currently, my uninstall application removes a specific version of JRE, if the application had installed it in the first place.
Before uninstalling JRE, I would like to be able to determine if a new application has been installed that requires the JRE.

Is there any method for making this determination?
LVL 30
AxterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
>>Is there any method for making this determination?

Not really,since Java apps are  not 'installed' really.
0
petmagdyCommented:
ur application shouldn't depend on uninstalling  a JRE of certain version, u should make sure that u keep any JRE on the machine and install ur JRE u want and make sure ur application are loading this JRE JARs
0
sciuriwareCommented:
The biggest problem will be applications that are so old that they can not work
with the JVM of 1.3 and newer.
I was guaranteed by JAVA people that all 1.3.*, 1.4.* and 1.5 (5) applications will run
on the JVM of their level or later, so they will all run with 'tiger'.
1.2 code however might have difficulties, and let's forget about 1.1

The API is only a problem when 'going back' or for some temporary
discontinued methods in 1.4, which returned in 1.5
<*>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

CEHJCommented:
>>u should make sure that u keep any JRE on the machine

You should tell the user if you're going to do this. Or rather ask the user - do you want to leave the JRE we just installed on your machine for other apps? (in non-technical language)
0
AxterAuthor Commented:
>>do you want to leave the JRE we just installed on your machine for other apps? (in non-technical language)

That's what I was thinking of doing, but I wanted a better alternative.
In other words, if possible, I wanted my uninstall program not to display this message if it can determine that the JRE is required.
0
objectsCommented:
> Before uninstalling JRE,

That will piss off a lot of people.

> I would like to be able to determine if a new application has been installed that requires the JRE.

What other applications are installed should have nothing to do with your installation.
If you need a specific jre then give the user the option to install it, don't go messing with their existing environment.
0
CEHJCommented:
>>
In other words, if possible, I wanted my uninstall program not to display this message if it can determine that the JRE is required.
>>

You can't. A user may have 'installed' a Java app since yours that needs the JRE. There's no practicable way of determining this
0
objectsCommented:
Whats already installed is irrelevant, you just need to install what *you* need if its not already installed.
0
sciuriwareCommented:
:)
0
CEHJCommented:
8-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.