Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to get machine identifier?

GadoJan 23 2018 — edited Jan 24 2018

Hello Experts,

I'm building a javaFX POS application.

The business is a franchise with lots of branches ... to determine which sales belongs to which branch i used to link each user to a specific branch.

So on user login i get his branch from DB and then store his sales under that branch.

But now the client is telling me that cashiers might change frequently ... and one cashier might work in 2 branches at the same time (different shifts).

So i think the only way to do this is to instead of determining the branch from the user ... i should determine it from the machine (PC) in that branch.

Meaning that i'll define the machines in the branch in the database under each branch.

But to do this i need a way to get the machine hardware information like (CPU or Motherboard serial number)

So my first question is how can i get this information in java?

And second are those values (CPU or Motherboard serial number) unique?

I searched on google about this but i found either a third party API called OSHI that i couldn't get any information about how to use it ... or using some VB scripts whichi don't think is a good idea.

Thank you for your time

Gado

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2018
Added on Jan 23 2018
2 comments
5,478 views