I'm new to Java and have been asked to create an applet/servlet (not sure which I should use to be honest, pretty sure applet) that will make sure that the user's machine meets the system requirements we have set. These requirements include processor speed, amount of memory, screen resolution, download/upload bandwidth, and possibly a couple other criteria.
I'd be extremely grateful for a point in the right direction. I've got a small script for the screen res already and I've been looking into Hyperic SIGAR for much of the rest (except the bandwidth stuff).
Questions: Is an applet the right direction? Is Java the right/best language? (this will be all done through a web page)
Any direction is greatly appreciated...
Is an applet the right direction?
Possibly yes, the only other alternative in Java, to run Java classes on a client machine, from a web site is to use Java Web Start (JWS). You can investigate both, and decide on one. I would recommend looking at JWS primarily because
nativelib
element of the JNLP file, can be used to specify the JAR that contains the SIGAR libraries.As noted in the comment, you will need to sign your code. See this related question on StackOverflow as well.
Is Java the right/best language? (this will be all done through a web page)
That depends on how much information you need from the client machines, and how diverse they are; if they are all running Windows, see the footnote. Flash supports checking system capabilities, but to a limited extent: Processor speed and Available memory detection might not be possible in Flash.
I'm not aware of the equivalent system capability detection features in .Net (and/or ActiveX), although you could be fairly certain that they would exist. You might want to ask another question, to discover whether this is possible and how feasible it would be.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With