-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration for IntelliJIdea
Martin edited this page Nov 22, 2023
·
7 revisions
After checking out from Github, create a new project from IntellijIdea as follows:
- Create a new project via File -> New -> Project from existing source
-
Select the git repository folder
-
Select Create project from existing source. If you do not want to have Idea project files within repository, adjust Project location to be outside the repository.
-
Select JDK of your choice. Version must be ≥ 8 because the standard jar files for jpos version 1.15 will be generated with version 8 as well.
-
Leave all other options unchanged, press Next and Finish.
-
- Adjust project structure via File -> Project Structure...
- Add the following libraries to module JavaPOS-SPF-Test:
- Jpos 1.16: As long as not officially available, add Jpos116Dummy.jar. It must be specified above jpos 1.15 to overwrite some classes.
- Jpos 1.15: javapos-1.15.1.jar
- Xerces 1.2.3: xerces-1.2.3.jar
- JavaFX 11: javafx-swt.jar, javafx.base.jar, javafx.controls.jar, javafx.fxml.jar, javafx.graphics.jar, javafx.media.jar, javafx.swing.jar, javafx.web.jar
- JavaPOS-SPF (if used for device service implementation): JavaPOS-SPF.jar
- Log4pos 1.0.2: Log4pos.jar
- Jar files used by device services to be tested, e.g. for sample present in jpos.xml: e.g. SampleCoinDispenser.jar
- To generate a jar file, add artifact via Add Artifacts -> jar -> From modules with dependencies:
- Main class: Main (SPF_Test),
- Select Copy to the output directory and link via manifest.
- The run configuration should be adjusted via Run or Debug -> Edit configurations:
- First, select Create new Application configuration,
- Main class: Main (SPF_Test),
- VM options: --module-path /lib --add-modules=javafx.controls,javafx.fxml,
- Working Directory: Should be outside the git repository.
-
Copy xpos.xml and jcl.dtd to working directory.
-
Run or Debug using just created configuration.