• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Util packages

 
Ganapathy palanisamy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai guys,

this is my program ...when i compile this program i am getting this error..






E:\java-programming>javac StringReverseUsingStringUtils.java
StringReverseUsingStringUtils.java:2: package org.apache.commons.lang does not e
xist
import org.apache.commons.lang.StringUtils;
^
StringReverseUsingStringUtils.java:9: cannot find symbol
symbol : variable StringUtils
location: class StringReverseUsingStringUtils
String reverse = StringUtils.reverse(string);
^
StringReverseUsingStringUtils.java:10: cannot find symbol
symbol : variable StringUtils
location: class StringReverseUsingStringUtils
String delimitedReverse =StringUtils.reverseDelimited(string, ' ');

^
3 errors

 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache Commons Lang is not part of the core Java library - it's a 3rd party library that you need to download, and then add its jar file to the classpath for compilation and running.
 
Ganapathy palanisamy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks you dude...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic