35,618 Topics
![]() | |
After I've been running my program for a while, it freezes and gives me this error in the console: [COLOR="Red"]Exception in thread "Thread-4" java.lang.IllegalArgumentException: timeout value is negative at java.lang.Thread.sleep(Native Method)[/COLOR] It gives me a line to where the error occurs, which is the same line where it says "try": … | |
hi all! i am new to jsp, i have two comboboxes,in which values of 2nd combo box are linked two first combo box and we get values for both these boxes from database. [B]table1[/B] [CODE](pk)itemno:text itemname:text (no duplicates)[/CODE] [B]table2[/B] [CODE](pk)itemno:text(duplicates) (pk)pcode:text pname:text(no duplicates) [/CODE] i want to display.. combobox1:itemname combobox2:pname … | |
Hello, This is pradeep.can any one tell me how can i send an pdf file to a single or multiple persons everyday by using which java api's we can do this task. And what are the steps wll take for finish this task. Regards, Pradeep | |
hello friends , i m in b.tech (I T) .. ! presently i am learning j2EE in a private institution. According to their norms a mini projects should be submitted based on java or j2EE.so,any body help me | |
I need desperate help; I need to extract a user id from mysql database to make the id into a session, i have tried all that i know and it doesn't. My last resort was the following code from DW and it just breaks my design. The code is; [icode]<%=(((private_d_data … | |
I have a movie-player type application. You have a movie of JPanels that you can "play", that is you can have the frames change either automatically on a timer or by advancing a frame at a time manually. I've created 4 trivial frames (simple JPanels with different colors). It can … | |
Hi, please can anybody help to open an exe file,when I click to open it,it returns the message "unable to access jarfile ./bin/examengine.jar" | |
Hi Suppose I have my program reading from a file with the following contents: 0.000,-0.073,-0.127,0.034,-0.034,0.146,0.098,0.029,-0.093,0.088,0.107 -0.005,-0.049,-0.112,0.039,-0.039,-0.059,-0.083,-0.020,-0.103,-0.068,-0.073 0.000,0.015,-0.049,0.010,0.308,-0.020,-0.054,0.225,-0.029,0.288,0.132 -0.005,0.020,0.068,0.088,-0.005,0.098,-0.044,0.098,0.073,0.098,-0.151 -0.005,-0.005,0.020,-0.015,-0.239,0.010,-0.024,0.181,-0.015,0.312,0.103 -0.005,-0.049,-0.044,0.044,-0.117,0.010,-0.054,0.244,0.034,-0.024,-0.103 0.000,-0.137,-0.122,-0.107,-0.601,0.093,0.020,-0.068,-0.205,-0.078,-0.039 and then I use StringTokenizer (delimiter ",") and feed the numbers into a vector. [CODE] File myFile = new File(strFileName); //Pass the file content to strFileName BufferedReader br = … | |
Is there a way to turn off auto indentation on the ide Eclipse, with every new line it is tabbing one space in, I don't see the option in preferences. | |
hi, Im just a newbie in java, I really want to learn but sometimes I lost my guts to learn coz Im always stuck on something, for example in JTextField UI, I want the UI to accept just a numeric input and prompt the user when the input is not … | |
i have written a program in which i am drawing using a mouse. however while drawing a new line the previous ones are still being shown. i have called repaint every time the mouse is moved. Can anyone please help. | |
I have a code that calls a method, but after this call, any code after it is not executed....here is the method call skeleton [code=java] if(//some condition){ //some code myMethod(//some variables); //some code/*not executed*/ }[/code] the calling is done well but the code stays in that method i.e code following … | |
I don't get where to insert the code and such; I could really use some help with this. :) Here's my java file: (I removed irrelevant stuff) [code=java] package projectprojectile; import java.applet.*; import java.awt.*; import java.io.File; import java.util.Calendar; import java.util.LinkedList; import java.util.List; import javax.swing.JOptionPane; public class Main extends Applet implements … | |
A university has few seats vacant for the new academic yea in the various departments. Students from all over the country send in their applications to the admissions department. The applications will be processed & students who have cleared the test criteria will be admitted to the department. It has … | |
presently iam running my application using the following url [url]http://127.0.0.1:8080/project[/url] without giving the above ip address & port number, can any one suggest alternate way like [url]http://daniweb/project[/url] thnx rajesh | |
hi, I've a bug in the following code, i don't know where it is?? is it in the design itself, or the code needs threading especially in the "Swing". The following code is a part of simple word game that display a word with it's correct meaning among wrong ones, … | |
I want to design a simple jsp home page with hyper links on it , then want to insert data in database ... i m using netbeans .. need help plz ... i ve to submit it on monday 29 june .. so do help me out guys plz i … | |
Hi all, I have a core java application, I am getting the below exception when ever i run this application. I have a java file named Oracpt.java which takes all variables like username password and url from setttings file which from config file. becoase of this below exception im not … | |
consider the following snippet: import java.sql.*; public class test { public static void main(String args[]) { try { Class.forNameI"sun.jdbc.odbc.JdbcOdbcDriverManager"); Connection cn; cn=DriverManager.getConnection("jdbc:odbc","username","password"); Statement st=cn.createStatement(); st.executeQuery("select * from emp"); System.out.println("Succeed"); } catch(Exception e) { System.out.println("Faild"); } finall() { system.out.println("Always"); } } } what will be the result | |
Which JDBC driner is used to connect a java client application to a database over aTCP/IP connection? | |
I have to create a maze in which a robot has to follow the set of directions given and I'm so stuck on how to make the robot go through the maze. I have most all of it done but I'm still getting errors. The maze includes 1.safe place 2.chasm … | |
I hope my post is not redundant. Many of the titles used make it difficult to determine their content. I am looking for a good tutorial on cookies - I think. I'm new to this stateless kind of development. Briefly, I would like to store ID key in a cookie … | |
![]() | I have made a Java prog which will accept a word and a sentence, and then prints the number of times the word occurs in the sentence... Here is my code: [CODE]class check_number_word { void check(String w, String s) { int l=s.length(),n=0,d=0; String s1=""; for(int j=1;j<l;j++) { s1=s.substring(d,j); if(s1.equalsIgnoreCase(w)) { … |
What would be the best way to implement dynamic search? So, for example, given the words: the, then, behemoth, abchemto Typing in 'he' would return all of the above words since they all have he in them. Is the best way to do this using a Trie? | |
I'm using CsvReader/CsvWriter to read and write my data to csv files. And I have a question about appending lines of data to other certain lines. Lets say I have some data already saved, now I open my other program which has more info that I would like to add … | |
I have to create a maze in which a robot has to follow the set of directions given and I'm so stuck on how to make the robot go through the maze. I have most all of it done but I'm still getting errors. The maze includes 1.safe place 2.chasm … | |
Hi All, im trying to get an example to work on a main class passing variables to a class to then return the value. This is the method for variables to be passed too [code] import java.lang.Math; class CalcTest { private int area; public int getArea(int height, int width) { … | |
Hi everybody I interested in mobile application ….. and I want to find some ideas to do them I've heard about making some maps for the world , apply office like (word,eccess,powerpoint..etc) and controlling the devices through mobile but actually I did not like one of them .. So can … | |
Hi All, I have to compile a servlet WebStocks.java. It does not compile in TextPad as it cannot locate the javax.servlet packages. I have done my homework, so I know, that the servlet package I am looking for is loaded in Tomcat in my directory: C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar I … | |
Hai Friends, i want read data from on ejar file to another jar file during runtime with out uisng network connections(like UDP, Tcp etc) and also with out creating external files, is there any way to read data? please help me. |
The End.