Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
PRJ-596 Actualize info about embedding Projector Server to a custom app
Browse files Browse the repository at this point in the history
  • Loading branch information
SerVB authored and Avvessalom committed May 5, 2022
1 parent 93ea76b commit a42a4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Also, you can find this example in [projector-docker](https://github.com/JetBrai
### Modifying your application code
Using this way, you can add a custom condition to start the server.

Add a dependency to the `projector-server` project to your app. In the **beginning** of your `main`, decide if you want to run the app headlessly. If yes, invoke `System.setProperty("org.jetbrains.projector.server.enable", "true")` and call the `startServer` method of the `HeadlessServer`.
Add a dependency to the `projector-server` project to your app. In the **beginning** of your `main`, decide if you want to run the app headlessly. If yes, invoke `System.setProperty("org.jetbrains.projector.server.enable", "true")` and call the `runProjectorServer` method of the `ProjectorLauncher`.

When you go this way, ensure that no AWT nor Swing operations are performed before the initialization of the server. Such operations can cause some lazy operations of AWT happen and our server doesn't support that.

Expand Down

0 comments on commit a42a4c9

Please sign in to comment.