droogie
March 13th, 2005, 01:24 PM
I am trying to use the replace method in a program and I am getting an error saying
DirectoryInfo.java:142: error: Can't find method `replace(Ljava/lang/String;Ljava/lang/String;)' in type `java.lang.String'.
dirStr = temp.replace(trimString, ".:");
^
1 error
I am thinking it has something to do with java and ubuntu because the same code work ok on my windows machine. I am new to linux and I am not sure if I had to set any environment variables or configure the java installation in any way. The code also works on Sun Solaris.
-Mike
DirectoryInfo.java:142: error: Can't find method `replace(Ljava/lang/String;Ljava/lang/String;)' in type `java.lang.String'.
dirStr = temp.replace(trimString, ".:");
^
1 error
I am thinking it has something to do with java and ubuntu because the same code work ok on my windows machine. I am new to linux and I am not sure if I had to set any environment variables or configure the java installation in any way. The code also works on Sun Solaris.
-Mike