Skip to content

Commit 9ac5818

Browse files
Merge pull request #3 from ywjywjywj528/main
update java 9.0
2 parents 7ad2013 + 5971657 commit 9ac5818

File tree

12 files changed

+27
-51
lines changed

12 files changed

+27
-51
lines changed

samples/GeneralSettings/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
<dependency>
1717
<groupId>com.dynamsoft</groupId>
1818
<artifactId>dbr</artifactId>
19-
<version>8.8.0</version>
19+
<version>9.0.0</version>
2020
</dependency>
2121
</dependencies>
2222

2323
<properties>
2424
<maven.compiler.source>8</maven.compiler.source>
2525
<maven.compiler.target>8</maven.compiler.target>
2626
</properties>
27-
</project>
27+
</project>

samples/GeneralSettings/src/main/java/GeneralSettings.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ public class GeneralSettings {
44
public static void main(String[] args) {
55
try {
66

7-
// 1.Initialize license.
8-
// The organization id 200001 here will grant you a free public trial license. Note that network connection is required for this license to work.
9-
// If you want to use an offline license, please contact Dynamsoft Support: https://www.dynamsoft.com/company/contact/
7+
// 1.Initialize license.
8+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
109
// You can also request a 30-day trial license in the customer portal: https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=samples&package=java
11-
DMDLSConnectionParameters para = BarcodeReader.initDLSConnectionParameters();
12-
para.organizationID = "200001";
13-
14-
BarcodeReader.initLicenseFromDLS(para);
10+
BarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
1511

1612
// 2.Create an instance of Dynamsoft Barcode Reader.
1713
BarcodeReader dbr = new BarcodeReader();

samples/HelloWorld/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
<dependency>
1717
<groupId>com.dynamsoft</groupId>
1818
<artifactId>dbr</artifactId>
19-
<version>8.8.0</version>
19+
<version>9.0.0</version>
2020
</dependency>
2121
</dependencies>
2222

2323
<properties>
2424
<maven.compiler.source>8</maven.compiler.source>
2525
<maven.compiler.target>8</maven.compiler.target>
2626
</properties>
27-
</project>
27+
</project>

samples/HelloWorld/src/main/java/HelloWorld.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ public class HelloWorld {
44
public static void main(String[] args) {
55
try {
66

7-
// 1.Initialize license.
8-
// The organization id 200001 here will grant you a free public trial license. Note that network connection is required for this license to work.
9-
// If you want to use an offline license, please contact Dynamsoft Support: https://www.dynamsoft.com/company/contact/
7+
// 1.Initialize license.
8+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
109
// You can also request a 30-day trial license in the customer portal: https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=samples&package=java
11-
DMDLSConnectionParameters para = BarcodeReader.initDLSConnectionParameters();
12-
para.organizationID = "200001";
13-
14-
BarcodeReader.initLicenseFromDLS(para);
10+
BarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
1511

1612
// 2.Create an instance of Barcode Reader.
1713
BarcodeReader dbr = new BarcodeReader();

samples/ImageDecoding/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
<dependency>
1717
<groupId>com.dynamsoft</groupId>
1818
<artifactId>dbr</artifactId>
19-
<version>8.8.0</version>
19+
<version>9.0.0</version>
2020
</dependency>
2121
</dependencies>
2222

2323
<properties>
2424
<maven.compiler.source>8</maven.compiler.source>
2525
<maven.compiler.target>8</maven.compiler.target>
2626
</properties>
27-
</project>
27+
</project>

samples/ImageDecoding/src/main/java/ImageDecoding.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,10 @@ private static int chooseNumber() {
156156
public static void main(String[] args) {
157157
try {
158158

159-
// 1.Initialize license.
160-
// The organization id 200001 here will grant you a free public trial license. Note that network connection is required for this license to work.
161-
// If you want to use an offline license, please contact Dynamsoft Support: https://www.dynamsoft.com/company/contact/
159+
// 1.Initialize license.
160+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
162161
// You can also request a 30-day trial license in the customer portal: https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=samples&package=java
163-
DMDLSConnectionParameters para = BarcodeReader.initDLSConnectionParameters();
164-
para.organizationID = "200001";
165-
166-
BarcodeReader.initLicenseFromDLS(para);
162+
BarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
167163

168164
// 2.Create an instance of Dynamsoft Barcode Reader.
169165
BarcodeReader dbr = new BarcodeReader();

samples/Performance/AccuracyFirstSettings/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<dependency>
1717
<groupId>com.dynamsoft</groupId>
1818
<artifactId>dbr</artifactId>
19-
<version>8.8.0</version>
19+
<version>9.0.0</version>
2020
</dependency>
2121
</dependencies>
2222

samples/Performance/AccuracyFirstSettings/src/main/java/AccuracyFirstSettings.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,10 @@ private static void outputResults(TextResult[] results) {
4848
public static void main(String[] args) {
4949
try {
5050

51-
// 1.Initialize license.
52-
// The organization id 200001 here will grant you a free public trial license. Note that network connection is required for this license to work.
53-
// If you want to use an offline license, please contact Dynamsoft Support: https://www.dynamsoft.com/company/contact/
51+
// 1.Initialize license.
52+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
5453
// You can also request a 30-day trial license in the customer portal: https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=samples&package=java
55-
DMDLSConnectionParameters para = BarcodeReader.initDLSConnectionParameters();
56-
para.organizationID = "200001";
57-
58-
BarcodeReader.initLicenseFromDLS(para);
54+
BarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
5955

6056
// 2.Create an instance of Dynamsoft Barcode Reader.
6157
BarcodeReader dbr = new BarcodeReader();

samples/Performance/ReadRateFirstSettings/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<dependency>
1717
<groupId>com.dynamsoft</groupId>
1818
<artifactId>dbr</artifactId>
19-
<version>8.8.0</version>
19+
<version>9.0.0</version>
2020
</dependency>
2121
</dependencies>
2222

samples/Performance/ReadRateFirstSettings/src/main/java/ReadRateFirstSettings.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,10 @@ private static void outputResults(TextResult[] results) {
7575
public static void main(String[] args) {
7676
try {
7777

78-
// 1.Initialize license.
79-
// The organization id 200001 here will grant you a free public trial license. Note that network connection is required for this license to work.
80-
// If you want to use an offline license, please contact Dynamsoft Support: https://www.dynamsoft.com/company/contact/
78+
// 1.Initialize license.
79+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
8180
// You can also request a 30-day trial license in the customer portal: https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=samples&package=java
82-
DMDLSConnectionParameters para = BarcodeReader.initDLSConnectionParameters();
83-
para.organizationID = "200001";
84-
85-
BarcodeReader.initLicenseFromDLS(para);
81+
BarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
8682

8783
// 2.Create an instance of Dynamsoft Barcode Reader.
8884
BarcodeReader dbr = new BarcodeReader();

0 commit comments

Comments
 (0)