[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-kawa 506bf81 095/119: Add section about embedding k
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-kawa 506bf81 095/119: Add section about embedding kawa-geiser in a java application |
Date: |
Sun, 1 Aug 2021 18:30:45 -0400 (EDT) |
branch: elpa/geiser-kawa
commit 506bf81b6c3964faf42a3518601f19587e79d33e
Author: spellcard199 <spellcard199@protonmail.com>
Commit: spellcard199 <spellcard199@protonmail.com>
Add section about embedding kawa-geiser in a java application
---
README.org | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/README.org b/README.org
index d09cb93..d0c8321 100644
--- a/README.org
+++ b/README.org
@@ -162,6 +162,34 @@ displays them in a dedicated buffer."
Once you evaluate this elisp function, if you have an active Kawa repl
associated with the current buffer and use =M-x
my-geiser-kawa-list-all-classes=, after some seconds (there are many thousands
of classes) a list of classes will be displayed in a new buffer.
+** Adding java dependencies to Kawa / Embedding kawa-geiser in your java
application
+
+The easiest way is:
+1. Create a new maven project
+2. Add to the =pom.xml=:
+ - Your dependencies
+ - [[https://jitpack.io][Jitpack]] resolver:
+ : <repositories>
+ : <repository>
+ : <id>jitpack.io</id>
+ : <url>https://jitpack.io</url>
+ : </repository>
+ : </repositories>
+ - =kawa-geiser= dependency (you can replace =-SNAPSHOT= with commit SHA):
+ : <dependencies>
+ : <dependency>
+ : <groupId>com.gitlab.spellcard199</groupId>
+ : <artifactId>geiser-kawa</artifactId>
+ : <version>-SNAPSHOT</version>
+ : </dependency>
+ : </dependencies>
+3. Start a Kawa REPL from Java (should have all the dependencies included now):
+ : String[] kawaArgs = new String[]{"--server", "37146"};
+ : Scheme scheme = new Scheme();
+ : scheme.eval("(require <kawageiser.Geiser>)");
+ : scheme.runAsApplication(kawaArgs);
+4. Use the =geiser-connect= command from emacs and insert the port number we
specified in the previous step when prompted
+
** Difference from
[[https://gitlab.com/spellcard199/geiser-kawa-scheme][geiser-kawa-scheme]]
This project (geiser-kawa) is a translation/rewrite of
[[https://gitlab.com/spellcard199/geiser-kawa-scheme][geiser-kawa-scheme]],
which has been my first attempt at writing geiser-kawa. After
geiser-kawa-scheme confirmed me that a geiser-kawa implementation was possible
I decided to rewrite the Kawa side using Kawa's Java API, for the several
reasons:
- [nongnu] elpa/geiser-kawa e440789 058/119: Add optional arg to function checking for jar file, (continued)
- [nongnu] elpa/geiser-kawa e440789 058/119: Add optional arg to function checking for jar file, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 45dc276 060/119: Fix and set pretty print default to true, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa f9149a7 074/119: Move elisp tests under the elisp directory, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa e349b4b 079/119: Refactor+Fix+Style: many changes in preparation for melpa submission., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa ca594ec 075/119: Refactor: rename some functions, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 32c0359 085/119: Update kawa-devutil version, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa c1f9e3f 087/119: Fix unsupported add to gnu.lists.EmptyList, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 1e15f01 091/119: Refactor 'geiser-kawa-util--eval...' + related fixes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa e864cf6 108/119: Fix docstring wording, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 46ab237 102/119: melpa/melpa#6858 - Replace license boilerplates with SPDX-License-Identifier, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 506bf81 095/119: Add section about embedding kawa-geiser in a java application,
Philip Kaludercic <=
- [nongnu] elpa/geiser-kawa 322a40f 093/119: README.org: add heading about manual lookup, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 6009d95 100/119: Rename test-geiser-kawa.el to geiser-kawa-test.el + fix flycheck issues, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa cd39deb 116/119: Update geiser version in Package-Requires, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 989485b 118/119: README.org - update instructions with new geiser-kawa's repo, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 3d999a3 119/119: README.org - update Geiser's repo url after new repo, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 02cd922 046/119: Add workaround to free port when a Kawa server is already using it through ssocket.close(), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 0d86c7b 048/119: Add java package completion caching at module load time, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 6ff146d 077/119: pom.xml: update kawa-devutil version, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa e63a8b4 088/119: Improve message when manual is not found., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 47f195f 094/119: README.org: add heading about extending geiser-kawa, Philip Kaludercic, 2021/08/01