Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions samples/GeneralSettings/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<dependency>
<groupId>com.dynamsoft</groupId>
<artifactId>dbr</artifactId>
<version>8.8.0</version>
<version>9.0.0</version>
</dependency>
</dependencies>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
</project>
</project>
10 changes: 3 additions & 7 deletions samples/GeneralSettings/src/main/java/GeneralSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ public class GeneralSettings {
public static void main(String[] args) {
try {

// 1.Initialize license.
// The organization id 200001 here will grant you a free public trial license. Note that network connection is required for this license to work.
// If you want to use an offline license, please contact Dynamsoft Support: https://www.dynamsoft.com/company/contact/
// 1.Initialize license.
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
// 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
DMDLSConnectionParameters para = BarcodeReader.initDLSConnectionParameters();
para.organizationID = "200001";

BarcodeReader.initLicenseFromDLS(para);
BarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");

// 2.Create an instance of Dynamsoft Barcode Reader.
BarcodeReader dbr = new BarcodeReader();
Expand Down
4 changes: 2 additions & 2 deletions samples/HelloWorld/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<dependency>
<groupId>com.dynamsoft</groupId>
<artifactId>dbr</artifactId>
<version>8.8.0</version>
<version>9.0.0</version>
</dependency>
</dependencies>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
</project>
</project>
10 changes: 3 additions & 7 deletions samples/HelloWorld/src/main/java/HelloWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ public class HelloWorld {
public static void main(String[] args) {
try {

// 1.Initialize license.
// The organization id 200001 here will grant you a free public trial license. Note that network connection is required for this license to work.
// If you want to use an offline license, please contact Dynamsoft Support: https://www.dynamsoft.com/company/contact/
// 1.Initialize license.
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
// 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
DMDLSConnectionParameters para = BarcodeReader.initDLSConnectionParameters();
para.organizationID = "200001";

BarcodeReader.initLicenseFromDLS(para);
BarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");

// 2.Create an instance of Barcode Reader.
BarcodeReader dbr = new BarcodeReader();
Expand Down
4 changes: 2 additions & 2 deletions samples/ImageDecoding/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<dependency>
<groupId>com.dynamsoft</groupId>
<artifactId>dbr</artifactId>
<version>8.8.0</version>
<version>9.0.0</version>
</dependency>
</dependencies>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
</project>
</project>
10 changes: 3 additions & 7 deletions samples/ImageDecoding/src/main/java/ImageDecoding.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,10 @@ private static int chooseNumber() {
public static void main(String[] args) {
try {

// 1.Initialize license.
// The organization id 200001 here will grant you a free public trial license. Note that network connection is required for this license to work.
// If you want to use an offline license, please contact Dynamsoft Support: https://www.dynamsoft.com/company/contact/
// 1.Initialize license.
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
// 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
DMDLSConnectionParameters para = BarcodeReader.initDLSConnectionParameters();
para.organizationID = "200001";

BarcodeReader.initLicenseFromDLS(para);
BarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");

// 2.Create an instance of Dynamsoft Barcode Reader.
BarcodeReader dbr = new BarcodeReader();
Expand Down
2 changes: 1 addition & 1 deletion samples/Performance/AccuracyFirstSettings/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>com.dynamsoft</groupId>
<artifactId>dbr</artifactId>
<version>8.8.0</version>
<version>9.0.0</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,10 @@ private static void outputResults(TextResult[] results) {
public static void main(String[] args) {
try {

// 1.Initialize license.
// The organization id 200001 here will grant you a free public trial license. Note that network connection is required for this license to work.
// If you want to use an offline license, please contact Dynamsoft Support: https://www.dynamsoft.com/company/contact/
// 1.Initialize license.
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
// 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
DMDLSConnectionParameters para = BarcodeReader.initDLSConnectionParameters();
para.organizationID = "200001";

BarcodeReader.initLicenseFromDLS(para);
BarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");

// 2.Create an instance of Dynamsoft Barcode Reader.
BarcodeReader dbr = new BarcodeReader();
Expand Down
2 changes: 1 addition & 1 deletion samples/Performance/ReadRateFirstSettings/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>com.dynamsoft</groupId>
<artifactId>dbr</artifactId>
<version>8.8.0</version>
<version>9.0.0</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,10 @@ private static void outputResults(TextResult[] results) {
public static void main(String[] args) {
try {

// 1.Initialize license.
// The organization id 200001 here will grant you a free public trial license. Note that network connection is required for this license to work.
// If you want to use an offline license, please contact Dynamsoft Support: https://www.dynamsoft.com/company/contact/
// 1.Initialize license.
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
// 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
DMDLSConnectionParameters para = BarcodeReader.initDLSConnectionParameters();
para.organizationID = "200001";

BarcodeReader.initLicenseFromDLS(para);
BarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");

// 2.Create an instance of Dynamsoft Barcode Reader.
BarcodeReader dbr = new BarcodeReader();
Expand Down
2 changes: 1 addition & 1 deletion samples/Performance/SpeedFirstSettings/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>com.dynamsoft</groupId>
<artifactId>dbr</artifactId>
<version>8.8.0</version>
<version>9.0.0</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,10 @@ private static void outputResults(TextResult[] results, long costTime) {
public static void main(String[] args) {
try {

// 1.Initialize license.
// The organization id 200001 here will grant you a free public trial license. Note that network connection is required for this license to work.
// If you want to use an offline license, please contact Dynamsoft Support: https://www.dynamsoft.com/company/contact/
// 1.Initialize license.
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
// 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
DMDLSConnectionParameters para = BarcodeReader.initDLSConnectionParameters();
para.organizationID = "200001";

BarcodeReader.initLicenseFromDLS(para);
BarcodeReader.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");

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