java - The method split(String) is undefined for the type String -
i using pulse - plugin manager eclipse , installed. have eclipse 3.5 mobile development(pulsar) profile couple other profiles.
i realized split() method called on string code such below:
string data = "one, two, three, four"; data.split(",");
generates error: "the method split(string) undefined type string". aware split() method did not exist before java's jre 1.4 , perhaps cause of problem. problem don't think have jre/sdk versions installed. perhaps there's 1 in-built pulsar profile , needs editing - couldn't tell settings (and where) needs tweaking. have checked windows>preferences>java>installed jres , it's set >= jre1.4.
i note "eclipse 3.5 mobile development". maybe tool expects run j2me, believe several issues behind j2se.
this page gives links javadoc various apis in jme. there several versions, (follow links under cldc , cdc , java.lang.string) far can tell none of them define string.split().
Comments
Post a Comment