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

Unable to use generated jar from CLI #12

Closed
skylerwharton opened this issue Feb 5, 2018 · 1 comment
Closed

Unable to use generated jar from CLI #12

skylerwharton opened this issue Feb 5, 2018 · 1 comment

Comments

@skylerwharton
Copy link

skylerwharton commented Feb 5, 2018

Hi,

I generated a jar of figer using this command from the readme:

sbt assembly

I now have 2 jar files ("figer_2.10-0.jar" and "figer-assembly-0.jar"), and am trying to use them to generate NE labels for a corpus of sentences.

Specifically, I've tried these commands:

java -jar figer_2.10-0.jar edu.washington.cs.figer.FigerSystem sentences.txt 
java -jar figer-assembly-0.jar edu.washington.cs.figer.FigerSystem sentences.txt 

In both cases, I get this error:

no main manifest attribute

My questions are:

  • Which of these jars should I use?
  • Is there a manifest file in the jar? (Based on the error, I believe the error is a missing manifest file.)

Note that I'm able to execute sbt "runMain edu.washington.cs.figer.FigerSystem sentences.txt" successfully, so the issue is not the source code.

Thanks in advance for your help!

@xiaoling
Copy link
Owner

xiaoling commented Feb 5, 2018

Sorry I didn't include a mainClass in the assembly jar. It should work if it's just included in the classpath

java -Xmx8g -cp figer-assembly-0.jar edu.washington.cs.figer.FigerSystem sentences.txt 

I just added the mainClass support (ab0fa64). please pull the change, rerun sbt assembly and both should work now.

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

2 participants