Development :  K-Meleon Forum
K-Meleon development related discussions. 
urgent!!!!!! How does kmeleon detect an installed JRE
Posted by: Marco
Date: May 07, 2003 03:35AM

This is the kmeleon development forum? So I think there must be somebody bale to answer my question. It's REALLY urgent- please reply.

Marco

Options: ReplyQuote
Re: urgent!!!!!! How does kmeleon detect an installed JRE
Posted by: Andres
Date: May 09, 2003 08:22PM

Not sure but in winpref.js there's the following line:

pref("plugin.scan.SunJRE", "1.3");

This is a Mozilla feature actually. It means scanning for certain plugins or locations at startup.

Options: ReplyQuote
Re: urgent!!!!!! How does kmeleon detect an installed JRE
Posted by: MonkeeSage
Date: May 10, 2003 05:08AM

Adapted from http://gemal.dk/browserspy/java.html:

[---snip---]

<script language="javascript" type="text/javascript">
<!--

// globals
var mJava = false;

// functions
function findJRE() {
if (navigator.mimeTypes && navigator.mimeTypes.length)
if (typeof(navigator.mimeTypes['application/x-java-vm']) != "undefined")
mJava = true;

if (navigator.plugins) {
for (var i=0; i < navigator.plugins.length; i++) {
if (navigator.plugins.name.indexOf("Java Plug-in") >= 0) {
mJava = true;
break;
}
}
}

return mJava;
}

// -->
</script>

[---snip---]


Then that can be used in another function, like, e.g.,

function dependsOnJRE() {
if (mJava != "true") return;

// stuff to do if mJava does equal "true"
// ...
// ...
}


Shelumi`El
Jordan

S.D.G


Options: ReplyQuote
Re: urgent!!!!!! How does kmeleon detect an installed JRE
Posted by: MonkeeSage
Date: May 10, 2003 05:13AM

hmmm.... forum messed with the formatting...

http://monkeesage.d2g.com/java_sniff.txt



Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Re: urgent!!!!!! How does kmeleon detect an installed JRE
Posted by: MonkeeSage
Date: May 10, 2003 10:42AM

Simple example:

http://monkeesage.d2g.com/java_sniff.htm


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Re: urgent!!!!!! How does kmeleon detect an installed JRE
Posted by: Bernard Mercier
Date: May 11, 2003 05:39AM

Alltho I have java enabled your test indicates, that java isn't enabled.

Now in the faq I read something about changing the browser id disables java.

I might have done that, can't remember.

Now I try to restore default, but it doesn't stick.

What should be in prefs - privacy browser id and user agent for an unchanged 0.7.1 installation?

If not correct how can the fields be restored in a manner that they stick?

Bernard

Options: ReplyQuote


K-Meleon forum is powered by Phorum.