[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

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?
0
Axter
Asked:
Axter
  • 4
  • 2
  • 2
  • +2
4 Solutions
 
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now