32,204 Topics

Member Avatar for
Member Avatar for jamojo

Hello Everyone, I am using ths class as my reusable SQL select for my queries in other classes. But when I used this in other classes, it generated me this error: java.sql.SQLException: Network error IOException: Address already in use: connect Can anyone give me some idea or advise on how …

Member Avatar for jamojo
0
178
Member Avatar for stevnlon

I wonder if i could pick anyones brains on somthing? [CODE]public void show(String add) { try { statement.execute("select * from Staff_Details WHERE Address2 =" + add); [/CODE] This is a section of code im working on. The string variable add at the end of the SQL statement is not working …

Member Avatar for masijade
0
134
Member Avatar for cyrogathoni
Member Avatar for Pradeep.sibar
0
42
Member Avatar for Pradeep.sibar
0
32
Member Avatar for r0n

hi everyone how should i move the data of the multiple text file to another text file... (for instance you have two text files readFile1.txt and readFile2.txt and you have to move the data of the two text files in another file which is writeFile.txt ) how should i read …

Member Avatar for r0n
0
4K
Member Avatar for blueandyellow

Hello. I've hit a brick wall on an assignment for class. I've included the instructions and what I have gotten so far. My major problem is converting the number for days of the week to the actual day. Any help will be greatly appreciated. Thanks! Insert code into the Clock …

Member Avatar for ithelp
0
338
Member Avatar for Pradeep.sibar
Member Avatar for leviathan185

Hi, I am just starting to learn Java and the tutorial i am using says i need to add the path that JDK is installed to but when i attempt to save the file it comes up access denied? I am running Windows 7 RC build 7100. Can someone please …

Member Avatar for leviathan185
0
183
Member Avatar for PhiberOptik

Hey I am sitting around here on my summer semester break. I am curious if anyone here is a java developer and actually makes good money at it? Basically I would like to know what kind of stuff you do, where you work from, office, home, etc. I'm just curious …

Member Avatar for BestJewSinceJC
0
139
Member Avatar for kaustubh.pandey

pls give me web based project topics in java ..with is different 4m others.n eay 2 built.n in that project pls not send me common project topic like library mngt ,airlines,etc........... pls send me some intresting topics which so different...ok n i m not want the high project topics....i m …

Member Avatar for llemes4011
0
79
Member Avatar for get2tk

Can u control Dynamic Link Library (DLL) file of a usb powered drive using java??? if not,what other code can control dll files and how can it be made to communicate with java codes.

Member Avatar for nmaillet
0
63
Member Avatar for JohnPhilipps

Good morning, I would like to ask for your help, I am working on getting a text file read using using a java applet, the content of that text file is generated with an object in the class TowersOfHanoiExecute TowersOfHanoi towersOfHanoi = new TowersOfHanoi( totalDisks ); after which I was …

Member Avatar for JohnPhilipps
0
790
Member Avatar for bloodredoscar

Hi everybody, Can somebody show me a very comprehensive way of using struts2 iterator tags. I already have the action working but when i am about to list it in my JSP it doesnt display anything. And one more, is it better to use JSTL that stuts2 tags? Please enlighten.... …

0
48
Member Avatar for Pradeep.sibar
Member Avatar for yilmazhuseyin
0
78
Member Avatar for suretd

Hi All, For my final assignment, I need to create a BookCatalogue and save the data to a file on the disk. I have created a Book class that get and inserts the fields: Book title, author and type. [CODE] public class Book { private String title; private String author; …

Member Avatar for di2daer
0
130
Member Avatar for juser11

I am trying to configure log4j for one of my web projects. For that I want to read the log4j.properties file. Below is the code [code] private URL url; private File file; file = new File(url.getPath()); DOMConfigurator.configure(url); [/code] Following is the error Exception in thread "Thread-1" java.lang.NullPointerException Then I try …

Member Avatar for kvprajapati
0
127
Member Avatar for prawin@123

Hi I am new bee to JS and PHP, i have a code to display the images from directory in the path C:\wamp\www\prawin\new\locations\test\admin But this code didnt works . can any one help me. My code is [ICODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> …

Member Avatar for mysoogal
0
117
Member Avatar for suretd

HI All, Another Question: I have created another program that queries the StockTracker database for all users and the stocks held by each user. The program compiles, but at run-time i get the error: [COLOR="Red"]"Exception in thread 'main' java.sql.SQLException: Column not found at sun.jdbc.odbc.JdbcOdbcResultSet.findColumn<JdbcOdbcResultSet.java:1833> at sun.jdbc.odbc.JdbcOdbcResultSet.getString<JdbcOdbcResultSet.java:395> at StockByUser.main<StockByUser.java:43>"[/COLOR] I am …

Member Avatar for masijade
0
12K
Member Avatar for JohnPhilipps

Good afternoon, I am in the process of learning java and I am a little bit stock on a couple of issues. I am working with javamail version-1.4.2 and JavaBeans Activation Framework 1.0.2 release. The purpose of my code is to give me the ability to move e-mails from one …

Member Avatar for JohnPhilipps
0
1,000
Member Avatar for painless

Sequencer sequencer = MidiSystem.getSequencer (); can any 1 tell ...What's going on in this code ....

Member Avatar for painless
0
87
Member Avatar for kuay

package gcd; import java.io.*; class gcd { public static void main (String args []) throws IOException { BufferedReader dataIn= new BufferedReader(new InputStreamReader(System.in)); String strEntry; String str_C; String ans; int a[] = new int[10000]; int n=0,i=0,j=0,c=0,max=0,min=0; long prod=0; strEntry = dataIn.readLine(); n = Integer.parseInt(strEntry); for(i=1;i<=n;i++) { str_C = dataIn.readLine(); c = …

Member Avatar for JamesCherrill
0
109
Member Avatar for suretd

Hi All, I have created a servlet HTMLBank.java which I need to display in my browser. I am using Tomcat as my server. I have saved the class for HTMLBank in: C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\WEB-INF\Classes\servlet But when i try to "run" my servlet in my browser, i get a message …

Member Avatar for suretd
0
1K
Member Avatar for Acegikmo

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": …

Member Avatar for Acegikmo
0
2K
Member Avatar for jainnynipun

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

Member Avatar for ithelp
0
37
Member Avatar for VernonDozier

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 …

Member Avatar for kvprajapati
0
3K
Member Avatar for babajide1

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"

Member Avatar for nmaillet
0
45
Member Avatar for MasterGoGo

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 = …

Member Avatar for JamesCherrill
0
487
Member Avatar for johndb

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.

Member Avatar for johndb
0
84
Member Avatar for choybutchoy

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 …

Member Avatar for choybutchoy
0
102

The End.