Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Building NetXMS Console

Building NetXMS Console

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 27.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    S
    Sch.Donat
    wrote on last edited by
    #1

    Hi!

    I'm trying to build the NetXMS Console without success. I'm following the wiki (https://wiki.netxms.org/wiki/How_to_setup_Eclipse/RAP), I tried with eclipse 4.15 and 4.16 (even 4.11) on linux. I get the following error:

    /home/**********/Projects/workspace-4.16_3.2/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.linux.gtk.x86_64.xml:90: The following error occurred while executing this line:
    /home/**********/Projects/workspace-4.16_3.2/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.linux.gtk.x86_64.xml:2624: The following error occurred while executing this line:
    /home/**********/Downloads/eclipse-4.16/plugins/org.eclipse.pde.build_3.10.800.v20200410-1419/scripts/genericTargets.xml:241: A problem occured while invoking the director.
    The following error occurred while executing this line:
    /home/**********/Projects/workspace-4.16_3.2/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.linux.gtk.x86_64.xml:2624: The following error occurred while executing this line:
    /home/**********/Downloads/eclipse-4.16/plugins/org.eclipse.pde.build_3.10.800.v20200410-1419/scripts/genericTargets.xml:241: A problem occured while invoking the director.
    

    After some searching I enabled logging in genericTargets.xml, which gives me the following:

    Property "p2.director.log" has not been set
    [p2.director] Installing org.netxms.ui.eclipse.console.product 3.4.0.
    [p2.director] Installation failed.
    [p2.director] Cannot complete the install because one or more required items could not be found.
    [p2.director] 	Software being installed: org.netxms.ui.eclipse.console.product 3.4.0
    [p2.director] 	Missing requirement: Graphical Editing Framework Zest Core 2.0.7 (org.netxms.gef4.zest.core 2.0.7) requires 'osgi.bundle; org.eclipse.rap.rwt 3.4.0' but it could not be found
    [p2.director] 	Cannot satisfy dependency:
    [p2.director] 		From: org.netxms.ui.eclipse.console.product 3.4.0
    [p2.director] 		To: org.eclipse.equinox.p2.iu; org.netxms.gef4.zest.core [2.0.7,2.0.7]
    [p2.director] Cannot complete the install because one or more required items could not be found.
    [p2.director] Software being installed: org.netxms.ui.eclipse.console.product 3.4.0
    [p2.director] Missing requirement: Graphical Editing Framework Zest Core 2.0.7 (org.netxms.gef4.zest.core 2.0.7) requires 'osgi.bundle; org.eclipse.rap.rwt 3.4.0' but it could not be found
    [p2.director] Cannot satisfy dependency:
    A problem occured while invoking the director.
    runDirector:  duration 0 seconds
    

    The missing bundle is provided by RAP 3.12 software, so it shouldn't be missing.

    Any help, or tips how to solve this would be much appretiated.

    Regards

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      Hi!

      Management console build is currently done using maven. Eclipse is used for running console during development, but not for preparing builds.
      The following commands should be run in project's folder to build desktop version:

      export PATH=/opt/apache-maven-3.6.2/bin:$PATH

      jenv local 11.0                                                                           

      mvn -f src/java/netxms-eclipse/pom.xml -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:update-pom -Pconsole

      mvn -f src/java/netxms-eclipse/pom.xml clean package -Pconsole -Dtycho.disableP2Mirrors=true

      Builds will be in src/java/netxms-eclipse/Product/target/products/

      1 Reply Last reply
      0
      • S
        S
        Sch.Donat
        wrote on last edited by
        #3

        Hi!

        Thanks for the reply! I tried your instruction (I don't have jenv, so I skipped that, but I'm using openjdk version 11.0.7). org.netxms.ui.eclipse.charts 3.4.0 fails to build with a lot of error messages like this: The import org.swtchart.ISeries cannot be resolvedbut swtchart 0.7.15 builds successfully and is a required bundle in the MANIFEST.MF file. I tried installing swtchart into local maven repo, but that didn't help. I don't know what am I missing.

        Regards

        1 Reply Last reply
        0
        • S
          S
          Sch.Donat
          wrote on last edited by
          #4

          Hi!

          I was able to package the stable 3.2 version (which is what I need for the moment) on Windows with your instructions. I haven't tried 3.4 yet.
          Is there a difference between Linux and Windows maven? Or maybe openjdk is not good in this case.

          Either way, thanks for your help! And I realized that this question was duplicate (don't why I couldn't find the other one earlier), sorry about that.

          Regards

          1 Reply Last reply
          0
          • F
            F
            Filipp Sudanov
            wrote on last edited by
            #5

            There should be no difference in maven or java vs openjdk.

            1 Reply Last reply
            0
            • S
              S
              Sch.Donat
              wrote on last edited by
              #6

              I successfully packaged it on Linux as well (I had to remove the .m2 repo from my home dir).

              But I have another problem: I added a few lines to the about text part in src\java\netxms-eclipse\Product\nxmc.product file, but it doesn't show up in the console after I run maven. If I change the version in src\java\netxms-eclipse\Product\nxmc.product file, in first maven command it shows the new version, but in the second maven command it's the old version again (and it's gotten changed back in pom file as well). I'm guessing maven cached it somewhere, but deleting the .m2 directory in my home didn't have.

              I don't what am I doing wrong, I'm guessing there are other maven caches?

              1 Reply Last reply
              0
              • S
                S
                Sch.Donat
                wrote on last edited by
                #7

                I figured out. I had to edit the src/java/netxms-eclipse/Core/plugin.xml file (the aboutText property).

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups