Results 1 to 4 of 4
Thread: Huge VB.Net conversion
- 04-09-2009, 12:15 PM #1
Member
- Join Date
- Apr 2009
- Posts
- 10
- Rep Power
- 0
Huge VB.Net conversion
I'm in the process of learning Java and struggling converting a VB.Net project that I have been developing for 3 years.
I've had a great response from the forum for previous queries and it's much appreciated.
Can someone point me to the usual Java solution to the Microsoft Registry problem. I've trawled the web and Java seems to have several alternatives. I'd like to go down the most used route on this as I hope that when I have finished this mammoth task it will be truely cross platform.
- 04-09-2009, 01:04 PM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
There is none. Java can use the registry (for preferences and the like), but it cannot modify anything that does not either
1. Already belong to it
or
2. It can create under the "java root" entry, or "java user" entry.
And I so "Java user", and not just "user" as I don't believe a Java program even has access to all of that users keys. I could be wrong about that part of it though.
If you want "full" registry access, you are going to need to write a JNI interface.
For the "limited" access that Java provides, see the Preferences class.
- 04-09-2009, 01:23 PM #3
Member
- Join Date
- Apr 2009
- Posts
- 10
- Rep Power
- 0
I want to aviod the registry altogether as I want the converted project to be platform independant. I'm looking for a Java way of holding user settings across program loads. I'll take a look at the Preferences class.
Thanks
- 04-09-2009, 01:30 PM #4
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
The Preferences class is the standard user preferences/settings module. On windows, per default, it will store them in the registry, on Unix it will use "dotfiles", what it does on Mac (or others), I don't know.
You, can, however, with some expert work, designate your own storage mechanism for the preferences.
Similar Threads
-
XLS to PDF conversion
By nitin2k2k in forum Advanced JavaReplies: 17Last Post: 09-20-2011, 08:41 AM -
display huge size file in jtextarea
By tskarthic in forum AWT / SwingReplies: 1Last Post: 03-21-2009, 06:30 PM -
Conversion from wav to vox
By bozovilla in forum Advanced JavaReplies: 1Last Post: 07-31-2008, 05:54 AM -
Breaking huge text into multiple parts.Please help..
By waNnY in forum New To JavaReplies: 2Last Post: 02-18-2008, 04:24 AM -
iteration on huge amount of files in a folder
By tshaked in forum Advanced JavaReplies: 1Last Post: 08-07-2007, 07:08 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks