question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running the java example on Windows

See original GitHub issue

Hello! I am trying to run the Java example, as per. I built Grobid against the Master branch. I see that signature of Engine.processHeader has changed from boolean to int. I tried both 0 & 1. engine.processHeader(pdfPath, 0, resHeader);

I am getting the below stack-trace:
INFO: Loading model: D:\grobid\grobid-home\models\header\model.wapiti (size: 15734670)
org.grobid.core.exceptions.GrobidException: [PDFTOXML_CONVERSION_FAILURE] PDF to XML conversion failed on pdf file .\src\test\resources\Wang_paperAVE2008.pdf 
null
	at org.grobid.core.document.DocumentSource.processPdfToXmlThreadMode(DocumentSource.java:208)
	at org.grobid.core.document.DocumentSource.pdf2xml(DocumentSource.java:154)
	at org.grobid.core.document.DocumentSource.fromPdf(DocumentSource.java:63)
	at org.grobid.core.document.DocumentSource.fromPdf(DocumentSource.java:49)
	at org.grobid.core.engines.HeaderParser.processing(HeaderParser.java:101)
	at org.grobid.core.engines.Engine.processHeader(Engine.java:385)
	at org.grobid.core.engines.Engine.processHeader(Engine.java:374)
	at org.grobidExample.MyGrobid.runGrobid(MyGrobid.java:38)
	at org.grobidExample.App.main(App.java:11)
[Wapiti] Loading model: "D:\grobid\grobid-home\models\header\model.wapiti"
Model path: D:\grobid\grobid-home\models\header\model.wapiti

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
lfoppianocommented, Sep 4, 2020
0reactions
lfoppianocommented, Oct 6, 2020

@siggins any luck? I remember I spent a good week building the last version 😓

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Run a Java program in Windows 10 - Javatpoint
Open the control panel -> System and Security -> System -> Advanced System Settings. · Click on Environment Variables, go to system variables,...
Read more >
Hello World in Java on Windows (manual instructions)
Hello World in Java on Windows (manual instructions) · 1. Create the Program in DrJava · 2. Compile the Program from DrJava ·...
Read more >
How to Run Java Program in Windows 10 - Linux Hint
To run a Java program in Windows, open Command Prompt and compile program file using “javac” command. Then, execute the Java program using...
Read more >
How to Install Java on Windows {Step-by-Step Guide}
Check if Java Is Installed · Download Java for Windows 10 · Install Java on Windows 10. Step 1: Run the Downloaded File;...
Read more >
How To Run A Java Program In Windows 10+
If you want to compile & run your Java Program anywhere from command line, you need to set environment variables. In order to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found