473,698 Members | 2,271 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access registry using Java

1 New Member
hi
I want to access registry using java, I want to find list of hardware or software installed in my PC using java programe. How can i do this?
If any one know ?
Please help me.

Regards
Mazhar
Aug 30 '06 #1
5 5631
Lukman
8 New Member
u can use Java Native Interface to achieve this...JNI

Lukman
Aug 31 '06 #2
JosAH
11,448 Recognized Expert MVP
Note that this 'registry' is purely a Microsoft Windows thing. Java is neutral w.r.t. to its target platform, i.e. it doesn't know anything about operating system specific stuff and any Java stuff that handles these things is (by definition) platform specific, i.e. it won't run on Unixes (Linux) or anything else but Windows. Java is not the ideal solution for this.

kind regards,

Jos
Jul 28 '09 #4
shamrocksu88
2 New Member
@JosAH
Thats right ..But its just a insight if in some case we need to access:)
Jul 29 '09 #5
JosAH
11,448 Recognized Expert MVP
@shamrocksu88
Then I'd say: pick another language that is more suitable to the task. One aspect of the strenghts of Java is it's platform independence; don't use it for platform dependent thingies; there are other languages for that. The trouble is that people think that a computer is a Microsoft Windows PC which is simply not true.

kind regards,

Jos
Jul 29 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

8
2912
by: Mark A | last post by:
Here is the description of a new feature in 8.2.2 (FP9) from the InfoCenter: "DB2_SKIPINSERTED registry variable You can use the DB2_SKIPINSERTED registry variable to skip uncommitted inserted rows for Cursor Stability (CS) and Read Stability (RS) isolation levels. The registry variables DB2_SKIPDELETED and DB2_EVALUNCOMMITTED are used to skip uncommitted deletions and uncommitted updates. Otherwise, CS and RS
7
8859
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and save it to the user's machine. I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
11
6593
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
2
1300
by: Sledge | last post by:
We have developed an accounting application both in windows and web. Application calls the function in Dll that inturns access the registry keys. using the value of the registry key it connects to the database and returns the datasource. In former windows application works fine . but the Asp.net application does not access the registry key. the registry key values are stored in session. could any one have a suggestion to access the...
3
2499
by: bfprog | last post by:
Using IBM iSeries client access OLEDB provider to connect to DB2 on AS/400, but cannot create connection using .NET web app. Using following code: Dim cnTest As New OleDbConnection("Provider=IBMDA400; Data Source=S10324NM; User ID=THEUSER; Password=THESECRET") Works fine in console app, but fails in web app with: System.Security.SecurityException: Requested registry access is not allowed.
0
12053
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in '/CinemaBookingSystem' Application. -------------------------------------------------------------------------------- ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN for process
1
1792
by: david epsom dot com dot au | last post by:
http://msdn.microsoft.com/msdnmag/issues/05/04/RegFreeCOM/default.aspx Simplify App Deployment with ClickOnce and Registration-Free COM When you set app = createobject("Access.application.11") you magically get an access application object. but sometimes it doesn't work correctly, and you re-install or delve into
8
28568
by: ajos | last post by:
hi frnds, im trying to convert my servlets database configuration from ms access to mysql database.however im getting some error like no driver found exception. to verify this error ive made a simple database in jsp(just to check if my mysql is working smoothly otherwise) which access' the username.....but in the process im getting a error--> java.sql.SQLException: Access denied for user ''@'localhost' (using password: NO) i have...
6
6677
by: sd | last post by:
hello I need to keep my app entry under HKEY_LOCAL_MACHINE\Software\MyApp. (to support for all users).I need to update one key under MYApp. When I attempt to set value for this key My.Computer.Registry.LocalMachine.CreateSubKey("software \MyApp").SetValue("Licence", "Success") I get error stating Access to HKEY_LOCAL_MACHINE\Software\MYapp denied for Vista only.For XP no problem.If for Vista I give full control to Myapp reg folder...
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.