WebSphere 5.1 is not having split() method in String class

Discussion in 'Java' started by Deep, Mar 2, 2006.

  1. Deep

    Deep Guest

    hi all i am using WebSphere 5.1
    but it is not supporting split() function of String class.
    what should i do?
     
    Deep, Mar 2, 2006
    #1
    1. Advertising

  2. Deep

    Bart Cremers Guest

    Don't use it!!

    AFAIR websphere 5.1 runs on a IBM JDK 1.3.1. String.split is only
    introduced in 1.4.

    So you've got the choice to upgrade your websphere to 6 or to use a
    StringTokenizer to split the string instead of string.split.

    If you need to stick with websphere 5 and need regex to split the
    string, you could use jakarta oro to help you out.

    Bart
     
    Bart Cremers, Mar 2, 2006
    #2
    1. Advertising

  3. Deep

    Ben_ Guest

    Install FixPack 1 on WebSphere 5.1 and it will give you JDK 1.4.
     
    Ben_, Mar 2, 2006
    #3
  4. Deep

    Ben_ Guest

    Ben_, Mar 2, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Deep
    Replies:
    2
    Views:
    563
  2. Ian
    Replies:
    2
    Views:
    358
    Ulrich Petri
    Sep 6, 2003
  3. Carlos Ribeiro
    Replies:
    11
    Views:
    720
    Alex Martelli
    Sep 17, 2004
  4. Sam Kong
    Replies:
    5
    Views:
    261
    Rick DeNatale
    Aug 12, 2006
  5. Stanley Xu
    Replies:
    2
    Views:
    671
    Stanley Xu
    Mar 23, 2011
Loading...

Share This Page