Maybe you guys/gals just don't get it. I can have a j2ee webapp running on a server using lots of java code and jsp's. The client machine DOES NOT have to have a JVM installed to access the web app. There are some applets that the web app uses that require a JVM to be installed, and I know the way to make the JVM automatically download and install on the client machine. I want to direct them to one of our pages to make a selection based upon OS, rather than having them go to Sun site to do this. Hope this clears up the obvious.
Anyway, the Java part of a J2EE application is executed in the serverside, so no chance of finding out about the client machine.
I still don't know it if it's possible in Javascript.
Furthermore, and from my experience, you should give user manual or disclaimer where you state that a JVM is needed and where to download it from as previous step.
These are requirements from our marketing division. I am tasked with finding out if it's possible. I am thinking of using setting a javascript variable in the applet, and setting it to true if it loads correctly. If it's false then I could open a new window or something.
stefanwagner, with you attitude, you will be "seeking a job as java-programmer in Berlin" for a long time.
bthale : No need to have a bad attiude here. Your quesion was "can you tell via Java or JavaScript whether a JRE is installed." Which leads us to say, yes, if you have Java installed, then use the System.getProperty() method to get the version - and if it is not, and you need to discover it via JavaScript, then perhaps you should ask in the Javascript forum.
Please keep it friendly guys, and think about your question before posing it.
sedj,
Maybe I should have been more explicit in my question. Also, I did pose the question in javascript forum. Since the two are related I thought it best to ask in both forums.
If you read stefanwagner replies, you will see that he implies that the questioner (me) is a stupid ass. I don't have a bad attitude, I was simply responding in kind to stefanwagner.
Yes the last one you sent was good. Actually it led me to the solution. I just check to see if the applet is null, and if so, I redirect to my jsp with document.location.href.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.