Need help with CLASSPATH I think











up vote
0
down vote

favorite












I'm trying to build the open source application found at: https://github.com/linklayer/cantact-app



I've installed netbeans and gotten to the point that I can create a new project. I got help doing this via Netbeans installed via APT opens but then closes, "java.lang.NoClassDefFoundError"



Now I'm still at a loss for how to set CLASSPATH in order to get the "ant build" command to work for cantact-app. When I look at ~/.netbeans/8.2/var/log/messages.log, I don't see an actual "CLASSPATH". Instead, I see a "Boot & Ext. Classpath", a "Application Classpath", and a "Startup Classpath". Well I took the value of "Application Classpath" and did an "export CLASSPATH=..." for that long path. Now, "ant build" still gets a "BUILD FAILED" with message "Cannot find NetBeans build harness. Check that nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir are defined..."










share|improve this question


























    up vote
    0
    down vote

    favorite












    I'm trying to build the open source application found at: https://github.com/linklayer/cantact-app



    I've installed netbeans and gotten to the point that I can create a new project. I got help doing this via Netbeans installed via APT opens but then closes, "java.lang.NoClassDefFoundError"



    Now I'm still at a loss for how to set CLASSPATH in order to get the "ant build" command to work for cantact-app. When I look at ~/.netbeans/8.2/var/log/messages.log, I don't see an actual "CLASSPATH". Instead, I see a "Boot & Ext. Classpath", a "Application Classpath", and a "Startup Classpath". Well I took the value of "Application Classpath" and did an "export CLASSPATH=..." for that long path. Now, "ant build" still gets a "BUILD FAILED" with message "Cannot find NetBeans build harness. Check that nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir are defined..."










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm trying to build the open source application found at: https://github.com/linklayer/cantact-app



      I've installed netbeans and gotten to the point that I can create a new project. I got help doing this via Netbeans installed via APT opens but then closes, "java.lang.NoClassDefFoundError"



      Now I'm still at a loss for how to set CLASSPATH in order to get the "ant build" command to work for cantact-app. When I look at ~/.netbeans/8.2/var/log/messages.log, I don't see an actual "CLASSPATH". Instead, I see a "Boot & Ext. Classpath", a "Application Classpath", and a "Startup Classpath". Well I took the value of "Application Classpath" and did an "export CLASSPATH=..." for that long path. Now, "ant build" still gets a "BUILD FAILED" with message "Cannot find NetBeans build harness. Check that nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir are defined..."










      share|improve this question













      I'm trying to build the open source application found at: https://github.com/linklayer/cantact-app



      I've installed netbeans and gotten to the point that I can create a new project. I got help doing this via Netbeans installed via APT opens but then closes, "java.lang.NoClassDefFoundError"



      Now I'm still at a loss for how to set CLASSPATH in order to get the "ant build" command to work for cantact-app. When I look at ~/.netbeans/8.2/var/log/messages.log, I don't see an actual "CLASSPATH". Instead, I see a "Boot & Ext. Classpath", a "Application Classpath", and a "Startup Classpath". Well I took the value of "Application Classpath" and did an "export CLASSPATH=..." for that long path. Now, "ant build" still gets a "BUILD FAILED" with message "Cannot find NetBeans build harness. Check that nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir are defined..."







      java netbeans






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 18 at 14:30









      Dr.Lightning

      11




      11






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Synopsis



          Netbeans have invalid values set for nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir. You can change these values either globally or locally.



          Global way



          The default location for these nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir are usually located in the file ~/.netbeans/8.2/build.properties



          You can edit it with your favorite editor:
          gedit ~/.netbeans/8.2/build.properties



          Scroll down to the last line and you should see nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir keys. Change their values to this:



          nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
          nbplatform.default.netbeans.dest.dir=/path/to/your/Netbeans/Folder/netbeans-8.2


          Note: Write actual folder where your Netbeans is installed.



          Save and exit.



          Verify if the problem is solved.



          Local way (Making own default declarations):



          1) Go to your project file default declarations (I suppose project name is cantact-app-master):



          cd /path/to/Project/Folder/cantact-app-master/nbproject/private/


          Note: Write actual folder where your Project is located.



          Save and exit.



          2) There should be some file called platform-private.properties, edit it with your favorite editor, otherwise create it:



          gedit platform-private.properties


          3) If in previous step, in case you edited it, you might encounter a line starting with a key user.properties.file. Anyways, comment it or if it is blank, write this:



          user.properties.file=cd /path/to/**Project/Folder**/cantact-app-master/nbproject/private/build.properties


          Note 1: Write actual folder where your Project is located.



          Note 2: You can indicate build.properties wherever you want, but I assume that this is destination of this file.



          Save and exit.



          4) Create build.properties where you pointed user.properties.file key:



          gedit build.properties


          5) Add these lines:



          nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
          nbplatform.default.netbeans.dest.dir=/path/to/your/Netbeans/Folder/netbeans-8.2


          Note: Write actual folder where your Netbeans is installed.



          Save and exit.



          Hope this helps...






          share|improve this answer























          • Thanks again, Olimjon. Unfortunately, nothing matches up right. For Global Way, I find four different "build.properties" files, and none of them have the text "dest.dir" in them. I can't post an image. So, from folder /usr/local/netbeans-8.2, I find files in ./harness/nbi/stub . Below there is a build.properties directly, and ./ext/engine/build.properties, and ext/infra/build/products/helloworld/build.properties, and ext/infra/build/engine/build.properties. To clarify, that last file mentioned is at /usr/loca/netbeans-8.2/harness/nbi/stub/ext/infra/build/engine/build.properties.
            – Dr.Lightning
            11 hours ago












          • When I try the Local Way, I also run into trouble. Project folder is ~/CANtact/cantact-app . I find folder nbproject, but no "private" folder. However, in nbproject, I do find platform.properties. However, it doesn't have a user.properties.file. It only has branding.token, cluster.path, disabled.modules, and nbplatform.active.
            – Dr.Lightning
            11 hours ago











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093974%2fneed-help-with-classpath-i-think%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          Synopsis



          Netbeans have invalid values set for nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir. You can change these values either globally or locally.



          Global way



          The default location for these nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir are usually located in the file ~/.netbeans/8.2/build.properties



          You can edit it with your favorite editor:
          gedit ~/.netbeans/8.2/build.properties



          Scroll down to the last line and you should see nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir keys. Change their values to this:



          nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
          nbplatform.default.netbeans.dest.dir=/path/to/your/Netbeans/Folder/netbeans-8.2


          Note: Write actual folder where your Netbeans is installed.



          Save and exit.



          Verify if the problem is solved.



          Local way (Making own default declarations):



          1) Go to your project file default declarations (I suppose project name is cantact-app-master):



          cd /path/to/Project/Folder/cantact-app-master/nbproject/private/


          Note: Write actual folder where your Project is located.



          Save and exit.



          2) There should be some file called platform-private.properties, edit it with your favorite editor, otherwise create it:



          gedit platform-private.properties


          3) If in previous step, in case you edited it, you might encounter a line starting with a key user.properties.file. Anyways, comment it or if it is blank, write this:



          user.properties.file=cd /path/to/**Project/Folder**/cantact-app-master/nbproject/private/build.properties


          Note 1: Write actual folder where your Project is located.



          Note 2: You can indicate build.properties wherever you want, but I assume that this is destination of this file.



          Save and exit.



          4) Create build.properties where you pointed user.properties.file key:



          gedit build.properties


          5) Add these lines:



          nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
          nbplatform.default.netbeans.dest.dir=/path/to/your/Netbeans/Folder/netbeans-8.2


          Note: Write actual folder where your Netbeans is installed.



          Save and exit.



          Hope this helps...






          share|improve this answer























          • Thanks again, Olimjon. Unfortunately, nothing matches up right. For Global Way, I find four different "build.properties" files, and none of them have the text "dest.dir" in them. I can't post an image. So, from folder /usr/local/netbeans-8.2, I find files in ./harness/nbi/stub . Below there is a build.properties directly, and ./ext/engine/build.properties, and ext/infra/build/products/helloworld/build.properties, and ext/infra/build/engine/build.properties. To clarify, that last file mentioned is at /usr/loca/netbeans-8.2/harness/nbi/stub/ext/infra/build/engine/build.properties.
            – Dr.Lightning
            11 hours ago












          • When I try the Local Way, I also run into trouble. Project folder is ~/CANtact/cantact-app . I find folder nbproject, but no "private" folder. However, in nbproject, I do find platform.properties. However, it doesn't have a user.properties.file. It only has branding.token, cluster.path, disabled.modules, and nbplatform.active.
            – Dr.Lightning
            11 hours ago















          up vote
          0
          down vote













          Synopsis



          Netbeans have invalid values set for nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir. You can change these values either globally or locally.



          Global way



          The default location for these nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir are usually located in the file ~/.netbeans/8.2/build.properties



          You can edit it with your favorite editor:
          gedit ~/.netbeans/8.2/build.properties



          Scroll down to the last line and you should see nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir keys. Change their values to this:



          nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
          nbplatform.default.netbeans.dest.dir=/path/to/your/Netbeans/Folder/netbeans-8.2


          Note: Write actual folder where your Netbeans is installed.



          Save and exit.



          Verify if the problem is solved.



          Local way (Making own default declarations):



          1) Go to your project file default declarations (I suppose project name is cantact-app-master):



          cd /path/to/Project/Folder/cantact-app-master/nbproject/private/


          Note: Write actual folder where your Project is located.



          Save and exit.



          2) There should be some file called platform-private.properties, edit it with your favorite editor, otherwise create it:



          gedit platform-private.properties


          3) If in previous step, in case you edited it, you might encounter a line starting with a key user.properties.file. Anyways, comment it or if it is blank, write this:



          user.properties.file=cd /path/to/**Project/Folder**/cantact-app-master/nbproject/private/build.properties


          Note 1: Write actual folder where your Project is located.



          Note 2: You can indicate build.properties wherever you want, but I assume that this is destination of this file.



          Save and exit.



          4) Create build.properties where you pointed user.properties.file key:



          gedit build.properties


          5) Add these lines:



          nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
          nbplatform.default.netbeans.dest.dir=/path/to/your/Netbeans/Folder/netbeans-8.2


          Note: Write actual folder where your Netbeans is installed.



          Save and exit.



          Hope this helps...






          share|improve this answer























          • Thanks again, Olimjon. Unfortunately, nothing matches up right. For Global Way, I find four different "build.properties" files, and none of them have the text "dest.dir" in them. I can't post an image. So, from folder /usr/local/netbeans-8.2, I find files in ./harness/nbi/stub . Below there is a build.properties directly, and ./ext/engine/build.properties, and ext/infra/build/products/helloworld/build.properties, and ext/infra/build/engine/build.properties. To clarify, that last file mentioned is at /usr/loca/netbeans-8.2/harness/nbi/stub/ext/infra/build/engine/build.properties.
            – Dr.Lightning
            11 hours ago












          • When I try the Local Way, I also run into trouble. Project folder is ~/CANtact/cantact-app . I find folder nbproject, but no "private" folder. However, in nbproject, I do find platform.properties. However, it doesn't have a user.properties.file. It only has branding.token, cluster.path, disabled.modules, and nbplatform.active.
            – Dr.Lightning
            11 hours ago













          up vote
          0
          down vote










          up vote
          0
          down vote









          Synopsis



          Netbeans have invalid values set for nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir. You can change these values either globally or locally.



          Global way



          The default location for these nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir are usually located in the file ~/.netbeans/8.2/build.properties



          You can edit it with your favorite editor:
          gedit ~/.netbeans/8.2/build.properties



          Scroll down to the last line and you should see nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir keys. Change their values to this:



          nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
          nbplatform.default.netbeans.dest.dir=/path/to/your/Netbeans/Folder/netbeans-8.2


          Note: Write actual folder where your Netbeans is installed.



          Save and exit.



          Verify if the problem is solved.



          Local way (Making own default declarations):



          1) Go to your project file default declarations (I suppose project name is cantact-app-master):



          cd /path/to/Project/Folder/cantact-app-master/nbproject/private/


          Note: Write actual folder where your Project is located.



          Save and exit.



          2) There should be some file called platform-private.properties, edit it with your favorite editor, otherwise create it:



          gedit platform-private.properties


          3) If in previous step, in case you edited it, you might encounter a line starting with a key user.properties.file. Anyways, comment it or if it is blank, write this:



          user.properties.file=cd /path/to/**Project/Folder**/cantact-app-master/nbproject/private/build.properties


          Note 1: Write actual folder where your Project is located.



          Note 2: You can indicate build.properties wherever you want, but I assume that this is destination of this file.



          Save and exit.



          4) Create build.properties where you pointed user.properties.file key:



          gedit build.properties


          5) Add these lines:



          nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
          nbplatform.default.netbeans.dest.dir=/path/to/your/Netbeans/Folder/netbeans-8.2


          Note: Write actual folder where your Netbeans is installed.



          Save and exit.



          Hope this helps...






          share|improve this answer














          Synopsis



          Netbeans have invalid values set for nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir. You can change these values either globally or locally.



          Global way



          The default location for these nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir are usually located in the file ~/.netbeans/8.2/build.properties



          You can edit it with your favorite editor:
          gedit ~/.netbeans/8.2/build.properties



          Scroll down to the last line and you should see nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir keys. Change their values to this:



          nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
          nbplatform.default.netbeans.dest.dir=/path/to/your/Netbeans/Folder/netbeans-8.2


          Note: Write actual folder where your Netbeans is installed.



          Save and exit.



          Verify if the problem is solved.



          Local way (Making own default declarations):



          1) Go to your project file default declarations (I suppose project name is cantact-app-master):



          cd /path/to/Project/Folder/cantact-app-master/nbproject/private/


          Note: Write actual folder where your Project is located.



          Save and exit.



          2) There should be some file called platform-private.properties, edit it with your favorite editor, otherwise create it:



          gedit platform-private.properties


          3) If in previous step, in case you edited it, you might encounter a line starting with a key user.properties.file. Anyways, comment it or if it is blank, write this:



          user.properties.file=cd /path/to/**Project/Folder**/cantact-app-master/nbproject/private/build.properties


          Note 1: Write actual folder where your Project is located.



          Note 2: You can indicate build.properties wherever you want, but I assume that this is destination of this file.



          Save and exit.



          4) Create build.properties where you pointed user.properties.file key:



          gedit build.properties


          5) Add these lines:



          nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
          nbplatform.default.netbeans.dest.dir=/path/to/your/Netbeans/Folder/netbeans-8.2


          Note: Write actual folder where your Netbeans is installed.



          Save and exit.



          Hope this helps...







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 21 at 19:44

























          answered Nov 21 at 19:25









          Olimjon

          2,035424




          2,035424












          • Thanks again, Olimjon. Unfortunately, nothing matches up right. For Global Way, I find four different "build.properties" files, and none of them have the text "dest.dir" in them. I can't post an image. So, from folder /usr/local/netbeans-8.2, I find files in ./harness/nbi/stub . Below there is a build.properties directly, and ./ext/engine/build.properties, and ext/infra/build/products/helloworld/build.properties, and ext/infra/build/engine/build.properties. To clarify, that last file mentioned is at /usr/loca/netbeans-8.2/harness/nbi/stub/ext/infra/build/engine/build.properties.
            – Dr.Lightning
            11 hours ago












          • When I try the Local Way, I also run into trouble. Project folder is ~/CANtact/cantact-app . I find folder nbproject, but no "private" folder. However, in nbproject, I do find platform.properties. However, it doesn't have a user.properties.file. It only has branding.token, cluster.path, disabled.modules, and nbplatform.active.
            – Dr.Lightning
            11 hours ago


















          • Thanks again, Olimjon. Unfortunately, nothing matches up right. For Global Way, I find four different "build.properties" files, and none of them have the text "dest.dir" in them. I can't post an image. So, from folder /usr/local/netbeans-8.2, I find files in ./harness/nbi/stub . Below there is a build.properties directly, and ./ext/engine/build.properties, and ext/infra/build/products/helloworld/build.properties, and ext/infra/build/engine/build.properties. To clarify, that last file mentioned is at /usr/loca/netbeans-8.2/harness/nbi/stub/ext/infra/build/engine/build.properties.
            – Dr.Lightning
            11 hours ago












          • When I try the Local Way, I also run into trouble. Project folder is ~/CANtact/cantact-app . I find folder nbproject, but no "private" folder. However, in nbproject, I do find platform.properties. However, it doesn't have a user.properties.file. It only has branding.token, cluster.path, disabled.modules, and nbplatform.active.
            – Dr.Lightning
            11 hours ago
















          Thanks again, Olimjon. Unfortunately, nothing matches up right. For Global Way, I find four different "build.properties" files, and none of them have the text "dest.dir" in them. I can't post an image. So, from folder /usr/local/netbeans-8.2, I find files in ./harness/nbi/stub . Below there is a build.properties directly, and ./ext/engine/build.properties, and ext/infra/build/products/helloworld/build.properties, and ext/infra/build/engine/build.properties. To clarify, that last file mentioned is at /usr/loca/netbeans-8.2/harness/nbi/stub/ext/infra/build/engine/build.properties.
          – Dr.Lightning
          11 hours ago






          Thanks again, Olimjon. Unfortunately, nothing matches up right. For Global Way, I find four different "build.properties" files, and none of them have the text "dest.dir" in them. I can't post an image. So, from folder /usr/local/netbeans-8.2, I find files in ./harness/nbi/stub . Below there is a build.properties directly, and ./ext/engine/build.properties, and ext/infra/build/products/helloworld/build.properties, and ext/infra/build/engine/build.properties. To clarify, that last file mentioned is at /usr/loca/netbeans-8.2/harness/nbi/stub/ext/infra/build/engine/build.properties.
          – Dr.Lightning
          11 hours ago














          When I try the Local Way, I also run into trouble. Project folder is ~/CANtact/cantact-app . I find folder nbproject, but no "private" folder. However, in nbproject, I do find platform.properties. However, it doesn't have a user.properties.file. It only has branding.token, cluster.path, disabled.modules, and nbplatform.active.
          – Dr.Lightning
          11 hours ago




          When I try the Local Way, I also run into trouble. Project folder is ~/CANtact/cantact-app . I find folder nbproject, but no "private" folder. However, in nbproject, I do find platform.properties. However, it doesn't have a user.properties.file. It only has branding.token, cluster.path, disabled.modules, and nbplatform.active.
          – Dr.Lightning
          11 hours ago


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093974%2fneed-help-with-classpath-i-think%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Category:香港粉麵

          List *all* the tuples!

          Channel [V]