35,586 Topics
| |
hey guys, i have a problem when am deploying a spring application i tomcat... i have got exception like this. [CODE]Nov 15, 2009 3:43:53 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring FrameworkServlet 'dispatcher' Nov 15, 2009 3:43:53 PM org.apache.catalina.core.ApplicationContext log SEVERE: StandardWrapper.Throwable java.lang.NoSuchFieldError: ruleMemo at org.springframework.expression.spel.generated.SpringExpressionsParser.<init>(SpringExpressionsParser.java:94) at org.springframework.expression.spel.antlr.SpringExpressionsParserExtender.<init>(SpringExpressionsParserExtender.java:37) at org.springframework.expression.spel.antlr.SpelAntlrExpressionParser.<init>(SpelAntlrExpressionParser.java:51) at … | |
I have created the output for a program that allows a user to input their employee name and number and then their hourly wage and their total number of regular hours and overtime hours. This is my first time working with this type of program in java and I'm having … | |
I need to change the font size after I click. How can I do that - Thanks! here is the code [code=java]import java.applet.*; import java.awt.*; import java .awt.event.*; import javax.swing.*; import java.util.*; public class JChangeFont extends JApplet implements ActionListener { JLabel question = new JLabel("Who's number one?"); JButton click = … | |
[B]Hi everyone,[/B] I’m working on a public transport card system which records the no. of stops of the journey and then calculates the costs. I’m a bit lost with this program and I hope you can help me... Features; the fare for up to 3 stops is charged £4, after … | |
The question ask: Write a program that asks the user to enter one of the following state abbreviations: NC, SC, GA, FL, or AL. The program should then display the name of the state that corresponds with the abbreviation entered (North Carolina, South Carolina, Georgia, Florida, or Alabama). This is … | |
Hello there, I am curious as to whether there's any 'easy' way of creating 3D models (e.g. animals, Humans etc) via a Java applet? I know in a full-blown application one could use Java 3D (with the Java 3D libraries being installed with the application), but is there an 'easy' … | |
Hi. I am trying to write a mergeSort method, but I keep getting the wrong sorted array. [CODE]public static void mergeSort(int[] num, int left, int leftEnd, int right, int rightEnd) { int [] temp = new int[num.length]; int position = left; int number = (rightEnd + leftEnd) - 1; while( … | |
I need help converting this code that is using Linear Probing to Quadratic Probing. I am not sue how to accomplish that. Can someone help me? Thanks so much... import java.util.*; // A HashMap class which uses linear probing public class HashMap383<K, V> { // array-based; this is the array's … | |
Hi, I have built a web browser using JEditorPane . But instead of using setPage method, I have used setText method The code sample looks like this: displayEditorPane.setPage(pageUrl); // Get URL of new page being displayed. URL newUrl = displayEditorPane.getPage(); When setPage is used, correct URL value is stored in … | |
HI i am using this syntax to store arraylist to inventory.dat file.When i store, it give a scattered output on the .dat file like this..... ¬í sr Carsguimainexecution.SaleinfoÕE£ñWfö L productsalest Ljava/util/ArrayList;xpsr java.util.ArrayListxÒ™Ça I sizexp w sr Carsguimainexecution.SalesubZã¾ÓÅ xr Carsguimainexecution.SaleProductøié>‘2q I CarnumberD pricesoldI productNumberD stockD unitsoldL Carbuyert Ljava/lang/String;L Carnameq ~ xp … | |
Hj, Why does't appear at editor ? [CODE] public void date() { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); java.util.Date date = new java.util.Date(); String datetime = dateFormat.format(date); this.editor.insertPlainText(datetime); }[/CODE] | |
Hi im trying to use an equals method to check if two bargraphs are equal, but when I run the method, it always says that they are not equal. Could you please tell me how to fix this? Thanks My code for the method [CODE] // equals method public boolean … | |
Can u suggest any better link for datastructure that explains with diagrams?It would be good,if any basic level explanation with algorithms. | |
I have an arraylist As such :- products.add( new CarsSubProduct( "FordMustang",1,1000,10000 ) ); FordMustang is Car name 1 is Car number 1000 is total number of cars in stock 10000 is price per car I will like to Store it to access database or excel.Please how can these be done. | |
Hi guys, I need some help regarding JComboBox. I want to link the JComboBox with JTextField and this is the code that i did. It contains error and I need some guidelines for it.Thx [code=Java]private void typeof_patronJComboBoxitemStateChanged(ItemEvent event) { // clear JTextFields clearComponents(); // determine whether checkbox selected if (event.getStateChange()== … | |
Hi everyone, My goal is to generate lottery numbers that have 6 unique numbers in the range of 1-49 ex. if the user inputs 2 as the number of tickets they want, the program should print out 1 2 3 4 5 6 10 9 8 7 12 11 ---2 … | |
hi, i have a lab monday which requires me to generate random sized squares random poinst. im not to familiar with the random class and the syntax and all that but im guessin i need to use a for loop. if someone can just point me in the right direction … | |
im trying to make my program draw lines from the top right corner of the JFrame which is 400 x 400, to the bottom of it making what looks like a curve but really is just lines. i think i know the basic idea of how to do this which … | |
I am having a problem understanding how to sort a set. I have read the Big Java book, and I still don't understand how to do it. Could someone please assist. [code=JAVA] /* * To change this template, choose Tools | Templates * and open the template in the editor. … | |
hey, how's everyone, i need help with a java program, i'll appreciate any help. i'm need to write a program in java that will test if the input is a Palindrome or not. i found a couple of programs, but they use a (do-while) loop which i'm not allowed to … | |
hi , If every one know [url]http://en.wikipedia.org/wiki/Instant_Insanity[/url] I want a java program in which there will be 50 different colours and 50 boxes. Thank you, Hardik | |
Hi! I'm having a problem with my coding. I have initialized a 2d array (String), but when I try to print a value from it, it gives me null. this is how I initialized my array. [code]String phone[][] = { {"A", "B","C"}, {"D", "E", "F"}, {"G","H", "I"}, {"J", "K", "L"}, … | |
Hj, I have a problem how to do the print. example: I need to print a file. Kjiu | |
This code works fine so far... except for my "isPair()" function. It gives me the following error: Exception in thread "main" java.lang.NumberFormatException: For input string: Any help solving this issue would be great. I am trying to get the program to read poker hands and print out what it is. … | |
[code]public Product findProduct(Product searchProduct) { Product found = null; for(Product item : stock) { if(item.id == searchProduct.id) {found=item; break; } } return found; }[/code] The error code reads: id has private access in Product. I am new at this and do not know how to write it correctly. Thank you, … | |
Hi, I like the modularity of java but I wonder what low level custom functions it has, since I' am considering to create an OS, and we all know in high level its imposible to control the hardware eficiently. :-/ so I wonder if there is a way to use … | |
I am trying to complete a circular linked list add method but I am having difficulty understanding how to. I wrote the above link list add method. I know that a circular linked list, somewhat. Here is what the add function is suppose to do: Any suggestion on how to … | |
Hello! I got a page which whenever a checkbox is checked I want to insert an image to the right of the check box. Can anyone help? - realchamp. | |
The problem question is, add a close method to the Auction class. This should iterate over the collection of lots and print out details of all the lots. You can use either a for each loop or a while loop. Any lot that has had at least one bid for … | |
Im writing this in netbeans. Here is the code: /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package accounttoolssilverberg; /** * * @author Administrator */ public class accountToolsSilverberg { double a[]; int i; public accountToolsSilverberg() { a = new … |
The End.