Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! Let me know if you need help using the site or assistance with non-technical questions.

 
Top Java Solutions: 1 - 25 of 736
 
Rounding Up to 2 decimal places + java
I want to read from a Excel 2007 (.xlsx f) file in JAVA Thanks
I'm having problems on how I need to initialized a HashMap.  I'm trying to build a final HashMap of <String, List<String>> but still be able to manipulate the Lists. given: final HashMap<S...
How to generate an heap dump of hotspot JVM version 1.4x before out of memory error. I am running the JVM in solaris. I used kill -3  pid .. but i got only Thread dump .. I need Heap dump to f...
i want to display records 10 per page and also i want next and previous buttons for another records. I want  pagination code using struts tags . please help me
This should be easy, but I cannot find the doc.  Basically, I want to implement a COBOL ZZZZ9 picture clause for numeric output with NumberFormat.  What I need is a method to change the leadin...
I have Newjavatest.java and this java file includes libraries : abc.jar and def.jar. " newtojava " package contains the above files. First: created newtojava.jar file. Second: made...
I have checked out two projects from CVS.  One of the project's ant build runs successfully, but the other is failing.  The error is java.lang.OutOfMemoryError: PermGen space.  The only soluti...
I keep getting an uncaught exception java.lang.NullPointerException error on my Blackberry device.  Any ideas on how I can remove this message? I've already wiped the device twice but that did...
How do I convert a Java date/time into UTC coordinates in this format: 2008-09-24T15:57:57.2Z
Hello,    I may be trying to do too much with swing. Coming from Flex world I have to admit that i am a bit spoiled. What I am trying to do is basically have a JTable and while the table is l...
I need to be able to order by a formula in a hibernate mapping. I am using criteria api. My mapping looks like this <hibernate-mapping>      <class entity-name= "A" name = "A"  table="B" ...
Dear Experts, I need your advice. I want to enter any character (digits, letters and +)(*&^%$ etc) using the key board and find the equivalent ASCII value of the character in Java. P...
Hi, I am trying to deploy war file in tomcat manager site and deployed ok, but when I hit start link, I got error says: FAIL - Application at context path/xxx  could not be started I ...
So I have a JTable that is currently displaying multiline rows. I'm using the DefaultTableCellRenderer as my renderer which is a subclass of JLabel. I got the multiline rows working by puting ...
     This app is running on Windows boxes.  XP I have an image uploaded with RichFaces upload... I need to save the image to a network disk. I can save it to the local c: drive but ca...
I'm trying to lookup a JNDI datasource from my spring classes in aJBOSS 4.2 environment. I'm able to access the datasource from my EJB's. Spring file: <jee:jndi-lookup id="dataSource" jn...
I am using HTTPClient for file upload. The first time it is giving an exception like this java.net.SocketException: Connection reset         at java.net.SocketInputStream.read(Unknown Sou...
I wrote some simple code to convert time formats.  But my ideal time output string gets filled with incorrect values when I give it a time format that doesn't fill all the values of the output...
hi, how to remove last comma in a for loop e.g. result is 1,2,3,4,5, I wanna remove the last comma -  the comma after 5. I tried using escape key \b but it's not working.
I am planning on integrating my Struts2 application with Spring's IoC container. The only thing that is stopping me is that I can't seem to find out how to inject the HttpServletRequest, HttpS...
I am using Apache HTTPClient for file uploading.(Apache File Upload at the server side) Code looks like this if(proxyStatus) {      client.getHostConfiguration().setProxy(proxyHost,port);      if...
I have the below function to delete a directory tree. but does not seem to work in all cases. if the inner file name is too long does not seem to be removing. any solution? public static b...
I'm getting a strange error that is very hard to find an answer to.It happens like every couple times not always so it makes it very hard to understand what may be the problem. Error: The p...
Hi everyone, I am developing a ticket reservation application for mobile users. Basically, the mobile user will have in his\her mobile phone this application which helps him\her to book a fli...