473,537 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Forum

Java programming language (Sun Microsystems) - Ask questions about java programming, OOP, JRE, SDK, Swing, Plugins, Java Virtual Machine(JVM), Java Libraries: Collection, XML Processing, Security, JDBC, JNDI, RMI, CORBA, AWT (GUI) and more.
19
20,220
thread by: robtyketto | last post Mar 16 '08 by: chaarmann
Greetings, I have the following code below which allows the date to be added via a JDBC connection as a STRING. The value of dateString is inserted into the MS ACCESS database. What is the easiest method to add the current date/time (dd/mm/yy hh:mm:ss) via JDBC in DATE format i.e. convert STRING to DATE or format the DATE without...
7
20,158
thread by: shana07 | last post Apr 27 '07 by: JosAH
I have unreported exceptions as below: unreported exception java.lang.Exception; must be caught or declared to be thrown Euclid euc = new Euclid(); ^ unreported exception java.lang.Exception; must be caught or declared to be thrown ...
6
20,137
thread by: dmstn | last post Jun 29 '11 by: Nepomuk
Is it possible to add those options in Notepad ++ ? Your help would be appreciated very much. Thanks in advance.
8
20,097
thread by: Jova | last post Jul 17 '05 by: Glen Herrmannsfeldt
Is there a method or way for me to take a couple of char's and make a sting out of them . Example of what I want to do. String | char b = b ba = a bad = d
1
19,953
thread by: gjain123 | last post May 14 '13 by: r035198x
Hi All, I am passing json data to servlet as below: Ext.Ajax.request({ url: CONTEXTPATH + "/ServletURL", type: 'post', jsonData :{ record: sample, comments: text }
4
19,810
thread by: JanineXD | last post Mar 22 '10 by: jkmyoung
Hello, I already have the program ( convert number to words but only 0-999 ). I need it to be ( 0-9999 ). can you help me? package num2word; import java.util.Scanner;
1
19,797
DebadattaMishra
thread by: DebadattaMishra | last post Jan 5 '10 by: RedSon
Introduction In case of rich applications, you must have observed that a text field behaves like a dynamic combo box. When the user enters some characters in the text field, a popup will come up with a list of values as suggestions to the user. This feature is called auto completion. In case of Eclipse editor, you must have seen while writing...
6
19,781
thread by: B J H | last post Jul 17 '05 by: B J H
I want to do the following int list; String list; i int; ..... for (i=0; i<int.length, i++_ { list.concat(list); list.concat(" ");
1
19,769
thread by: CyberDVD | last post Apr 1 '08 by: pronerd
Hello, I am trying to develop servlets using apache and eclipse. when i try to run the start the server from eclipse it gives me this error: Starting server - Tomcat v6.0 at localhost(Time of error:March 19,2008) Reason: The specified JRE installation does not exist can someon please help me configure the environment?
6
19,671
oll3i
thread by: oll3i | last post Oct 14 '13 by: Nepomuk
List<FileItem> fields = upload.parseRequest(request); Why fields.size() is 0 ? When i upload the file.
1
19,600
thread by: Barry Parker | last post Jul 17 '05 by: Barry Parker
Is there a way to pass parameters (variables?) from a JSP page to a servlet when it is called? This way I can use a generic servlet to do several different tasks. The call to the servlet is made by using the JSP forward tag. Cheers in advance, Barry
5
19,513
thread by: 123456prakash | last post Jul 31 '08 by: JosAH
hai, I am tryng to write installation for an application,which require to set some values in registry using java program. I have tried using Preference class in java.util.prefs This allows to write keys and values under the keys HKEY_LOCAL_MACHINE/software/JavaSoft/Prefs or HKEY_CURRENT_USER/software/JavaSoft/Prefs
2
19,477
thread by: rathnaravi | last post Apr 8 '13 by: kuman vadadoriy
I am using NetBeans 5.0.I tried to connect MySQL with Crystal Reports XI.When writing the coding in Java Application.I get the following error. com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected error determining relative path---- Error code:-2147217395 Error code name:serverProgrammingError Could anyone help me to solve...
3
19,386
thread by: Hal Vaughan | last post Jul 17 '05 by: Dale Mitchell
I've seen install programs that search a hard drive for previous instances of a program, or to find installs of other needed programs. I need to search a hard drive for any installations of OpenOffice. I know in *nix I can start by using "/" as the file name and doing a recursive listing of the file system from there. (Yes -- I know about...
10
19,376
thread by: 123456prakash | last post Nov 13 '09 by: Mohanj
Hi all , I am new to this . This is my first post . I really need some help from you all members of this forum. My situation is something like this . I am communicating with 2 system .Both the systems are in LAN . In the first system (Windows xp) my java application and database (MYSQL 5.0) is running. My second system is my linux machine...
5
19,371
thread by: Ramkrish | last post Aug 2 '07 by: blazedaces
i have already used Simple Date Format method.i got the time from the system.that i am stored in sql.in sql i used datetime datatype.it gives date and time.but i need only time.and how to subtract the time.
2
19,346
thread by: Farce Milverk | last post Jul 22 '06 by: latheef
Hi, I'm looking for an algorithm to resize an image of arbitrary size to a "fixed" / required width and height. For example, my application requires that images be no larger than 440 pixel (height) x 780 (wide) So the "preferred size" would be 440 x 780
3
19,285
thread by: capoeira26 | last post Feb 29 '12 by: yash1234
I have is that my entered Roman numerals work only if the numerlas are entered in large to smaller format. For exapmple if I type MMC program will correctly display 2100, but when I enter MCM it will display 2100 instead of 1900. I know that I need to come up with a way to determine what letter comes before so program can subtract it but at this...
1
19,274
thread by: carly | last post Nov 6 '06 by: r035198x
hi, i've been solving these multiple choice questions, and i'd like to know if what i answered is right ot wrong......... just to double check :) I) Consider the code given below. class Base{} public class MyCast extends Base{ static boolean b1=false;
4
19,268
thread by: Hal Vaughan | last post Jul 17 '05 by: Hal Vaughan
I am writing out archive files using ZipOutputStream with the following code: aEntry is a global Array of ZipEntries llData is a LinkedList of the data corresponding to the the ZipEntry of the same index in aEntry public void save() { byte bBuffer = null; int i = 0;
9
19,077
thread by: xtremebass | last post Nov 12 '08 by: r035198x
hi every one. i am new to this forum. i have two doubts. one is , is it possible to read a text/html file in Jsp? if so, how can we find out the end of each line in the text/html file? please help me..
4
19,064
thread by: megha | last post Jul 17 '05 by: Fran
Hi I am writing a program in JSP which requires user to log in and as he logs in database was updated with his status on and till the user does not sign out no other user with same login and password can enter in the system. as he signs out database was updated but the problem is if somehow he forgot to sign out and closed the browser or...
20
18,997
thread by: geebanga88 | last post Oct 30 '07 by: geebanga88
HI i have a method that is supose to store the alphabet in an array however dont think that it is being added to the array. public static void GetAlphabet (char alphabet) { int index, ordinalVal = 97; char element; for (index = 1; index < alphabet.length; ++index, ++ordinalVal) { ...
6
18,956
thread by: Johan Louwers | last post Jul 17 '05 by: Dai Ichi
I have a qustion. I have to set a JAVA_HOME variable on a Solaris9 system... what kind of a variable? A system-defined.../....a user defined.../.....???? and how do I set this so java can work with it? I need this to be used by Tomcat at a webserver..... Thanks already,
2
18,894
thread by: Average_Joe | last post Jul 17 '05 by: PaulE
Hello Java people, Been awhile since I've used Java, and when I did, it was pretty much XML stuff. Anyhow, I've got a client who needs to provide web viewers with both streaming (live) video as well as earlier recorded stuff. There are solutions for this, but they all seem to involve using a windows platform for performing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.