32,204 Topics

Member Avatar for
Member Avatar for newcoder310

Hi, I'm getting the following while trying to execute my spring program [CODE] 5 Jul, 2011 7:22:08 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@18a47e0: display name [org.springframework.context.support.ClassPathXmlApplicationContext@18a47e0]; startup date [Tue Jul 05 19:22:08 IST 2011]; root of context hierarchy 5 Jul, 2011 7:22:08 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions …

Member Avatar for masijade
0
75
Member Avatar for Dhanesh10

hello everybody, i am using java as front end and ms access as back-end for my mini project, in my database, in couple of the tables there is field which i've declared [COLOR="red"]primary key[/COLOR] for those respective tables and which has type of [COLOR="Red"]autonumber[/COLOR]. so my question is, while inserting …

Member Avatar for Dhanesh10
0
360
Member Avatar for divyakprabh

Hi, I wanted to know if there is a configuration in JBOSS to deploy a java application but not ready to serve until we wish to start the application for the requests, like in websphere having a option to start a application after deployment. Can anyone help me.??? Thanks in …

0
55
Member Avatar for akasekaihime

We are suppose to create a registration form but it is not running! can you please help me and teach me what is wrong and what i am suppose to put! thank you! here is my code.... [CODE]import java.io.*; public class regform { public static void main(String args[])throws IOException { …

Member Avatar for NormR1
0
123
Member Avatar for Armanious

[CODE] private static int[][][] pieces = { { { 1, 1, 1, 1, 1, 1, 1, 1 },{ 1, 1, 1, 1, 1, 1, 1, 1 },{ 1, 1, 1, 1, 1, 1, 1, 1 },{ 1, 1, 1, 1, 1, 1, 1, 1 } },{ { } },{ { …

Member Avatar for skatamatic
0
1K
Member Avatar for itsmeisuru

Hi, I followed the following [URL="http://www.coderanch.com/t/424312/JBoss/Configuring-Eclipse-JBoss-MySQL-EJB"]http://www.coderanch.com/t/424312/JBoss/Configuring-Eclipse-JBoss-MySQL-EJB[/URL] to configure JBOSS and MSSQL Server in Eclipse. But I'm getting an error and I tried many ways but I'm still there. (In this guide "5. Copy the driver libraries to jboss-5.0.0.Beta4\server\default\lib" means copying jdbc.jar ??? right?) When I run an EJB project I'm …

0
79
Member Avatar for jamd200

[code=java] /*This program takes two integers as command-line arguments (they are initially strings), and returns the sum, difference (based on the order they're entered in the command line), product and quotient (also based on the order they're entered in the command line) of those two integers. For example, in the …

Member Avatar for jamd200
0
2K
Member Avatar for saadismail85

Print stars in console like this using java ? ......* .....*.* ... *...* .. *.....* . *.......* ...*.....* ... *...* .....*.* ......* dot = spaces [B]look to my code just i need to print border not filled shape[/B] [CODE]import java.util.Scanner; public class Stars { public static void main( String args[] …

Member Avatar for stultuske
0
813
Member Avatar for phoenx

anyone know how to fix the border so that box stay on its position..any reply tanx..:D [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Exer extends JApplet implements ActionListener{ JButton button1, button2, button3; JTextField tf1, tf2, tf3 ; JLabel counter1, counter2, sum; int total = 0, ans1,ans2; public void …

Member Avatar for Majestics
0
136
Member Avatar for akasekaihime

can you help me correct my java code......I do not know what is wrong with it... [CODE]import java.io.*; public class info { public static void main (String args[])throws IOException { BufferedReader br= new BufferedReader (new InputStreamReader(System.in)); String name,course; char section; int id,ctr=0,answer=0; do for(ctr=0;ctr>=3;ctr++) { System.out.print("\n Enter Name: "); name=br.readLine(); …

Member Avatar for stultuske
0
103
Member Avatar for newcoder310

Hi, Can any1 tell me wht is the problem if i can't find an import in a main class [CODE] import org.springframework.context.ApplicationContext; [/CODE] It says that the import cant be resolved. thanks

Member Avatar for newcoder310
0
77
Member Avatar for PythonNewbie2

Is there an easy way to go through an entire directory recursively to find all CSV files? In python, there's os.walk and I see that Java has FileVisitor, but I have no idea how to use it correctly ([url]http://download.oracle.com/javase/tutorial/essential/io/walk.html[/url]). What I want to do is something like this (pseudocode): [CODE] …

Member Avatar for peter_budo
0
221
Member Avatar for bhawna_5nov

I dont know whts wrong with the code... its in java..the error msg is shown while compilation i.e. class, interface , or enum exception.. plzz can anyone help me with this.. [CODE]import java.io.*; import java.security.*; import java.awt.*; import java.awt.event.*; import java.applet.*; public final class DiffieHellman extends java.applet.Applet implements ActionListener { …

Member Avatar for javinpaul
0
279
Member Avatar for stow19

hey all, I know this might seem like a basic question but we haven't really been taught it at university and I was getting curious. Once you've created your program and have all your relevant java classes/package and it has been compiled where do you find the .exe and how …

Member Avatar for stow19
0
196
Member Avatar for jamd200

[code=java] /*This is a small GUI application that I made for personal use. It allows you to enter the colors of the bands on a 4-band fixed resistor to calculate the resistance (and tolerance) of that particular resistor. Eventually, I will create a version that deals with 5-band and 6-band …

Member Avatar for jamd200
0
7K
Member Avatar for newcoder310

Hi, Can some1 plz explain wht is the advantage of Inversion Of Control concept of Spring. I know that there is no need to instantiate in the class and the container will do it like [CODE] Hello h = new Hello(); [/CODE] The above need not be given and we …

0
74
Member Avatar for Majestics

Can any one give a useful link to learn oracle report server and also how to connect it with java application.... Thank you. Require second question answer....

Member Avatar for Majestics
0
133
Member Avatar for Majestics

[code]"insert into invoice(sno,entrydate,invoicedate,companyname,party,station,purchase,avail,sale) " + values("+Integer.getInteger(head.getSerial().getText())+",to_date('"+head.getEntryDate().getText()+ "','dd/mm/yyyy')"+",to_date('"+head.getInvoicedate().getText()+ "','dd/mm/yyyy')"+",'"+head.getCompany().getSelectedItem()+"'"+"'"+head.getParty().getSelectedItem()+"','"+head.getStation().getSelectedItem()+"',"+Integer.getInteger(head.getPurchase().getText())+",1,"+Integer.getInteger(head.getSale().getText())+")"); [/code] SNO NOT NULL NUMBER(38) ENTRYDATE DATE INVOICEDATE DATE COMPANYNAME VARCHAR2(50) PARTY VARCHAR2(50) STATION VARCHAR2(50) PURCHASE NUMBER(10,2) AVAIL NUMBER(1) SALE NUMBER(10,2) Whats wrong in this query.... I am getting sqlException ....

Member Avatar for peter_budo
0
90
Member Avatar for PHIPH

hello, Am new to Java and i just installed jdk, but i failed to set the paths correctly since am missing some paths am supposed to edit as the procedure says, any one having an idea pliz help me, thanx

Member Avatar for NormR1
0
64
Member Avatar for I<LateNupurGuha

A [B][I][U]concept[/U][/I][/B]:icon_rolleyes: has grown, may be it as wrong or right, that in Java [COLOR="Green"]if we do not take the help of [I]thread class[/I] or [I]runnable interface[/I] at all then also several threads get executed there[/COLOR]; If so how it happens with other languages where there is no concept of …

Member Avatar for Majestics
0
98
Member Avatar for sirlink99

I am trying to read a custom file extension When reading a string from the file it output the correct string, however when I attempt to read an int it does not output the correct int. Here is my code: [CODE] import java.awt.event.*; import java.awt.*; import java.io.BufferedReader; import java.io.FileInputStream; import …

Member Avatar for NormR1
0
274
Member Avatar for xThrash

Hello everyone, I have some code to sort a random array of integers, although im getting an error whenever I try to run the method. It prints the input and then I get an error. The code is below and the error is below that. If anyone could help me …

Member Avatar for stultuske
0
880
Member Avatar for register86

Hi everybody! I am implementing my undergraduate thesis with subject "object extraction in a video shot". I haven't studying signal processing topic when i majored in computer science, so this subject is very strange to me. I knew this problem associates with image segmentation issue,thats all, maybe having else one …

Member Avatar for stultuske
0
81
Member Avatar for MoZo1

Original question:[url]http://forums.sun.com/thread.jspa?threadID=5323307[/url] [quote]So I would like to include a bean into the same project (as a separated library of course) that uses it, so the project would be self containing, and the bean's code would stay in syncron with the program's one, even if I move it to another computer. …

Member Avatar for MoZo1
0
177
Member Avatar for Majestics

When we define a new variable for frame it hold "null" value, but what it contain when we close that frame?

Member Avatar for Majestics
0
293
Member Avatar for slawson01

This is code generated for my Algorithm Implementation's class. I was to create my own RSA public and private keys using modPow and modInverse and use that to implement a digital signature. That works great, not the problem here. For extra credit I am implementing a digital envelope that will …

Member Avatar for slawson01
0
235
Member Avatar for xhalcyon

I'm new to java and having trouble. I need to take a class I wrote and write a test applet for it to see if it works. The applet is supposed to have a length label, an input for it, an width label, an input for it, a button to …

Member Avatar for sirlink99
0
106
Member Avatar for masterofpuppets

Hi all, I searched this topic and found a couple of posts but I couldn't find what I am looking for. Here's the problem - I am trying to send an image to a client (browser in this case) over a socket. After the image is received I am trying …

Member Avatar for masterofpuppets
0
9K
Member Avatar for Majestics

Oracle accept dates in '00-JAN-0000' format, is there any way i can change it to '00-01-0000'.

Member Avatar for debasisdas
0
159
Member Avatar for sirlink99

I have this key listener in my application, and it wont work. This is my first key listener in an application, however I have done a mouse listener in one before. Anyway here is my code: [CODE] import java.awt.Graphics; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.*; public class DropGame extends JPanel …

Member Avatar for sirlink99
0
513

The End.