sudheer kiran

Ranch Hand
+ Follow
since Jun 26, 2008
sudheer likes ...
Firefox Browser MyEclipse IDE Tomcat Server
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by sudheer kiran

thank you for the quick reply.
6 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.
6 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.
6 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.
6 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.

thanks,
Sudheer.K
6 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??
6 years ago
http://download.oracle.com/javase/6/docs/api/java/util/Collections.html#unmodifiableList%28java.util.List%29
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.
6 years ago
resolved by setting customized icons.

6 years ago
i have included xalan-2.7.1.jar and my problem is solved. thank you all.
i am trying with jasper reports.it'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.

thanks.
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>(XalanXPathExecuter.java:45)
at net.sf.jasperreports.engine.util.xml.XalanXPathExecuterFactory.getXPathExecuter(XalanXPathExecuterFactory.java:39)
at net.sf.jasperreports.engine.util.xml.JRXPathExecuterUtils.getXPathExecuter(JRXPathExecuterUtils.java:85)
at net.sf.jasperreports.engine.data.JRXmlDataSource.<init>(JRXmlDataSource.java:172)
at net.sf.jasperreports.engine.query.JRXPathQueryExecuter.createDatasource(JRXPathQueryExecuter.java:90)
at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:684)
at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:605)
at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1281)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:901)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:118)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:435)
at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:220)
at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:126)
at createXMLReport.JXLReport.fill(JXLReport.java:61)
at createXMLReport.JXLReport.main(JXLReport.java:25)
Caused by: java.lang.ClassNotFoundException: org.apache.xpath.CachedXPathAPI
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown 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 jrxml...you can check the preview there..
you mean to get every alternative element?...i think we should use counter,for every even number get the element..as far as i know enhanced for loop doesn't have that option
6 years ago