Java script used by DTS

When using DTS to conduct diagnostic tests on vehicle controllers, you often encounter Java script call failures. This article will describe how to properly configure and call Java scripts. (The Java development environment used in this article is NetBeans IDE 8.2.)

As far as the format is concerned, DTS V7 supports the ODX2.02 standard, and DTS V8 supports the ODX2.2 standard. When writing Java scripts, pay attention to the different formats to import different library files, such as the use of DTS V7 database to import ASAMJavaApi202.jar and JApi202.jar, use DTS V8 database to import ASAMJavaApi.jar and JApi.jar, as shown below:

Java script used by DTS

1. You can confirm the version of the Java compiler in the System Configurator, as shown in the following figure:

Java script used by DTS

The red wire frame is the Java virtual machine environment and compiler version required by default for this version of DTS, followed by the corresponding path.

2. The corresponding version of the compilation environment that needs to be used in NetBeans is as follows:

Java script used by DTS

If the red line box does not display the same Java development kit as the System Configurator, you need to add the item manually.

Project name-> Right-click-> Properties-> Library:

Java script used by DTS

3. Check whether the current Java platform is required in the project properties. If not, choose again. If there is no platform to choose from the existing platforms, click Manage Platform-> Add Platform

Java script used by DTS

4. Select the jdk folder under the current DTS version path to add:

Java script used by DTS

Next step:

Java script used by DTS

5. After clicking "Finish", the development platform of JDK 1.7 is added, and the compiled jar file can be called in DTS (usually, the jar file is placed in the db folder of the project, which is the same directory as the database file ).

The following introduces adding the built jar file in DTS Venice.

1. Open the existing database file:

Java script used by DTS

2. Modify the corresponding parameters:

Java script used by DTS

Input parameters and Output parameters must also be consistent with the input and output parameters in the java source file.

Input parameters:

Java script used by DTS

The setting method of Output parameters is the same as above.

3. Save after modification, a job service is successfully added to the database.

Kids Ergonomic Chair

Interactive tables and chairs for children provide fun and safety for children of all ages and sizes. The desk features an adjustable tilt surface from 0 to 40 degrees, and an organized pull-out drawer for paper, coloring books, coloring utensils, and more. This set is ergonomically designed to provide comfortable sitting and correct body posture, which are important for good body posture and health, even from an early age. This table and chair table is recommended for ages 3-14. Initial tabletop setup takes only a short time, and it's easy to move after assembly.

4

Kids Ergonomic Chair,Single Piece Study Chair,Moveable Study Chair,Orthopedic Study Chair

Igrow Technology Co.,LTD , https://www.aigrowdesks.com

Posted on