How to access system registry through java program

Friends

I have to access System registry of Windows 2000 by Java program. I don't know how to access the registry by using java code. Please help me. Else

I want to create a setup file for my application. before setup my application i have to check whether the system has JVM or not. If its not then i have to install JVM first and then my application. so i need to access system registry. please give me a solution for this.

Thanks in advance

Ramesh

[482 byte] By [Ramesh_9781a] at [2007-10-1 1:07:11]
# 1
> I don't know how to access the registry> by using java code. You can't, without using a native interface (JNI type) library.This is one, there are others, do a Google search: http://www.bayequities.com/tech/Products/jreg_key.shtml
ChuckBinga at 2007-7-8 1:24:53 > top of Java-index,Administration Tools,Sun Connection...
# 2
>call native method can visit registry.>maybe you can use "installshield" to create a install package,installshield may provide some function to check user's java VM
nay0648a at 2007-7-8 1:24:53 > top of Java-index,Administration Tools,Sun Connection...
# 3
This doesn't exactly solve your problem, but check out the Preferences class. On Windows, it uses the Registry as the backing store.
jwilda at 2007-7-8 1:24:53 > top of Java-index,Administration Tools,Sun Connection...
# 4
erm... cant the instalation application (you said written in java) detect that it has the jvm, simpy by the fach that it can run at all?
Zebediaha at 2007-7-8 1:24:53 > top of Java-index,Administration Tools,Sun Connection...
# 5
I can suggest MS MSI Installer cause it is open source (hehe), and just bundled your application.. or i can suggest running batch file... this way you can invoke it on java app
2pinga at 2007-7-8 1:24:53 > top of Java-index,Administration Tools,Sun Connection...