Giter Club home page Giter Club logo

Comments (5)

zopieux avatar zopieux commented on July 26, 2024

Our CI build runs in Travis, which uses Debian images. You are getting this error because of the
Debian alternatives system.

You need to define an environment variable to pass through this mechanism.

from camisole.

chen-robert avatar chen-robert commented on July 26, 2024

@zopieux Could you please elaborate on what you mean? I'm running into the same problem.

from camisole.

seirl avatar seirl commented on July 26, 2024

@chen-robert Hi, can you check whether /usr/bin/java is a symlink to something? If yes, which directory is it?

Usually, specifically for Java which uses the debian alternatives system, we need to mount other directories in /etc in which there are files that the symlinks in /usr/bin point to.

I thought we had that handled for Java here:

allowed_dirs = ['/etc/java-8-openjdk']

So I'd be curious to know the path of your Java symlink. This line probably needs to be made more generic.

from camisole.

chen-robert avatar chen-robert commented on July 26, 2024

Hello @seirl! Sorry for the late reply.

/usr/bin/java is a symlink to /etc/alternatives/java which is a symlink to /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java.

from camisole.

chen-robert avatar chen-robert commented on July 26, 2024

Finally fixed the issue. I changed

compiler = Program('javac', opts=['-encoding', 'UTF-8'],
to compiler = Program('/usr/lib/jvm/java-8-openjdk-amd64/bin/javac', opts=['-encoding', 'UTF-8'],.

Maybe for future users, programmatically determine where the binaries are located?

from camisole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.