You may want to restrict the use of your software to a certain machine. To dothis license3j provides a class
HardwareBinder
that makes it possible toget a hardware ID. You can encode this ID into the license as a <feature>
andwhen the license is checked you can calculate it again and compare the value tothe one that is in the license.This is more restrictive than just a plain license because it will not allowthe user to move the license from one machine to another, and it will alsorequire some means to generate the ID of the machine that he wants the softwareto run on before the license is created.
Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums.
This usually means that you have to provide an auxiliary program, thatcontains license3j and calculates the machine ID. Another approach is toprovide the program you want to protect and even without a valid license, itcan be used to print out the ID.
This ID is calculated from the network interfaces of the machine. The code in
HardwareBinder
uses the network interfaces information to generate aUUID for the machine. The code will take all network cards into account aswell as the architecture of the machine running your program. The 'architecture'of the machine is simply the string returned by the Java APISystem.getProperty('os.arch')
.You can alter the behavior of
HardwareBinder
using methodsignore
xxx()
and the method setUseHwAddress()
. If you aresure that your code runs under Java6 or later you can tell HardwareBinder
to use the MAC address of the interface cards when calculating the UUID.The default is not to use the MAC address into account.Virtual, loopback and point-to-point network cards are ignored during thecalculation of the UUID.
If you're troubleshooting Office and would like to remove the license files on your Mac, you can use the license removal tool. This will completely remove all licenses for Office for Mac.
Important: Before using the tool, make sure you have the correct account info and password associated with your purchase of Office available for when you reactivate.
This tool can also help if you've subscribed to Office 365 but previously had a one-time purchase of Office for Mac on your computer, and aren't seeing certain subscription features. This can be due to your copy of Office still using the license of your one-time purchase and not your subscription.
Before you begin
1. Check what license your version of Office is currently using. See, What version of Office am I using?
Note: If you're looking for subscription features and your version is using an Office 365 subscription license, then you don't need to do the rest of these steps. You're already using the correct license. See When do I get the newest features for Office 365? for more info on why you may not be seeing subscription features yet.
2. If you aren't uninstalling the Office apps to reinstall them later, quit out of all Office apps. If you've already uninstalled Office, go to the next step.
Download and run the license removal tool
1. Download the license removal tool.
2. Open the .pkg file from your Mac's Downloads folder.
Note: If you get an 'unidentified developer' error, try opening the file by holding Control + clicking the file > Open.
3. Select Continue and follow the prompts in the setup wizard.
Caution: We recommend you double-check that you have the correct account info ready by logging into Office.com/signin and checking for the license you want to activate with.
4. When you're ready to complete the license removal, select Install. You may need to enter your Mac's local admin account password.
After the tool successfully removes licenses, select Close.
5. Now launch any Office app and sign in to activate with the email account associated with your Office for Mac license. If you're troubleshooting an issue, you may need to reinstall Office before signing in.
After you've successfully activated, restart your computer and then you're good to go!
Note: If your account has both an Office 365 for Mac license and a one-time purchase associated with it, you'll be prompted to choose which license you want to activate with. We recommend always choosing Office 365 for Mac if available.
6. Uninstall the License Removal Tool by dragging the Microsoft_Office_License_Removal file from Finder > Downloads to Trash.