Java related problem: can you help me run nodebox (java based prog) in my system?

hello.

I’m trying to run nodebox 3, an old java based program for generative art.

it has some instructions to run it:

sudo apt-get install git-core openjdk-7-jdk ant
       git clone git://github.com/nodebox/nodebox.git
       cd nodebox
       ant run

I installed ant and jdk-openjdk 16 using pamac which i assumed would be enough. I cloned the files using git and tried to run using ant.

But it didn’t work.

I get this error:

ant run
Buildfile: /home/julio/nodebox/build.xml

properties:

init:

compile:

BUILD FAILED
/home/julio/nodebox/build.xml:115: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-8-openjdk/jre"

Total time: 2 seconds

Well I tried to check JAVA_HOME using echo JAVA_HOME but it returns a blank.

I really don’t know what’s wrong and what to do. What can i do? ty.

Nodebox is available in the AUR (Arch User Repository) as nodebox (out of date) or nodebox-git (development version).

That variable is not used, see Java - ArchWiki

1 Like

hello. i tried installing the nodebox package and it didnt work. :frowning: ill post the errors in a minute.

i first tried installing using the instructions provided in the page. I had already installed it using such instructions years ago in an Ubuntu machine. It worked to perfection back then.

sudo apt-get install git-core openjdk-7-jdk ant
       git clone git://github.com/nodebox/nodebox.git
       cd nodebox
       ant run

I installed ant and jdk-openjdk 16 using pamac which i assumed would be enough. I cloned the files using git and tried to run using ant.

But it didn’t work.

I got this error:

ant run
Buildfile: /home/julio/nodebox/build.xml

properties:

init:

compile:

BUILD FAILED
/home/julio/nodebox/build.xml:115: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-8-openjdk/jre"

Total time: 2 seconds

Someone mentioned to me that it was in the AUR, so I tried installing that version. But I get this error when trying to install it:

==> Iniciando build()...
Buildfile: /var/tmp/pamac-build-julio/nodebox/src/nodebox/build.xml
  [taskdef] Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found.

properties:
[artifact:dependencies] Downloading: com/google/guava/guava/18.0/guava-18.0.pom from repository clojars.org at https://clojars.org/repo
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'com.google.guava:guava:pom:18.0' in repository clojars.org (https://clojars.org/repo)
[artifact:dependencies] Downloading: com/google/guava/guava/18.0/guava-18.0.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/com/google/guava/guava/18.0/guava-18.0.pom
[artifact:dependencies] [WARNING] Unable to get resource 'com.google.guava:guava:pom:18.0' from repository central (http://repo1.maven.org/maven2): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/com/google/guava/guava/18.0/guava-18.0.pom
[artifact:dependencies] Downloading: org/apache/httpcomponents/httpclient/4.2.3/httpclient-4.2.3.pom from repository clojars.org at https://clojars.org/repo
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.apache.httpcomponents:httpclient:pom:4.2.3' in repository clojars.org (https://clojars.org/repo)
[artifact:dependencies] Downloading: org/apache/httpcomponents/httpclient/4.2.3/httpclient-4.2.3.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.2.3/httpclient-4.2.3.pom
[artifact:dependencies] [WARNING] Unable to get resource 'org.apache.httpcomponents:httpclient:pom:4.2.3' from repository central (http://repo1.maven.org/maven2): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.2.3/httpclient-4.2.3.pom
[artifact:dependencies] Downloading: junit/junit/4.11/junit-4.11.pom from repository clojars.org at https://clojars.org/repo
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'junit:junit:pom:4.11' in repository clojars.org (https://clojars.org/repo)
[artifact:dependencies] Downloading: junit/junit/4.11/junit-4.11.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/junit/junit/4.11/junit-4.11.pom
[artifact:dependencies] [WARNING] Unable to get resource 'junit:junit:pom:4.11' from repository central (http://repo1.maven.org/maven2): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/junit/junit/4.11/junit-4.11.pom
[artifact:dependencies] Downloading: org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.pom from repository clojars.org at https://clojars.org/repo
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.python:jython-standalone:pom:2.7.0' in repository clojars.org (https://clojars.org/repo)
[artifact:dependencies] Downloading: org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.pom
[artifact:dependencies] [WARNING] Unable to get resource 'org.python:jython-standalone:pom:2.7.0' from repository central (http://repo1.maven.org/maven2): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.pom
[artifact:dependencies] Downloading: org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.jar from repository clojars.org at https://clojars.org/repo
[artifact:dependencies] Downloading: org/apache/httpcomponents/httpclient/4.2.3/httpclient-4.2.3.jar from repository clojars.org at https://clojars.org/repo
[artifact:dependencies] Downloading: com/google/guava/guava/18.0/guava-18.0.jar from repository clojars.org at https://clojars.org/repo
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.python:jython-standalone:jar:2.7.0' in repository clojars.org (https://clojars.org/repo)
[artifact:dependencies] Downloading: org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.apache.httpcomponents:httpclient:jar:4.2.3' in repository clojars.org (https://clojars.org/repo)
[artifact:dependencies] Downloading: org/apache/httpcomponents/httpclient/4.2.3/httpclient-4.2.3.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'com.google.guava:guava:jar:18.0' in repository clojars.org (https://clojars.org/repo)
[artifact:dependencies] Downloading: com/google/guava/guava/18.0/guava-18.0.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.jar
[artifact:dependencies] [WARNING] Unable to get resource 'org.python:jython-standalone:jar:2.7.0' from repository central (http://repo1.maven.org/maven2): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.jar
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.2.3/httpclient-4.2.3.jar
[artifact:dependencies] [WARNING] Unable to get resource 'org.apache.httpcomponents:httpclient:jar:4.2.3' from repository central (http://repo1.maven.org/maven2): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.2.3/httpclient-4.2.3.jar
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/com/google/guava/guava/18.0/guava-18.0.jar
[artifact:dependencies] [WARNING] Unable to get resource 'com.google.guava:guava:jar:18.0' from repository central (http://repo1.maven.org/maven2): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/com/google/guava/guava/18.0/guava-18.0.jar
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies] 
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.python:jython-standalone:jar:2.7.0
[artifact:dependencies] 
[artifact:dependencies]   Try downloading the file manually from the project website.
[artifact:dependencies] 
[artifact:dependencies]   Then, install it using the command: 
[artifact:dependencies]       mvn install:install-file -DgroupId=org.python -DartifactId=jython-standalone -Dversion=2.7.0 -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies] 
[artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there: 
[artifact:dependencies]       mvn deploy:deploy-file -DgroupId=org.python -DartifactId=jython-standalone -Dversion=2.7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies] 
[artifact:dependencies]   Path to dependency: 
[artifact:dependencies]   	1) net.nodebox:nodebox:jar:3.0.44
[artifact:dependencies]   	2) org.python:jython-standalone:jar:2.7.0
[artifact:dependencies] 
[artifact:dependencies] 2) org.apache.httpcomponents:httpclient:jar:4.2.3
[artifact:dependencies] 
[artifact:dependencies]   Try downloading the file manually from the project website.
[artifact:dependencies] 
[artifact:dependencies]   Then, install it using the command: 
[artifact:dependencies]       mvn install:install-file -DgroupId=org.apache.httpcomponents -DartifactId=httpclient -Dversion=4.2.3 -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies] 
[artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there: 
[artifact:dependencies]       mvn deploy:deploy-file -DgroupId=org.apache.httpcomponents -DartifactId=httpclient -Dversion=4.2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies] 
[artifact:dependencies]   Path to dependency: 
[artifact:dependencies]   	1) net.nodebox:nodebox:jar:3.0.44
[artifact:dependencies]   	2) org.apache.httpcomponents:httpclient:jar:4.2.3
[artifact:dependencies] 
[artifact:dependencies] 3) com.google.guava:guava:jar:18.0
[artifact:dependencies] 
[artifact:dependencies]   Try downloading the file manually from the project website.
[artifact:dependencies] 
[artifact:dependencies]   Then, install it using the command: 
[artifact:dependencies]       mvn install:install-file -DgroupId=com.google.guava -DartifactId=guava -Dversion=18.0 -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies] 
[artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there: 
[artifact:dependencies]       mvn deploy:deploy-file -DgroupId=com.google.guava -DartifactId=guava -Dversion=18.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies] 
[artifact:dependencies]   Path to dependency: 
[artifact:dependencies]   	1) net.nodebox:nodebox:jar:3.0.44
[artifact:dependencies]   	2) com.google.guava:guava:jar:18.0
[artifact:dependencies] 
[artifact:dependencies] ----------
[artifact:dependencies] 3 required artifacts are missing.
[artifact:dependencies] 
[artifact:dependencies] for artifact: 
[artifact:dependencies]   net.nodebox:nodebox:jar:3.0.44
[artifact:dependencies] 
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies]   central (http://repo1.maven.org/maven2),
[artifact:dependencies]   clojars.org (https://clojars.org/repo)
[artifact:dependencies] 
[artifact:dependencies] 

BUILD FAILED
/var/tmp/pamac-build-julio/nodebox/src/nodebox/build.xml:84: Unable to resolve artifact: Missing:
----------
1) org.python:jython-standalone:jar:2.7.0

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.python -DartifactId=jython-standalone -Dversion=2.7.0 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.python -DartifactId=jython-standalone -Dversion=2.7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) net.nodebox:nodebox:jar:3.0.44
  	2) org.python:jython-standalone:jar:2.7.0

2) org.apache.httpcomponents:httpclient:jar:4.2.3

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.apache.httpcomponents -DartifactId=httpclient -Dversion=4.2.3 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.apache.httpcomponents -DartifactId=httpclient -Dversion=4.2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) net.nodebox:nodebox:jar:3.0.44
  	2) org.apache.httpcomponents:httpclient:jar:4.2.3

3) com.google.guava:guava:jar:18.0

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=com.google.guava -DartifactId=guava -Dversion=18.0 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=com.google.guava -DartifactId=guava -Dversion=18.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) net.nodebox:nodebox:jar:3.0.44
  	2) com.google.guava:guava:jar:18.0

----------
3 required artifacts are missing.

for artifact: 
  net.nodebox:nodebox:jar:3.0.44

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  clojars.org (https://clojars.org/repo)



Total time: 13 seconds
==> ERROR: Se produjo un fallo en build().
    Cancelando...

Could someone helpe me run it? I’d prefer to install the version from the page because it’s up to date and the last update seems important. Can someone help me? maybe if i uninstall and reinstall JAVA?