diff --git a/Sd1/Ref/Fig/eclipseDependBluej.png b/Sd1/Ref/Fig/eclipseDependBluej.png deleted file mode 100644 index 472e2a19609433df5ae32b3d6774236e1e351314..0000000000000000000000000000000000000000 Binary files a/Sd1/Ref/Fig/eclipseDependBluej.png and /dev/null differ diff --git a/Sd1/Ref/Fig/eclipseDependGreenfoot.png b/Sd1/Ref/Fig/eclipseDependGreenfoot.png deleted file mode 100644 index 28f6a41a36d07301af0176d469ccf046bf06efb3..0000000000000000000000000000000000000000 Binary files a/Sd1/Ref/Fig/eclipseDependGreenfoot.png and /dev/null differ diff --git a/Sd1/swd1.xml b/Sd1/swd1.xml index 634a8dbb8ec5d5b631901c82e03ec001bb452ec2..29026bbb806f26c6356199d611e3eac4a67129ec 100644 --- a/Sd1/swd1.xml +++ b/Sd1/swd1.xml @@ -6149,82 +6149,57 @@ values newArray | 1| 2| F| 7| 9| | ...</programlisting> <para>Actually your Java game code uses the <productname>Greenfoot</productname> runtime which in turn uses another framework called <productname - xlink:href="http://www.bluej.org">blueJ</productname>. Thus Eclipse - development requires actually three projects within a common - workspace:</para> + xlink:href="http://www.bluej.org">blueJ</productname>. If you want + to use Eclipse for actual development you have to provide both Bluej + and Greenfoot to your project. This may be achieved by:</para> <glosslist> <glossentry> - <glossterm>Bluej</glossterm> + <glossterm>Locally install <xref linkend="glo_BlueJ"/> + dependencies</glossterm> <glossdef> - <para>Unzip <filename - xlink:href="https://cloud.mi.hdm-stuttgart.de/owncloud/public.php?service=files&t=3485f848eb9579e9e1ed9a105f997523">bluej.zip</filename> - to a subfolder <filename>Bluej</filename>. Then import this - subfolder as a regular Java project into eclipse.</para> - - <caution> - <para>Depending on your <productname>Jdk</productname> being - installed you may encounter broken dependencies related to - <filename>/usr/lib/jvm/java-8-oracle/lib/tools.jar</filename>. - You have to adjust your Java build path in the libraries - tab.</para> - </caution> + <para>Download <uri + xlink:href="http://www.mi.hdm-stuttgart.de/freedocs/topic/de.hdm_stuttgart.mi.swd1/Ref/api/P/Maven/bluej/eclipse.zip">http://www.mi.hdm-stuttgart.de/freedocs/topic/de.hdm_stuttgart.mi.swd1/Ref/api/P/Maven/bluej/eclipse.zip</uri> + and unzip it to a subfolder <filename>Bluej</filename>. Import + this Folder as a Maven project into Eclipse and right click on + pom.xml choosing <guisubmenu>mvn install</guisubmenu>. This + will install Bluej into your local Maven repository below + <filename>yourHomeDirPath/.m2</filename>.</para> </glossdef> </glossentry> <glossentry> - <glossterm>Greenfoot</glossterm> + <glossterm>Locally install <xref linkend="glo_Greenfoot"/> + dependencies</glossterm> <glossdef> - <para>Unzip <filename - xlink:href="https://cloud.mi.hdm-stuttgart.de/owncloud/public.php?service=files&t=279dfd84442e1ad059b2985886a02b1a">greenfoot.zip</filename> - thereby creating a subfolder <filename>Greenfoot</filename>. - Import this subfolder as a <productname>Java</productname> - Project into eclipse.</para> - - <para>In case you do encounter problems add the project - <productname>Bluej</productname> from the previous step to the - Java build path:</para> - - <screenshot> - <info> - <title>Adding <productname>Bluej</productname> project - dependency to - <productname>Greenfoot</productname>.</title> - </info> - - <mediaobject> - <imageobject> - <imagedata fileref="Ref/Fig/eclipseDependBluej.png"/> - </imageobject> - </mediaobject> - </screenshot> + <para>Repeat the previous step for <uri + xlink:href="http://www.mi.hdm-stuttgart.de/freedocs/topic/de.hdm_stuttgart.mi.swd1/Ref/api/P/Maven/greenfoot/eclipse.zip">http://www.mi.hdm-stuttgart.de/freedocs/topic/de.hdm_stuttgart.mi.swd1/Ref/api/P/Maven/greenfoot/eclipse.zip</uri> + using a subfolder <filename>Greenfoot</filename>.</para> </glossdef> </glossentry> <glossentry> - <glossterm>Your own <productname>Greenfoot</productname> game - project</glossterm> + <glossterm>Open your own <productname>Greenfoot</productname> + game project</glossterm> <glossdef> - <para>You may now create your own Java or Maven Eclipse - project and in turn add the previously imported - <productname>Greenfoot</productname> project to your - <productname>Java</productname> build path:</para> + <para>You may now create your own <xref + linkend="glo_Greenfoot"/> Maven <xref linkend="glo_Eclipse"/> + project by adding the newly created <xref + linkend="glo_Greenfoot"/> Maven artifact as a project + dependency:</para> - <screenshot> - <info> - <title>Adding project <productname>Greenfoot</productname> - to your Java build path's project dependencies</title> - </info> - - <mediaobject> - <imageobject> - <imagedata fileref="Ref/Fig/eclipseDependGreenfoot.png"/> - </imageobject> - </mediaobject> - </screenshot> + <programlisting language="none">... + <dependencies> + ... + <dependency> + <groupId>de.hdm-stuttgart.mi</groupId> + <artifactId>greenfoot</artifactId> + <version>2.3.0</version> + </dependency> + </dependencies>...</programlisting> <para>Due to <productname>Greenfoot</productname>'s simplicity and in contrast to common Java practice you'll off course have @@ -6238,7 +6213,7 @@ values newArray | 1| 2| F| 7| 9| | ...</programlisting> <productname>Greenfoot</productname> environment</glossterm> <glossdef> - <para>As soon as you want to run your game simply copy all + <para>As soon as you actually want to run your game copy all Java files from your eclipse project to your <productname>Greenfoot</productname> environment. A graphical file manager might assist you or you may simply use shell diff --git a/glossary.xml b/glossary.xml index cd421153667e7428303f037c8d8d2c4c8dc983ac..d2efae2437238bcf04a7006962a771be702a7ee5 100644 --- a/glossary.xml +++ b/glossary.xml @@ -26,6 +26,15 @@ </glossdef> </glossentry> + <glossentry xml:id="glo_BlueJ"> + <glossterm>BjueJ</glossterm> + + <glossdef> + <para><link xlink:href="http://www.bluej.org">Java Development + Environment for beginners</link></para> + </glossdef> + </glossentry> + <glossentry xml:id="glo_CSV"> <glossterm><acronym>CSV</acronym></glossterm> @@ -75,6 +84,15 @@ </glossdef> </glossentry> + <glossentry xml:id="glo_Eclipse"> + <glossterm>Eclipse</glossterm> + + <glossdef> + <para>Professional Java <xref linkend="glo_IDE"/> available from <link + xlink:href="http://eclipse.org">eclipse.org</link>.</para> + </glossdef> + </glossentry> + <glossentry xml:id="glo_EBNF"> <glossterm><acronym>EBNF</acronym></glossterm> @@ -114,6 +132,15 @@ </glossdef> </glossentry> + <glossentry xml:id="glo_Greenfoot"> + <glossterm><acronym>Greenfoot</acronym></glossterm> + + <glossdef> + <para><link xlink:href="???">Teach and learn Java + programming</link>.</para> + </glossdef> + </glossentry> + <glossentry xml:id="glo_GUI"> <glossterm><acronym>GUI</acronym></glossterm> @@ -297,6 +324,15 @@ </glossdef> </glossentry> + <glossentry xml:id="glo_Maven"> + <glossterm>Maven</glossterm> + + <glossdef> + <para><link xlink:href="http://maven.apache.org">Software project + management and comprehension tool</link></para> + </glossdef> + </glossentry> + <glossentry xml:id="glo_MIB"> <glossterm><orgname>MIB</orgname></glossterm> @@ -335,6 +371,16 @@ </glossdef> </glossentry> + <glossentry> + <glossterm xml:id="glo_pom.xml">pom.xml</glossterm> + + <glossdef> + <para><link xlink:href="http://maven.apache.org">project object + model</link> file describing a <xref linkend="glo_Maven"/> + project</para> + </glossdef> + </glossentry> + <glossentry xml:id="glo_RelaxNG"> <glossterm><acronym>RelaxNG</acronym></glossterm>