Download as pdf
Download as pdf
You are on page 1of 7
9282016 regsty : Java Glossary eet Cangiage 7 registry : Java Glossary QVEAOR M9ABCDEEGUIIKLMNOPQRSTUYWXYZ Gl) You are here home Java Glossary Rivorde reisty {©1996-2016 2008.01-21 Roedy Green of Canadian Mind Products ‘The CursCon Java Applet displays prices on this web page converted with todays exchange rates into your loa international currency, e.g, Euros, US dollsrs, Canadian dollars, Bist Pounds Indian Rupees... CusrCon requires an up-to-date brosizr and Java version 1.8, preferably 18.0. 102, Ifyou can't see the prices in you local currency, Troubleshoot Use Firefox for best results registry “The registry isthe master database file in Windows operating systems tat keeps tracks of everything about every installed program. Registry Corruption BML Regis Thin ni Physical Location oking With INT Exploring ‘Second Stupidest Hea sof Locations Books ks The Auiliry Apo Path Registry Corruption and Repair ‘The structure ofthe registry is complex. It tends to become corrupted an filled with deadwood. An entre industry as grow upto fix the damage. For most poople repairing such damage witha litle fuss as posible is all they evcr do withthe registry. Fr hat se the entry on rossi fixes RMI (Remote Method Invocation) Registry Java RMI has a program called te registry (no relation to the Windows registry) for tacking remote objects. However, most people use the term registry to reer toa file in Windows called the reise. Backing Up The Registry ‘Ordinary backup programs cannot deal with backing up or restoring the rosy’ since it is always locked and in use. All you can doi extract the data from it and feed it back transaction by transaction with regedit. Programs lke Norton Ghost can backup and restore the entire reisty by unning tuder DOS (Disk Operating System) where the registry isnot used at all, Ghost i the oaly way Tkow of recovering ftom a ftally damaged registry. ‘You can backupiretore sections ofthe registry, provided the registry asa whole is intct, with code like this (which saves the SET environment -Y_LOCAL_NACHINE\SYSTEM\ControlSet@@1\Control\Session Managen\Environnent' 'Y_CURRENT_USER\ ENVIRONMENT" C a © You can spawn such eget code with Runtime exec, In W2K, XP, W2003, Visa, W2008, W7-32, W7-64, WS-32, W8-64, W2012, W032 and WIO-68 it dumps the file in UTF-16LE (litle endian) encoding with an FFFE BOM (Byte Order Mark) Ifyou try to read it with an ordinary bit editor it will show every, second character as nul Physical Location hpimindprod.comjglossiregsty rtm! w 9282016 regsty : Java Glossary ‘The following information is not much practical use sine you cannot edit the registry ar even back i yp with conventional fools, tll you this jus to satisly your curiosity and so you can gel a rough idea how fa guar PYISEARRs + In W9S, W98 and Me, the rezistry ‘REBHERALEANhidden files in your Windows directory, called USER.DAT and S#8TEM DAT. + In NT, W2K, XP and W2003, the registry is stored in several hives, located in the iwindows\system32\config and ‘Documents and Seiings {username} folders. One major chunk is called NTUSER DAT which contain the HKEY_CURRENT_USER hive. Two other major chunks are called software and system, Exploring The Registry Ifyou dg around the registry with regedit, you wil se terrifying data values to keys such as (0982470.bae0-I1ed-b579-08002b30bfeb}. These are not encoded data. These ar just random: stings of gibberish, hopefully unique, used 10 index some other part ofthe tre. All links are symbolic and these ae the sort af names used when a human has not taken the trouble to assign an intelligible name tothe link, or when the name ofthe link is effectively 2 digest. Sometimes you will finda link ta link using this cumbersome mechanism. Unfortunately you cannot change them f atlligible ‘ames since they ae alsa hard coded into various programs ‘You can Jear quite «bit about how the registry handles java just by searching for stings like java, JavaSo, java.exe,javawexe, javaws.exe jap, js, jk, re, JNProgram Fiesjavaljakl.8.0_102) oF 1.8.0, ‘You could use regedit wo Took at HKEY_LOCAL, MACHINESOFTWAREUavaSoft to see this a a small tee of fields, Its damaged and you don’t have a backup, you could patch i eld by field, or ute te tex! above to create phony registry section backup, convert ito the encoding your version of regedit expects and restore that and then fine tune the result Jteratvely, if the registry is areal mess, you could uninstall java JREs Java Runtime Environments) and JDK (Java Development Kit , delete the files for te IRE and JDK s, delete the HKEY_ LOCAL, MACHINESSOFTWARE JavaSof episty tree and start from scratch Useful Registry Locations Useful registry locations Useful Registry Locations Registry Location Use dna pointers o java exe and javatene, You ‘may’ find they are serewed up pointing to old ‘versions that no longer exist This is where the Java Control Pane keeps tack of wich javacexe tous. This sts up the shell. ‘command launchings HKEY_CLASSES_ROOTICLSID \(CAFEEFAC-...) mise Java enties controls the association for jar files. like to ‘set mine up ojava.cxe not javawexe so can HKEY_CLASSES_ROOT\Applications HKEY_CLASSES_ROOT arfil'shelopen'command ‘see tho error messages change it *CAProgram Files binjavaexe jar HKEY_CLASSES_ROOTVaveWebStatishnstalled Is SWS (Java Web Start) instllee? HKEY_CURRENT._USER\ENVIRONMENT User-pecifie set environment HKEY_CURRENT_USER'Software\lavaSoft\Preficommindprodeplicator where the package One place whereJava persists User ame iS com.mindpod replicator, Preferences TIKEY_CURRENT_USER\Software\Microsoft Windows CurrentVersion\Fxplorer'MenuOrder'Start_where installers track registration information “Menulrograms'Su Microsystems about each product. ‘Are of mos interest to Jave programmers, Points to where the JDK s, JRE lava ‘Runtime Environment s and Java plogins ar installed, should be soto 1.8, the version ofthe HKEY_LOCAL, MACHINESOPTWAREVsvaSoftJava Runtime Environment\CurrentVersion curently active JDKJJRE. Note you need both the generic 1 and specifi 1.8.0 entries, TKEY_LOCAL_ MACHINESOFTWAREUvasont HKEY_LOCAL, MACHINE\SoftwareJavaSoftPrefs\comimindprodtepliator where the package ‘ame i com miniprod replicator, Where Java pe et System Preferences ‘rocks al the uninsallable programs, including the IDK and JRE. To get rid of @ HKEY_LOCAL,MACHINESOFTWARE\Microsoft Windows CurrentVersion\Urinstall ‘program from the registry that has already ‘een uninstalled, just delete the key anda ts subkeys inthis section HKEY_LOCAL_MACHINESOFTWARE\Microsoffntemet ‘Where Microsof’s browser, Internet Explorer, [Explore AdvancedOptionsJAVA_SUNSELECT keeps track of which version of Java it uss. HKEY_LOCAL,_MACHINE'SOFTWARE\Microsof! Windows! CurrentVersion\App where javaws.exe is installed, See blow for Pathsjavaws.exe Jhow this auxiliary path mechanism works. where installers, ineluding the JRE and JDK installers, keep tack of whats already installed f these entries point to applictions HKEY_LOCAL, MACHINE\SOFTWARE\MicrosofWindows\Curn:VrsonstallerFoldere Reale ee nie oto reson HKEY LOCAL, MACHINESOFTWAREMisosoWindowsCanen Versione seat whee the eit task which programs ae Isto Sor itextarted on oot HKEY_LOCAL, MACHINESOFTWARF-MiosoftWindowsiCuren:ersion Rn ls LL Dynami Link brary) tat re hpuimindprod.comjglssiregstyhim! on 9282016 regsty : Java Glossary Useful Registry Locations Registry Location ‘This sesion tacks shitd DEL s.Ofen these point to shared files (usually DLLs (Dynamic Link Libraries) but not always) that are no longer there. You can delete such entries. Registry cleaning utilities do this automaticaly HKEY_LOCAL, MACHINE\SYSTEM\ContolSet001\Control\Session ManagerEnviconment system wide st environment ‘Another place where Java persis Liser Prsforensos, Does not appear in Vista. Ifyou ‘have tumed off legacy 83 filenames, instead cof user, the group wil have a Tong, gibberish HKEY_LOCAL,MACHINE\SOPTWARE\Microsofl Windows! CurreniVersionSharedDLLs HKEY_USERS user SoftwareVJavaSoftPrefsicomimindprodtc ‘com mingpeodsephieator feator where the package name is Note the registry isnot stored purely alphabetically: HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_CURRENT_CONEIG. ‘The Auxiliary Registry App Paths ‘The repisty also sets ike an auxiliary path to help Find the executable to Toad There ae a pair of entries ne to define the execulble and one to define the stat dzecozy HKEY LOCAL, MACHINE'SOPTWARE\Microroft Windows CurrentVersion\App Path frefox.cxe (default) = X:\Program Files (x86)iirefontiefox exe path = F:\Program Files (s86)ifirefow “These entries ell windows where to find various programs as if they were onthe path. By inserting an entry here for your exe, you make it glo sccessble. You could for example pivea French name forthe user that mapped onto an English program name, oF give a program several aliases, one Key for each alias, all pointing tothe same program, Ifyou use sx/TakeCommand, you ean just ype the name of any program inthis auxiliary list with or without the exe to invoke it, However, the default emdexe command processor will not do ths for you. However, if you invoke the program on the with NT and W2K start = run or Vista, |W2008, W7-32, W7-64, W-32, WS-64, W2012, W1O-52 and W10-64 start = all programs = accesories = rua, the program will launch Wis good idea to prune this region ofthe registry of deadwood, It gots filled with references to non-existent programs during failed installs and uninstall Installers are sometimes too timid stupid to fix broken enres. found, for example, that Opera would not launch properly when I typed Opera on the command line. I discovered a registry entry inthis region was pointing it oan old version of Opera that was no longer installed. | patched the entry ‘with regedit o point to the new name and off it went Registry cleaners will automatically purge broken entries ofthis type, but they won't repa ‘hem. Sometimes purging is enough. The next instal might recreate it. Java and the Registry Savane lookin the est to decide which version of ava owe I can belt delete or place the file C:AWINNTSysten3D\avaene which is often out oF date. is wise to take a snapshot of the java portion of the registy. Then when iis ater inevitably damaged, you can restore it, Without such a backup you ‘must either manually atc the registry or uninstall all your JDK s, JRE s, WS. eM expore Java region of registry Pegeait/e CENV\Java.reg *HKEY |OCALMACHINE\SOFTWARE\Javasofe® FEM restore Java region of registry EAEW av. rem the exported registry i often in 6-bit Unicode. You may have to translate it to your native eacoding if you want to view it You don’t have to view it unless you are curious. If hpuimindprod.comjglssiregstyhim! a7 eaa2016 registy : Java Glossary Windows Registry Editor Version 5.0 5 REGION OF REGISTRY IMPORTANT TO JAVA 5 Java region of the registry master key [HKEY_LOCAL_MACHINE\ SOFTWARE \JavaSoft] “RegbeployStatus"="@ 5 define which JOK is the official one [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit] "CurrentVersion"="1.8" j hhere the JDK is (HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8] "Javalione”="E:\\Program Files\\Java\\jdk1.8.0_92" ‘icroversion*="@" [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_92] "JavaHione"="E:\\Program Files\\Java\\jdk1.8._92 “Microversion"="@" [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_92\MSI] \\Program Files\\Java\\jdk1.8.0_92\\" 5 Define which IRE to use for Applets in browsers, usually the same as th [HKEY_LOCAL_MACHTNE\SOFTWARE\JavaSoft\Java Plug-in] How Java Finds its Executables Just to keep you on your toes, Java uses three differerent mechanisms to find its executables, 1, Java Web Statuses the registry auilary Apps Path technigue. You will find an entry in HKEY_LOCAL_MACHINE'SOFTWARE\Microxofl Windows'CurrentVerson\App Paths for javaws.exe pointing it othe javaws.exe it wll use you just ype javaws on the commandline where there is no javaws.exe onthe path 2 java-exe uses a different mechanism tht uses a extra C Windows System32 java.exe (hich is on the pat) that examines the registry to find the currently active IRE and hence the oficial copy of javaexe 3. Just for variety, javaeexe just uses the plain old path to find the excoutble, though, ofcourse, you are fee to setup an App Paths entry ‘manually with regedit Manipulating the Registry Staring with Java version 1.4 you can store information inthe Windows registry in a patform-independent way using the Psslereaces cass. On other platforms tis is implemented sanely with an SOL (Standard Query Language) dtabsse. The Preferences feature of Java uses the Windows registry to store configuration information. This does not give you geneval access tothe registry however [ake it Sun was too cheap to buy/vrte some disk-based BTree code or a simple SQL. engine o handle this with ordinary files that could be casly backed up and restored For caler JDK °s IBM (Intemational Business Machines) 's JConfz does not support registry operations because JConfig i eoss platform and ‘Windows isthe only OS (Operating System) with this idiotic coneapion ‘Nodes in the registry ean have an optional name’key for dtect lookup and an optional value, Fr nodes with key, aeessible via direct name lookup, ‘he associated value i called the date. For nodes without keys, only accessible a a subnodes of some other node, the associated value is called 8 value, Inserting & node without key is referred Wo a inserting a value. Ifyou are developer, a more robust technique iso store your data in C°Documents and Settings\User\Application Dat in ordinary Mat fies You can span a copy of egexe or reditexe for quick and dirty changes. Poking The Registry With JNI (Java Native Interface) you want to probe or poke the registry, you wll need some INI tha implements some or all of MirosoR's registry API (Application Programming Tnieeface), Finding the documentation on how it works can lake while, Look for HKEY TYPE which defines the various sors of value a registry key can have. You wll ned to implement SHGetValue and SHSetValue as well as some Of the 18 other methods. Trast Microsoft to make itis complicated as possible. Ifyou need such a INI interface othe registry, Lam available to create you light weigh, special purpose registry poker fora fe ‘nLWiapper Winnack $7400 USD dos many more native tweaking that aces the regi Registry: Second Stupidest Idea In Computing ‘The registy isthe second stupidest idea in computing. (DLL hell was the worst, both compliments of Microsoft.) With the registry thee isa single, shared, ceiral file that ll applications use to store ther configuration data ina convenient hicrarcical format. The file has a complex delicate hpimindprod.comjglossiregsty rtm! ar 9282016 regsty : Java Glossary steucturo, which means you ate putting all your egas in one basket, It becomes corrupt, you Tose the eontiguation information for al your applications. Because iis so central tothe OS, normally you cat even restore it sa luna from backup, without rebooting to DOS first. The registry ‘becomes a performance bottleneck since different apps mst wait inline for access oi. There are so many negative consequences of having a central registry implemented asa single fil, that Ihave @ hard time believing the trac motives for creating the registry were not sinister. I suspect these were the tre matives 1. Microsoft lock in ‘To make it more dificult por Windows apps to operating systems without a registry. Microsof| wan o lock in developers 2, Piracy ‘To make it more difcl to backup and restore individual applicalions, You have to totaly reinsall hem ftom the maser CD (Compact Dis) This isouraged piracy inthe days Defoe the CD burt. Av side eft the regis har Ttimate urs eying ores a comrpted application or tying co move itt diferent parton To nove an aplication to een drive or pation, you must uninstall reisall ‘hen manually renter all the configuration options f you can remember them! Ifa customer has lot the key for a app of misplaced the master CCD, or can't figure out which key goes with which disk, he can't even reinstall He has to buy a mew copy ofthe application. Hmmm. 3, Cover Up for Incompetence ‘To make it necessary to reinstall Windows every once ina while. IFanything in the registry goes, novice users hae litle hope but to reformat ‘he disk and start over and re-install Windows and all the applications. An ex Microsoft employee told me that Microsoft coders do this a a ‘matter, of course, each month. The registration keys are designed tobe easy to lose and hard to match withthe corresponding CD. Legitimate ‘owners of software end up rebuying unnecessary copies ofthe products. Registration keys have no effect on ptatss; they only harm legitimate users. Branding, in contrast, Would deter pirates. intl for more discussion 4. Intercorporate Spying and Warfare ‘To make it easier to snoop on and meddle with your competitor's configurations and file associations. In future secure computer architectures, cach application wil unin an airtight sandbox where i eannot snoop on or meddle with the files or programs of is competitors. The CPL. (Cenxzal Processing Unit) will have a dark room where enerypted code is expanded using the CPU's private key. The code can be executed, bat ‘ot examined by anyone, This will put an end to piracy. There wil be na mote need forthe idiotic registry, The only central uniied rest needed will bee simple list of apps and where they ar. The slapdesh extesion association system will be replaced with a secure program sssocation st foreach le ‘Vendors should proudly advertise when their programs retain fom using the registry. I suggest something lke to the no-all-eggs-in-one-basket loge, ow could the restr be ined I need thre major change 1. Separation ‘The OS assigns cach application a hive — a mini egistry. Applications cant look outside thei ive, except read-only access to a deliberately public cena hive, Only the app itself Tooks at its hive. Normally, not even the OS peeks inside an application hive. Asa result, the registry ‘ceases tobe a performance bottleneck, It ceases to contain material relevant othe eurent purpose tno longer requires contention to access it 2,Placement “The hive fr an app lives inthe directory fr that app Ifthe hive becomes corrupted, only that app is harmed. If that app is backed up and restored to any other machine, partition or diretory i still works. The hive has no idea whee itis, Mierosoft has to give up the ides of punishing legitimate appliction migration and restoration, 3. Robustness Through Automatic Restoration ‘There is @ mechanism to publish a few public fcts, eg the mime types of files the app is willing to display, edit, pint...(An app on its own cannot commandscr a MIME (Multipurpose Iatemet Mail Extensions) type from al ther apps. It can merely gett self added to list of potential associations). This structured public information is replicated centrally If for some reason the central registry becomes corrupt and loses these acts, the O/S can get them beck by asking ny hives it Finds Tying about. Ie can thus reeeat the damaged ceil hive ffom the puble portion ofthe application hives. The OS i the only eniy that knows where an app is. Apps themselves doa't know where physically they ae. Books Book referal for Windows Registry Troubleshooting recommend book=>Windows Registry Troubleshooting 4 hpuimindprod.comjglssiregstyhim! a7 eas2016 regsty : Java Glossary bby Mike Halsey, Andrew Bettany 9 paperback birth 1970-03-27 ages 978-1-4889.0992-9 eBook publisher Apress Bo kindle Published 2015-04-50 This isan introduetory book onthe eepisty Outixe bookstores carrying Windows Registry Troubleshooting abehooksonzabchoakscouk ESE Iv amazonde abebooksca wazones amazon.ca el ‘berlbro.com Chapters Indigo el ebooks fr abe " = amavonfi amazon = books it Bames & Noble = smazonit Nookat Bames & Noble = jnels.com Kobo stherstotes Google play (O'Reilly Safi Powells GGreyed out stores probably donot have the item instock. Try looking for it with Book referal for Microsoft Windows Registry Guide recommend book=»Microsoft Windows Registry Guide by Jey Honeycutt 978.0-7556-2218.0 paperback iio publisher Microso ——_ 978.0.7356.87 Book REGISTRY GUIDE shed 2005-09-14 BoousMSETY kindle Covers XP registry, but not Vista Online bookstores carrying Microsoft Windows Registry Guide shebooksanz abebookscouk ER shebooks de amazon.co.uk Ee a Iv smaronde sbebook Iv sberibro.com Chapters Indigo I+] hpimindprod.comjglossiregsty rtm! 9282016 regsty : Java Glossary sbebooks fr shebooks com ames & Noble = asbebooks smazonit Nookat Bames 4 Noble = jngleecom Kobo stherstotes Google play Greyed out stores probably do not have the item in stock. Try looking frit with a booksindes Ace Ltlites registry repair and broken shortcut deletr ‘Control Pane seftagger ‘alension associations editor student project by poking the registry DA SNDrapper Winpack $RegistrvKey: poke registry without SNUINI SVM Manager to manage JVMIVM tegise ‘NTRegop registry compactor PageDefing Prsfersncss Propenies reels registy cleaner [evistty Poker’ Student Project ‘Regmon (ree program to monitor what programs ae dong to the registry) rwinsaler student project reinstalling jew of Registry Repair Uliies ‘TCP Optimizer standard footer @ ‘This page is posted. tp: /imindprod.com/iglossiregistry htm! ae onthe web or ‘http:imindprod.com/jloss/registry him! Optional Replicator miror ‘f mindprod.com Eimindprod\jlosscesistev html fon local bard isk Please read the feedback from other visitors, or send your own feedback about the site, Contact Roady, Please feo fee to ink to this page without explicit permission, aw Canadian Mind Products w6s.11021.43] ‘Your face 1P66,249,93.18] You ae visitor number Feedback Youre hpuimindprod.comjglssiregstyhim!

You might also like