Results 1 to 8 of 8
Like Tree1Likes
  • 1 Post By DarrylBurke

Thread: PC information question

  1. #1
    roofninja is offline Member
    Join Date
    Jul 2012
    Location
    Asheville, NC
    Posts
    14
    Rep Power
    0

    Default 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?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,407
    Rep Power
    20

    Default Re: PC information question

    Not in the JDK, no.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    roofninja is offline Member
    Join Date
    Jul 2012
    Location
    Asheville, NC
    Posts
    14
    Rep Power
    0

    Default Re: PC information question

    Then what do I use to find that kind of information? WMI?, through a DOS command?

  4. #4
    roofninja is offline Member
    Join Date
    Jul 2012
    Location
    Asheville, NC
    Posts
    14
    Rep Power
    0

    Default 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

  5. #5
    roofninja is offline Member
    Join Date
    Jul 2012
    Location
    Asheville, NC
    Posts
    14
    Rep Power
    0

    Default 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

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,407
    Rep Power
    20

    Default Re: PC information question

    Quote Originally Posted by roofninja View Post
    how do I put this in a program? Is it an "Import"?
    First, you start by learning Java.
    The Java™ Tutorials

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  7. #7
    roofninja is offline Member
    Join Date
    Jul 2012
    Location
    Asheville, NC
    Posts
    14
    Rep Power
    0

    Default 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);
    	}
    }

  8. #8
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,407
    Rep Power
    20

    Default Re: PC information question

    You start by learning Java.
    The Java™ Tutorials

    db
    Tolls likes this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 5
    Last Post: 04-27-2011, 09:14 PM
  2. Need information...
    By nikkka in forum New To Java
    Replies: 1
    Last Post: 03-07-2011, 02:25 PM
  3. Client information
    By shiv_java in forum Networking
    Replies: 1
    Last Post: 03-02-2011, 01:53 AM
  4. Information about Struts
    By Felissa in forum Web Frameworks
    Replies: 2
    Last Post: 07-02-2007, 04:40 PM
  5. Some information about Hibernate
    By Marcus in forum JDBC
    Replies: 2
    Last Post: 07-02-2007, 04:26 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
  •