1

I am struggling to understand an existing piece of code, that is as follows. I can't change this piece of code and need to place this WordNet folder accordingly. I don't know where to place it in my Java project.

URL url = new URL("file:WordNet-JWI/3.0/dict");

2
  • You are using what ? Eclipse ? Commented Dec 3, 2014 at 0:37
  • Yes, I am using Eclipse :) Commented Dec 3, 2014 at 0:38

1 Answer 1

2

Try to create a File object and print out the path of it.

URL url = new URL("file:WordNet-JWI/3.0/dict");
File f = new File(url.getFile());
System.out.println(f.getCanonicalPath());
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.