aspose file tools
The moose likes Beginning Java and the fly likes URL is not a String ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "URL is not a String ???" Watch "URL is not a String ???" New topic
Author

URL is not a String ???

achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Hi.
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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: URL is not a String ???
 
Similar Threads
getCodeBase() rules
Java 3d applet and HTML
open URL in specific frame.
applet calling Servlet
Accessing TXT file on the server