Results 1 to 4 of 4
  1. #1
    bullstreetboy is offline Member
    Join Date
    Apr 2009
    Posts
    10
    Rep Power
    0

    Thumbs up 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.

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    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.

  3. #3
    bullstreetboy is offline Member
    Join Date
    Apr 2009
    Posts
    10
    Rep Power
    0

    Default

    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

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    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

  1. XLS to PDF conversion
    By nitin2k2k in forum Advanced Java
    Replies: 18
    Last Post: 07-02-2013, 12:17 PM
  2. display huge size file in jtextarea
    By tskarthic in forum AWT / Swing
    Replies: 1
    Last Post: 03-21-2009, 07:30 PM
  3. Conversion from wav to vox
    By bozovilla in forum Advanced Java
    Replies: 1
    Last Post: 07-31-2008, 06:54 AM
  4. Replies: 2
    Last Post: 02-18-2008, 05:24 AM
  5. iteration on huge amount of files in a folder
    By tshaked in forum Advanced Java
    Replies: 1
    Last Post: 08-07-2007, 08:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •