Skip to content

Commit 79a330e

Browse files
authored
Fix snap launcher config (JabRef#9269)
1 parent c20c390 commit 79a330e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/code-howtos/jpackage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Sometimes issues with modularity only arise in the installed version and do not
3131
3. Modify the `build\image\JabRef\runtime\bin\Jabref.bat` file, replace the last line with
3232

3333
```
34-
pushd %DIR% & %JAVA_EXEC% -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -p "%~dp0/../app" -m org.jabref/org.jabref.gui.JabRefLauncher %* & popd
34+
pushd %DIR% & %JAVA_EXEC% -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -p "%~dp0/../app" -m org.jabref/org.jabref.cli.Launcher %* & popd
3535
```
3636
4. Open your IDE and add a "Remote Debugging Configuration" for `localhost:8000`
3737
5. Start JabRef by running the above bat file

docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ Make sure your Eclipse installation us up to date.
218218
3. Open or import the existing project in Eclipse as Java project.
219219
* Remark: Importing it as gradle project will not work correctly.
220220
* Refresh the project in Eclipse
221-
4. Create a run/debug configuration for the main class `org.jabref.gui.JabRefLauncher` and/or for `org.jabref.gui.JabRefMain` (both can be used equivalently)
222-
* Remark: The run/debug configuration needs to be added by right clicking the class (e.g. JabRefLauncher or JabRefMain) otherwise it will not work.
221+
4. Create a run/debug configuration for the main class `org.jabref.cli.Launcher` and/or for `org.jabref.gui.JabRefMain` (both can be used equivalently)
222+
* Remark: The run/debug configuration needs to be added by right clicking the class (e.g. `Launcher` or JabRefMain) otherwise it will not work.
223223
224224
![Creating the run/debug configuration by right clicking on the class](<../images/eclipse-create-run-config.png>)
225225
* In the tab "Arguments" of the run/debug configuration, enter the following runtime VM arguments:
@@ -245,7 +245,7 @@ Make sure your Eclipse installation us up to date.
245245
```
246246
* In the tab "Dependencies" of the run/debug configuration tick the checkbox "Exclude test code"
247247
5. Optional: Install the [e(fx)clipse plugin](http://www.eclipse.org/efxclipse/index.html) from the Eclipse marketplace: 1. Help -> Eclipse Marketplace... -> Search tab 2. Enter "e(fx)clipse" in the search dialogue 3. Click "Go" 4. Click "Install" button next to the plugin 5. Click "Finish"
248-
6. Now you can build and run/debug the application by either using "JabRefLauncher" or "JabRefMain". This is the recommended way, since the application starts quite fast.
248+
6. Now you can build and run/debug the application by either using `Launcher` or `JabRefMain`. This is the recommended way, since the application starts quite fast.
249249
250250
### Localization Test Configuration (IDEA)
251251

snap/local/JabRef-launcher

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#! /bin/sh
22
DIR="$SNAP/lib/runtime/bin"
3-
"$DIR/java" -p "$DIR/../app" -m org.jabref/org.jabref.gui.JabRefLauncher "$@"
3+
"$DIR/java" -p "$DIR/../app" -m org.jabref/org.jabref.cli.Launcher "$@"

0 commit comments

Comments
 (0)