0

I have downloaded a jar file called beagle.14Jan16.841.jar from here and am trying to run it in cmd using the line

java –Xmx8g –jar beagle.14Jan16.841.jar gt=beaglefilt.vcf out=beagleoutput 

My cmd directory is the location of the beagle.14Jan16.841.jar file.

The error I get is Error: Could not find or load main class ?Xmx8g

My java is up to date and PATH leads to my java bin folder (java -version works).

5
  • Do you need the –Xmx8g argument? Commented Jan 18, 2016 at 3:35
  • Have you added your jar file to the class path? Commented Jan 18, 2016 at 3:42
  • The jar file is in my current cmd directory. Do I still need to add it to the class path? If so, how if the jar file is in C:\Users\Administrator\Documents\Research? Commented Jan 18, 2016 at 3:45
  • Yes, you do. set classpath=%classpath%;.\beagle.14Jan16.841.jar. Do the same thing if it's somewhere else. Just include the full path Commented Jan 18, 2016 at 3:52
  • I still get the same error. Commented Jan 18, 2016 at 3:54

1 Answer 1

1

Your Problem is in - character,in your error say it as ?

Try to copy this command and run it:

java –jar beagle.14Jan16.841.jar gt=beaglefilt.vcf out=beagleoutput 
Sign up to request clarification or add additional context in comments.

2 Comments

Then I get the error Error: Could not find or load main class ?jar
You're right about the character difference. I initially wrote it somewhere else and was trying to copy and paste it. Thank you.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.