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

Does this applications works ? and if yes what are the actual requirements ? #221

Open
tsgiannis opened this issue Apr 13, 2023 · 3 comments

Comments

@tsgiannis
Copy link

tsgiannis commented Apr 13, 2023

Hello to everybody
I am ...sorry to say that... extremely frustrated with this application
No matter what I can't find the combination that works
At first environment
Windows 10
Initially Java8 but I also installed java11
So I started with the latest version
First run
image
this was both on 5.5 and 5.4
No matter what.
I was forced to downgrade to 5.2 in order to have something running
I was able to trec_setup.bat
Then it was the indexing...this also went smoothly
I prepared the queries.txt according to the specs of my assignment
and then again issues
trec_terrier.bat -r
this time I stumbled on a brick wall as the application is complaining about it can't determine document length
the error is pinpointed to

public int getDocumentLength()
	{
		try {
			return doi.getDocumentLength(id);
		} catch (ArrayIndexOutOfBoundsException aioobe) {
			throw new RuntimeException("Problem looking for doclength for document "+ id + " -- docid out of bounds, possible (concurrent?) decompression error when reading from " + bitFileReader, aioobe);
		} catch (Exception e) {
			throw new RuntimeException("Unknown problem looking for doclength for document "+ id +" "+ e, e);
		}
	}

image
Right now I am again testing on another machine using version 5.5 and jdk20 but this time again the
C:\Program is stopping everything at the very first action
I am pretty sure that these kind of issues have being resolved in the past as I took a look at the old forum via Internet's Archive but it didn't hold any actual posting ..just the headers.
If is not too much can anyone give some helping hand
Thanks in advance

@BlueQuasar15
Copy link

I came across the same problem, and found that it was caused because the script cannot handle the spaces in paths for example C:\Program Files, has a space between "Program" and "Files", so you need to edit the JAVA_HOME or path variable values that include java paths,
For example if your original path is "C:\Program Files\Java\jdk17"
Change it to => "C:\Progra~1\Java\jdk17",

The conclusion is relpace "Program Files", with "Progra~1", to eliminate that space

@BlueQuasar15
Copy link

I am now facing a problem with bin\terrier.bat, on running the command, it throws an error, could not load or find main class, and I have tried reinstalling jdk, separately installing jre, checked path variables, etc. Need help with it!

@cmacdonald
Copy link
Contributor

We suggest using pyterrier. It should be more robust on Windows.

otherwise, pasting the error message would help us figure out the problem

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