We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af8555e commit 1fb968eCopy full SHA for 1fb968e
1 file changed
license-activation/index.md
@@ -79,9 +79,17 @@ Dynamsoft.License.LicenseManager.initLicense("YOUR_LICENSE_KEY");
79
```
80
>
81
```java
82
- BarcodeReader.initLicense("YOUR-LICENSE-KEY");
83
- BarcodeReader reader = new BarcodeReader();
84
- // add further process
+try {
+ LicenseError licenseError = LicenseManager.initLicense("YOUR-LICENSE-KEY");
+ if (licenseError.getErrorCode() != EnumErrorCode.EC_OK) {
85
+ System.out.println("License initialization failed: ErrorCode: " + licenseError.getErrorCode() + ", ErrorString: " + licenseError.getErrorString());
86
+ return;
87
+ }
88
+} catch (LicenseException e) {
89
+ System.out.println("License initialization failed: ErrorCode: " + e.getErrorCode() + ", ErrorString: " + e.getErrorString());
90
91
+}
92
+// add further process
93
94
95
0 commit comments