sudheer kiran

Ranch Hand
+ Follow
since Jun 26, 2008
sudheer likes ...
MyEclipse IDE Firefox Browser Tomcat Server
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sudheer kiran

thank you for the quick reply.
11 years ago
hi all ,

i have a list of Strings

and a method

fillExpected method should return "A_04_B" when passed ""A_XX_B" as expected String.(Incrementing the value of the int at the positions of XX , considering A and B matching combinations).
and should return "A_03_C" when passed ""A_XX_C" as expected String.

this can be achieved by matchers and wild cards right?
any suggestions please.
11 years ago
There should be only one public class and any number of non public classes, and public class should match with the file name.
you can have all non public classes in a file.
11 years ago
hi thanks for the replies. i just wanted to know if any API is available for quick usage.
i haven't come across a situation but thought of to know if is it possible.
11 years ago
hi all i have some doubts:
1)can we get a list of objects that are presently in memory by passing full class name?
2)can we list classes that are loaded into memory.

11 years ago
i have created a jar of my application.
jar contains image files also which i need to send them to report.

first i tried sending file path.but the file it self is comming null when i run jar.
but working fine when i run main class.

MyClass.class.getResource("/img/abc.png");...... did not work when running through jar.

but working with streams
InputStream inputStream = MyClass.class.getResourceAsStream("/img/abc.png");

cant i find a file in my jar??
12 years ago
create a list and pass it to the Collections.unmodifieableList method.
below is from doc
Returns an unmodifiable view of the specified list. This method allows modules to provide users with "read-only" access to internal lists. Query operations on the returned list "read through" to the specified list, and attempts to modify the returned list, whether direct or via its iterator, result in an UnsupportedOperationException.
12 years ago
resolved by setting customized icons.

12 years ago
i have included xalan-2.7.1.jar and my problem is solved. thank you all.
i am trying with jasper's been very difficult to understand. i clicked RESOLVED...actually not..i need your all suggestions
hi all my requirement is i need to create a docx file based on the given tree structure.
document will have colored text and more styling.which one is preferable. JasperReports or apache POI

please suggest.

how to set jasper dependencies in my sample java program.
i am not using any ant task to run.

here is the exception i am getting:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI
at net.sf.jasperreports.engine.util.xml.XalanXPathExecuter.<init>(
at net.sf.jasperreports.engine.util.xml.XalanXPathExecuterFactory.getXPathExecuter(
at net.sf.jasperreports.engine.util.xml.JRXPathExecuterUtils.getXPathExecuter(
at net.sf.jasperreports.engine.query.JRXPathQueryExecuter.createDatasource(
at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(
at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(
at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(
at net.sf.jasperreports.engine.JasperFillManager.fillReport(
at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(
at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(
at createXMLReport.JXLReport.fill(
at createXMLReport.JXLReport.main(
Caused by: java.lang.ClassNotFoundException: org.apache.xpath.CachedXPathAPI
at$ Source)
at Method)
at Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 15 more
hey i am too very new to jasper reports...are you using iReport tool to created can check the preview there..
12 years ago
you mean to get every alternative element?...i think we should use counter,for every even number get the far as i know enhanced for loop doesn't have that option
12 years ago