This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

Error Building Java Application

Fred Victa
Ranch Hand

Joined: May 01, 2008
Posts: 139
I attempted to compile a Java application and I received an error that said, " 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 ?

Fred Victa
Ranch Hand

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

Joined: Oct 27, 2005
Posts: 20077

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

How To Ask Questions How To Answer Questions
Fred Victa
Ranch Hand

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

Have you checked out Aspose?
subject: Error Building Java Application
It's not a secret anymore!