aspose file tools*
The moose likes Java in General and the fly likes Error Building Java Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error Building Java Application" Watch "Error Building Java Application" New topic
Author

Error Building Java Application

Fred Victa
Ranch Hand

Joined: May 01, 2008
Posts: 90
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

Joined: Jul 26, 2011
Posts: 93
can you put code here ?


Mary
Fred Victa
Ranch Hand

Joined: May 01, 2008
Posts: 90
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

Joined: Oct 27, 2005
Posts: 19723
    
  20

Right. And the code that's throwing the exception?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Fred Victa
Ranch Hand

Joined: May 01, 2008
Posts: 90
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error Building Java Application