Skip to content

Commit

Permalink
Add instructions on SDKMAN with Eclipse
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jun 22, 2020
1 parent e0017f5 commit 56d14bd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/dev/dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,18 @@ Change directory into the :file:`spoofax-releng` repository and run:

.. code:: bash
./b gen-spoofax -l -d ~/eclipse/spoofax-dev
./b gen-spoofax -l -d ~/eclipse/spoofax-dev
This will download and install Eclipse into :file:`~/eclipse/spoofax-dev` with the right plugins and :file:`eclipse.ini` for Spoofax development. The locally built version of the Spoofax plugin will be installed into that Eclipse. Generating an Eclipse installation can take several minutes. After it's done generating, open the Eclipse installation and confirm that it works by creating a Spoofax project.

.. note:: |macOS| macOS: If upon starting Eclipse you get the error *To open "Eclipse" you need to install the legacy Java SE 6 runtime*, then you should install a Java JDK 6 or newer for Eclipse to use. If you installed one through `SDKMAN! <https://sdkman.io/>`_ then you have to point Eclipse to it. To do this, edit the ``Contents/Eclipse/eclipse.ini`` file in the Eclipse application package content. Add the following lines just before the ``-vmargs`` argument, where ``<USERNAME>`` is your username:

.. code:: bash
-vm
/Users/<USERNAME>/.sdkman/candidates/java/current/jre/lib/jli/libjli.dylib
Fixing Eclipse settings
~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 56d14bd

Please sign in to comment.