Results 1 to 8 of 8
Thread: PC information question
- 09-10-2012, 04:57 PM #1
Member
- Join Date
- Jul 2012
- Location
- Asheville, NC
- Posts
- 14
- Rep Power
- 0
PC information question
This is more of a general question and I am very new, so I don't know exactly what I am looking for. Is there an API or something that I is a built-in that can be used to find the Model of the PC that it is running on, the BIOS version of the PC, and other various information?
- 09-10-2012, 05:31 PM #2
Re: PC information question
Not in the JDK, no.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 09-10-2012, 05:57 PM #3
Member
- Join Date
- Jul 2012
- Location
- Asheville, NC
- Posts
- 14
- Rep Power
- 0
Re: PC information question
Then what do I use to find that kind of information? WMI?, through a DOS command?
- 09-10-2012, 08:55 PM #4
Member
- Join Date
- Jul 2012
- Location
- Asheville, NC
- Posts
- 14
- Rep Power
- 0
Re: PC information question
I found this link that looks like it does wmi, but I have having trouble reading it and understanding it.
WindowsWmiInput
- 09-10-2012, 09:30 PM #5
Member
- Join Date
- Jul 2012
- Location
- Asheville, NC
- Posts
- 14
- Rep Power
- 0
Re: PC information question
This is actually better. So, how do I put this in a program? Is it an "Import"?
jWMI – Query Windows WMI from Java | henryranch.net
- 09-10-2012, 09:52 PM #6
Re: PC information question
First, you start by learning Java.
The Java™ Tutorials
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 09-11-2012, 03:02 PM #7
Member
- Join Date
- Jul 2012
- Location
- Asheville, NC
- Posts
- 14
- Rep Power
- 0
Re: PC information question
So, this is what I am using to test how to use the jWMI class, but I get 2 errors from how I am call the class. It says that "jWMI WMIV=new jWMI();" cannot find symbol for "jWMI".
I have copied the .java and .class in the same folder as the wmitest. Do I have to put it in the "bin" of the sdk? I am just not sure if I am putting this "jWMI" in the correct place now or what I am doing wrong here.
Java Code://test the use of jWMI class call import javax.swing.JOptionPane; public class wmitest{ public static void main(String args[]){ jWMI WMIV=new jWMI(); String model = WMIV.getWMIValue("Select Model from Win32_ComputerSystem","Model"); JOptionPane.showMessageDialog(null,"This is the PC model__"+model); } }
- 09-11-2012, 03:56 PM #8
Re: PC information question
You start by learning Java.
The Java™ Tutorials
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
signer information does not match signer information of other classes
By swyatt in forum New To JavaReplies: 5Last Post: 04-27-2011, 09:14 PM -
Need information...
By nikkka in forum New To JavaReplies: 1Last Post: 03-07-2011, 02:25 PM -
Client information
By shiv_java in forum NetworkingReplies: 1Last Post: 03-02-2011, 01:53 AM -
Information about Struts
By Felissa in forum Web FrameworksReplies: 2Last Post: 07-02-2007, 04:40 PM -
Some information about Hibernate
By Marcus in forum JDBCReplies: 2Last Post: 07-02-2007, 04:26 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks