Meaningless Drivel is fun!*
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: 86
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: 86
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: 19653

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: 86
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:
subject: Error Building Java Application
Similar Threads
Problem starting JBOSS 4.2.3
class loader error
How to use, struts 1-- struts-config.xml and struts 2 -- struts.xml together?
Variable Scope
how to maintain transcation consistency between DB procedures and EJB