{"id":338,"date":"2014-05-20T10:05:29","date_gmt":"2014-05-20T09:05:29","guid":{"rendered":"https:\/\/www.thobaben.ch\/moba\/?p=338"},"modified":"2014-05-20T10:45:16","modified_gmt":"2014-05-20T09:45:16","slug":"a-very-basic-setup-guide-for-compiling-elekdra-from-sources","status":"publish","type":"post","link":"https:\/\/www.thobaben.ch\/moba\/?p=338","title":{"rendered":"EN &#8211; A very basic Setup Guide for compiling Elekdra from Sources"},"content":{"rendered":"<div class=\"markdown_content\">\n<p>Hi Everyone<\/p>\n<p>This page is basically identical with the SourceForge Page &#8220;<a href=\"https:\/\/sourceforge.net\/p\/fremo-stw\/wiki\/A%20very%20basic%20Setup%20Guide%20for%20compiling%20Elekdra%20from%20Sources\/#md_ex_img\" target=\"_blank\">A very basic Setup Guide for compiling Elekdra from Source<\/a>s &#8221; &#8211; only a bit better formatted. The functionality of the Sourceforge Wiki is relativly poor&#8230;<br \/>\nI will write this in English because of the &#8220;E&#8221; in Fremo ;o) !!!<br \/>\nPlease keep in mind, that all steps will be done by you at your own risk &#8211; I am not responsible if you mess up anything on you Computer!<br \/>\nHave Fun!<\/p>\n<p>Steps to perform to reproduce a successfull elekdra build:<br \/>\n<strong>1) Download NetBeans IDE (actual Version 8.0) and install it.<\/strong><br \/>\n<a href=\"https:\/\/netbeans.org\/downloads\/\" rel=\"nofollow\">https:\/\/netbeans.org\/downloads\/<\/a><br \/>\nI choosed the smalest Java SE Version.<br \/>\n<strong>2) You will need a Java JDK (you could also use the bundle NetBeans plus JAVA)<\/strong><br \/>\n<a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html\" rel=\"nofollow\">http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html<\/a><br \/>\nI used the 32bit Version for Windows on my 64Bit Windows 7 Notebook.<\/p>\n<p>These are the &#8220;Needs&#8221; before the next steps.<br \/>\n<strong>3) Use a CVS Client ( <a href=\"http:\/\/www.tortoisecvs.org\/download.shtml\" rel=\"nofollow\">http:\/\/www.tortoisecvs.org\/download.shtml<\/a>) of your choice to download the sources<\/strong> of elekdra or the possibility to get the whole package as TAR (kind of ZIP) File from the Sourceforge Website ( <a href=\"http:\/\/fremo-stw.cvs.sourceforge.net\/viewvc\/fremo-stw\/software\/?view=tar\">http:\/\/fremo-stw.cvs.sourceforge.net\/viewvc\/fremo-stw\/software\/?view=tar<\/a> )<br \/>\nTAR is from the UNIX World. You can use 7ZIP to open and unpack.<\/p>\n<p>I placed everthing under &#8220;C:\\FremoDev\\software&#8221; on my local machine &#8211; If you choose different directories please adopt all pathes according your needs&#8230; .<\/p>\n<p><strong>4) Now it is time to start NetBeans.<\/strong> You will get a nice splash screen. You can close this Tab. To create a new Project from existing (elekdra) sources please go to:<br \/>\nFile Menu &gt;&gt;&gt; New Project<br \/>\nA window pops up.<br \/>\nJava as Categorie is preselected. Choose on the right in the tree &#8220;Java Project with Existing Sources&#8221;.<br \/>\nChoose NEXT Button<br \/>\nFor the Project Name choose &#8220;elekdra&#8221; &#8211; For the Project Folder please choose (in my case)<br \/>\nC:\\FremoDev\\software\\elekdra (go NOT into SRC or TEST)<br \/>\nChoose NEXT Button<br \/>\nFor Source Packages choose: C:\\FremoDev\\software\\elekdra\\src<br \/>\nFor Test Packages choose: C:\\FremoDev\\software\\elekdra\\test<br \/>\nPress FINISH Button<\/p>\n<p>Than NetBeans IDE begins to digest the Soruces &#8211; you will end up with lots errors indicated by lots of red overlay Icons on top of your packages.<br \/>\n<strong>5) To clean up this errors you need to download Stefans Locnet Library and unpack it somewhere:<\/strong><br \/>\nC:\\FremoDev\\software\\loconetovertcp-svn-153-javaclients-LocoNetLibrary-trunk<br \/>\n<strong>6) Than you need to copy some JAR Files from your existing ELEKDRA installation.<\/strong> I created a &#8220;LIB&#8221; Folder for all these files.<br \/>\nMine (C:\\FremoDev\\software\\lib) contains:<br \/>\n16.04.2014 09:20 489&#8217;884 log4j-1.2.17.jar<br \/>\n23.02.2014 18:55 59&#8217;464 RXTXcomm.jar<br \/>\n23.02.2014 18:55 24&#8217;956 xpp3_min-1.1.4c.jar<br \/>\n16.04.2014 09:38 431&#8217;406 xstream-1.3.1.jar<br \/>\n7) Now you must make NetBeans aware of the sources&#8230; .<br \/>\nTo do so please select the &#8220;elekdra&#8221; Project on the left side view in the Projects Tab. Than click the Right Mouse Button and choose Properties (last option).<br \/>\nAnother Window pops up.<br \/>\nFist Select the Sources option. Than add the following folder:<br \/>\nC:\\FremoDev\\software\\loconetovertcp-svn-153-javaclients-LocoNetLibrary-trunk\\src<br \/>\nC:\\FremoDev\\software\\ElekdraTypesLibrary\\src<br \/>\nC:\\FremoDev\\software\\ZNF800Library\\src<br \/>\nC:\\FremoDev\\software\\ConfigurationLoadLibrary\\src<br \/>\nC:\\FremoDev\\software\\ElekdraBlockLibrary\\src<br \/>\nC:\\FremoDev\\software\\ElekdraUserInterfaceLibrary\\src<br \/>\nC:\\FremoDev\\software\\DataStoreLibrary\\src<\/p>\n<p>Than switch to the Library Option and add<br \/>\n..lib\/log4j-1.2.17.jar<br \/>\n..lib\/RXTXcomm.jar<br \/>\n..lib\/xpp3_min-1.1.4c.jar<br \/>\n..lib\/xstream-1.3.1.jar<\/p>\n<p>Choose the OK Button. NetBean IDE re-digest all the sources and now the errors and red overlay Icons should disapear. Only in TestPackages some will be left over.<\/p>\n<p><strong>8) Now the BIG Moment comes &#8211; Hit the &#8220;HAMMER&#8221; Icon or F11 &#8211;<\/strong> NetBeans should build your elecdra.jar file underneath C:\\FremoDev\\software\\elekdra\\build<\/p>\n<p>On my machine this took 9 Seconds.<br \/>\nMy result after the first attempt for documentation was:<\/p>\n<p>Created dir: C:\\FremoDev\\software\\elekdra\\build<br \/>\nUpdating property file: C:\\FremoDev\\software\\elekdra\\build\\built-jar.properties<br \/>\nCreated dir: C:\\FremoDev\\software\\elekdra\\build\\classes<br \/>\nCreated dir: C:\\FremoDev\\software\\elekdra\\build\\empty<br \/>\nCreated dir: C:\\FremoDev\\software\\elekdra\\build\\generated-sources\\ap-source-output<br \/>\nCompiling 403 source files to C:\\FremoDev\\software\\elekdra\\build\\classes<br \/>\nC:\\FremoDev\\software\\ElekdraBlockLibrary\\src\\elekdraBlock\\AbstractBlock.java:13: warning: NotImplementedException is internal proprietary API and may be removed in a future release<br \/>\nimport sun.reflect.generics.reflectiveObjects.NotImplementedException;<br \/>\nC:\\FremoDev\\software\\ElekdraBlockLibrary\\src\\elekdraBlock\\AbstractBlock.java:125: warning: NotImplementedException is internal proprietary API and may be removed in a future release<br \/>\nthrow new NotImplementedException();<br \/>\nNote: C:\\FremoDev\\software\\ZNF800Library\\src\\znf800\\icu\\InputControlUnit.java uses or overrides a deprecated API.<br \/>\nNote: Recompile with -Xlint:deprecation for details.<br \/>\nNote: Some input files use unchecked or unsafe operations.<br \/>\nNote: Recompile with -Xlint:unchecked for details.<br \/>\n2 warnings<br \/>\nCopying 30 files to C:\\FremoDev\\software\\elekdra\\build\\classes<br \/>\ncompile:<br \/>\nCreated dir: C:\\FremoDev\\software\\elekdra\\dist<br \/>\nCopying 1 file to C:\\FremoDev\\software\\elekdra\\build<br \/>\nCopy libraries to C:\\FremoDev\\software\\elekdra\\dist\\lib.<br \/>\nBuilding jar: C:\\FremoDev\\software\\elekdra\\dist\\elekdra.jar<br \/>\nTo run this application from the command line without Ant, try:<br \/>\njava -jar &#8220;C:\\FremoDev\\software\\elekdra\\dist\\elekdra.jar&#8221;<br \/>\njar:<br \/>\nBUILD SUCCESSFUL (total time: 9 seconds)<\/p>\n<p><strong>9) I dublicated my existing elekdra folder form Thomas\/Stefans distribution and copied my &#8220;new&#8221; JAR over the dublicated Folder<\/strong>. Than I adopted my startup-batch and Version 10.1.0 starts with Felix Rufwil Files.<\/p>\n<p>THANKS Felix for RUFWIL and Stefan for the Hints needed.<\/p>\n<p>A BETTER Version of this Kick-Start Guide needs to be done with Screenshots. Could someone explain me the wiki &#8211; how to upload Images? Thxs.<\/p>\n<p>Best Regards,<br \/>\nAxel<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hi Everyone This page is basically identical with the SourceForge Page &#8220;A very basic Setup Guide for compiling Elekdra from Sources &#8221; &#8211; only a bit better formatted. The functionality of the Sourceforge Wiki is relativly poor&#8230; I will write this in English because of the &#8220;E&#8221; in Fremo ;o)\u2026<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/www.thobaben.ch\/moba\/?p=338\">Continue reading<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[24,25],"tags":[50],"class_list":["post-338","post","type-post","status-publish","format-standard","hentry","category-elekdra_elui","category-english","tag-english"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4DFKc-5s","_links":{"self":[{"href":"https:\/\/www.thobaben.ch\/moba\/index.php?rest_route=\/wp\/v2\/posts\/338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thobaben.ch\/moba\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thobaben.ch\/moba\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thobaben.ch\/moba\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thobaben.ch\/moba\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=338"}],"version-history":[{"count":2,"href":"https:\/\/www.thobaben.ch\/moba\/index.php?rest_route=\/wp\/v2\/posts\/338\/revisions"}],"predecessor-version":[{"id":361,"href":"https:\/\/www.thobaben.ch\/moba\/index.php?rest_route=\/wp\/v2\/posts\/338\/revisions\/361"}],"wp:attachment":[{"href":"https:\/\/www.thobaben.ch\/moba\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thobaben.ch\/moba\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thobaben.ch\/moba\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}