• Post Reply Bookmark Topic Watch Topic
  • New Topic

URL is not a String ???  RSS feed

 
achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about getCodeBase().toString()
 
achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THX Thomas
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!