B4J Question Detect CPU Vendor

drgottjr

Expert
Licensed User
Longtime User
2 ways come to mind:

$ lshw -short
install it, run it from a shell (in java)

-----------------------------------------------------------------
you can also try this in b4j using java objects:

B4X:
    Dim properties As JavaObject   ' java.util.Properties
     jo.InitializeStatic("java.lang.System")
    Dim out As JavaObject = jo.GetField("out")
    
    properties = jo.RunMethod("getProperties",Null)

    ' show properties in log 2 ways:

    Log(properties)
    properties.RunMethod("list",Array(out))

no guarantee cpu vendor information is available/captured.
no guarantee your particular flavor or linux permits access from userland.
the b4j snippet works on windows. i'm too weak to drag out a linux box to try it there.
 
Upvote 0
Top