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

java.lang.ClassNotFoundException: AnnotationBridge #48

Open
aherriau opened this issue May 23, 2017 · 3 comments
Open

java.lang.ClassNotFoundException: AnnotationBridge #48

aherriau opened this issue May 23, 2017 · 3 comments

Comments

@aherriau
Copy link

Hi,

I want to use the stanford-core-nlp gem in a rails application. So, I followed the README file instructions :

But when i want to use the gem and write in a rails controller file :
pipeline = StanfordCoreNLP.load(:pos)

I have this error :
java.lang.ClassNotFoundException: AnnotationBridge

But I can see the AnnotationBridge.java file in the bin/ folder of the gem ...
I don't know how or where I can specify the path ...
Any help ?

Thank you !

@tayeb83
Copy link

tayeb83 commented Dec 7, 2017

Hi,
Probably the AnnotationBridge.java and .class are not found.

@guitassinari
Copy link

guitassinari commented Jan 7, 2021

I'm having the same problem here. @aherriau Were you able to solve this?

@guitassinari
Copy link

Just in case someone faces the same problem:

My case was that I downloaded the bridge.jar from GitHub using wget as I was creating a Dockerfile to create the whole Stanford CoreNLP environment for my application.

The problem is that the wget was actually downloading GitHub's HTML page as bridge.jar. Without bridge.jar BindIt/RJB couldn't load AnnotationBridge, obviously.

The solution was downloading bridge.jar manually and altering my Dockerfile accordingly.

Hope it helps someone.

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

3 participants