Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/RegexLexer.java:2: error: package org.antlr.v4.runtime does not exist #2

Open
muchang opened this issue May 14, 2024 · 1 comment
Open

Comments

@muchang
Copy link

muchang commented May 14, 2024

Hi Julia,
I found this project would be helpful for me. However, I cannot boot it up with my client code. The problem I encountered was building the project and executing with client code with mvn compile exec:java results in a /RegexLexer.java:2: error: package org.antlr.v4.runtime does not exist. My client code is as follows:

// Test.java

package com.github.hycos.regex2smtlib;

import com.github.hycos.regex2smtlib.Translator;

public class Test {
    public static void main(String[] args) {
        try {
            String constraint = Translator.INSTANCE.translateToConstraint("z3","abc*","v1");
        } catch (Exception e) {
        }
    }
}

I put the Test.java in src/main/java/com/github/hycos/regex2smtlib. Do you have any idea about how to boot it up? It's an old project though :) Thank you in advance!

@muchang
Copy link
Author

muchang commented May 14, 2024

I also tried to add antlr dependencies in pom.xml with version 4.7.1. It still produces the same error when executing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant