Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

method (replaceAll) of String

 
viral trivedi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get an error message when i compile my program on an unix. In windows it works.
I am using method replaceAll of String and i get
an error mesage cannot resolve symbol or method not found Can someone help?
[ May 07, 2003: Message edited by: viral trivedi ]
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably a version issue. replaceAll() was added to the String class in version 1.4 of the JDK. What version are you running on Unix?
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the versions of the JDKs that you are using? I would hazard a guess that the Windows version is an older one. .replaceAll() didn't exist until the advent of regular expressions in Java (Version 1.4, methinks)
 
viral trivedi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Windows was having 1.4 while Unix has
1.3
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic