• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java plugin detection

 
meera sood
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone...
i have asked this quetion before also, but did not get any replies.
Can anyone please let me know if there is a way wherein i can detect whether plug-in is installed. If it is installed, it should redirect to one applet, if not,(i.e plugin is not installed,) instead of taking to url for downloading plugin, it should redirect to a separate applet, one which works without the plugin.
thanx n advance...
meera
hope this time get an answer
 
meera sood
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
somebody pleeeease reply...
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
meera, I'm sorry I don't really know the answer to your question. But, I don't think it will have anything to do with java, since at the time you do the check, you're still deciding what hmtl page to load and display.
You might try asking your question in the html/javascript forum.
http://www.coderanch.com/forums/f-20/HTML-JavaScript
 
meera sood
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx a lot... think i'll try my luck there....
 
Rakesh Ray
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could check from java applet...
System.out.println( "java.version " + System.getProperty("java.version"));
If version is 1.1 then there is no plug-in (Safe assumption)!!!
Do you have two version of applet code ( with swing and another non-swing??).
Can you say something more about why you want to do this??
 
meera sood
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
thanx for the reply. the reason i want to do this is because i do have two versions of the code- one applet is signed, which is working only with a plug-in and another is a simpler version of the same program, one which does not require the plug-in. this is why, i want to detect the plug-in on the user machine and direct him to the appropriate applet.
thanx... and regards....
meera
 
Rakesh Ray
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say no-plugin, does that means that no java at all or you expect the default jvm i.e ver 1.?.
Simple version of the program is not java?.
Will following javascript method help you?
if ( navigator.javaEnabled())
{
// Yes we have java enabled.
}
 
meera sood
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
when i say no plug-in i mean the default jvm of the browser.
the simple version of the program(applet) is java.
i dont think that this would work because this code i think is for netscape, whereas i need it for IE also. Working on it
thanx again
meera
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a thought.(not much helpful)
Usually JRE files reside in javasoft directoy,is it possible for you search for that kind file and do something ??
I found installsheid is using some tech to test whether Jre is installed or not,and prompt user to install jre to do so.
 
Tim Holloway
Saloon Keeper
Posts: 18367
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For security reasons, a web browser is not supposed to inform a server what plugins (Java or otherwise) it has installed. Which can be really irritating if you're trying to spare the user from a long and messy download/install process.
In Internet Explorer, at least certain versions, it was possible to enumerate the plugins anyway. One technique was to check the Windows Registry.
Of course, now Microsoft Windows is going to become a "secure operating system"!
 
meera sood
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi balaji....
how can i check for the javasoft directory on the client machine. Doesn't the java sandboxrestrict me from doing so???
meera
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic