Skip to content

java directory not found under /Cellar/opencv/share on MacOS #23

Open

Description

@susiecamazotz

I tried according this guide:
https://www.youtube.com/watch?app=desktop&v=68IrlXObQyE
But I can't see java directory on my laptop

Activity

  1. aidanogr commented on Oct 2, 2025

    @aidanogr

    The docs for this are unclear and should probably be updated for brew but here's what i needed to do to see it:

    -Ensure xcode command line tools are installed: xcode-select --install
    -Install ant: brew install ant
    -Ensure opencv is NOT installed : brew uninstall opencv
    -Try brew edit opencv
    * If this does not work, you must run brew tap --force homebrew/core BEFORE editing or installing
    -Try brew edit again
    -Run brew install --build-from-source opencv

    You should now see the java directory. The main thing to keep in mind is that opencv must be uninstalled, and if you can't edit the formula, run the brew tap command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions