• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error Building Java Application

 
Fred Victa
Ranch Hand
Posts: 185
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I attempted to compile a Java application and I received an error that said, "java.net.urisyntaxexception illegal character in path at index 18." What does this error mean and how do I find index 18? I have a friend who compiled the same Java application on his computer, but he did not receive any errors. Can anyone explain why I got an error when compiling the application, but not my friend? We both tried to compile the same Java application and we are using the same version of Java.
 
Mary Chellapa
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you put code here ?
 
Fred Victa
Ranch Hand
Posts: 185
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the file that is giving me the error. This file is a part of the project that I'm trying to build.

 
Rob Spoor
Sheriff
Pie
Posts: 20514
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right. And the code that's throwing the exception?
 
Fred Victa
Ranch Hand
Posts: 185
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found out why I was getting that error. My code was getting that error because there was a whitespace in the directory path of my project.

My code was found in this location: D:\cvs\Web Services\Project

Since there was a whitespace character between "Web" and "Services", I was getting that error. I removed the whitespace in the directory path of my project and I'm no longer getting that error.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic