File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes URL is not a String ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "URL is not a String ???" Watch "URL is not a String ???" New topic

URL is not a String ???

achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
I tried to get the URL thru getCodeBase(), but got an error "cannot resolve symbol"
The following snippet compiles.

Howver I do not want the "/" there, so how do I turn it the getCodeBase() into a string ???
toString(getCodeBase()) throws up all sorts of errors.

humanum errare est.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
How about getCodeBase().toString()

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
THX Thomas
I agree. Here's the link:
subject: URL is not a String ???
jQuery in Action, 3rd edition