• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    Settings and Preferences for Eclipse IDE for JAVA Developers (Luna)

    scheduled pinned locked moved Developers Zone
    ideeclipsejava
    12 posts 3 posters 11.5k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • G offline
      gbrd
      global:last-edited-by,

      It seems that lombok is needed too.
      I did not succeed in installing it on eclipse mars for now.

      jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
      • jkandasaJ offline
        jkandasa @gbrd
        global:last-edited-by,

        @gbrd
        Yes, we need to install lombok in eclipse. Thank you for this. I have added tutorial video how to install lombok in eclipse.

        G one-reply-to-this-post last-reply-time reply quote 0
        • G offline
          gbrd @jkandasa
          global:last-edited-by,

          @jkandasa ok clean project in eclipse mars seems enough to make it work.

          http://stackoverflow.com/questions/31297342/lombok-not-working-in-eclipse-mars

          one-reply-to-this-post last-reply-time reply quote 1
          • F offline
            Fraid
            global:last-edited-by, Fraid

            @jkandasa I have a some issue installing the project.
            I’m using mac os 10.10.5, eclipse neon , lombok 1.16.12 and java 8.

            I can build from maven without issue, but eclipse still show me error about :

            *APPLICATION_JSON cannot be resolved to a variable AuthenticationHandler.java /mycontroller/modules/core/src/main/java/org/mycontroller/standalone/api/jaxrs line 48 Java Problem

            ALLOW_ANONYMOUS_PROPERTY_NAME cannot be resolved to a variable BrokerConfiguration.java /mycontroller/modules/core/src/main/java/org/mycontroller/standalone/mqttbroker line 67 Java Problem

            ClientResponse cannot be resolved to a type PushbulletUtils.java /mycontroller/modules/core/src/main/java/org/mycontroller/standalone/operation line 110 Java Problem

            ConnectionSource cannot be resolved to a type DataBaseUtils.java /mycontroller/modules/core/src/main/java/org/mycontroller/standalone/db line 63 Java Problem*

            Annotation @Slf4j also show in red. I thought at first it’s because of lombok but it’s actually installed (I can see it from about eclipse). But I created a simple test project, I can use lombok with annotation « @data » and @Slf4j without red warning.

            I also switch to lombok 1.16.10 and eclipse luna but no luck.

            Any idea what I missing, what is your project configuration eclipse, lombok version ?

            jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
            • jkandasaJ offline
              jkandasa @Fraid
              global:last-edited-by,

              @Fraid I never worked with MAC. However, the eclipse will be common on all platforms.

              Can you try to build as eclipse project via maven by executing the following command? And import as Existing project in to workspace

              git clone https://github.com/mycontroller-org/mycontroller
              cd mycontroller/
              mvn eclipse:eclipse
              
              one-reply-to-this-post last-reply-time reply quote 0
              • F offline
                Fraid
                global:last-edited-by,

                Same issue, Build SUCCESS, no warning either but eclipse still showing red warning.

                one-reply-to-this-post last-reply-time reply quote 0
                • F offline
                  Fraid
                  global:last-edited-by,

                  Not sure what happen, I previously has other project on maven, maybe there was some conflict.

                  I make it work now, by reinstalling/downloading everything from scratch (workspace deleted, m2 repo was also removed) then I run "mvn eclipse:eclipse", open eclipse.
                  Import maven project and worked now.

                  one-reply-to-this-post last-reply-time reply quote 1
                  • F offline
                    Fraid
                    global:last-edited-by,

                    I think there is an issue with the Copyright settings.
                    When you create a new class, select "generate comments", the generated copyright will start like :
                    " Copyright 2016 Jeeva Kandasamy (jkandasa@gma...."

                    while maven license will check for header starting with:
                    "Copyright 2015-2016 Jeeva Kandasamy (jkandasa@gma...".
                    The build will failed.

                    Also formating code doesn't work as expected.
                    In GatewayUtils.java class for exemple, formating goes from the following :


                    SERIAL("Serial"),
                    ETHERNET("Ethernet"),
                    MQTT("MQTT"),
                    PHANT_IO("Sparkfun [phant.io]"),
                    PHILIPS_HUE("Philips Hue");
                    

                    to this:


                    SERIAL("Serial"), ETHERNET("Ethernet"), MQTT("MQTT"), PHANT_IO("Sparkfun [phant.io]"), PHILIPS_HUE("Philips Hue");
                    

                    jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
                    • jkandasaJ offline
                      jkandasa @Fraid
                      global:last-edited-by,

                      @Fraid Have you imported all the 4 files mentioned on main section for eclipse?

                      To add license file use the following command

                      mvn license:format
                      
                      F one-reply-to-this-post last-reply-time reply quote 0
                      • F offline
                        Fraid @jkandasa
                        global:last-edited-by,

                        @jkandasa Yes I did over four time. Formatter and CleanUp section as for profile "MyController.org".
                        I'm using mac with Eclipse Helios.

                        jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
                        • jkandasaJ offline
                          jkandasa @Fraid
                          global:last-edited-by,

                          @Fraid I am using Eclipse Luna. Let me try with Helios.

                          one-reply-to-this-post last-reply-time reply quote 0
                          • first-post
                            last-post

                          0

                          online

                          644

                          users

                          532

                          topics

                          3.4k

                          posts
                          Copyright © 2015-2025 MyController.org | Contributors | Localization