The web site project I am working on will provide a feature that is similar to the Yahoo e-mail, i.e.1. all the received e-mails will be stored in the "individual inbox" for viewing and the user can 'reply' to those messages.2. users can 'compose' and 'send' e-mails.I do not want to ...
I want to calculate how many days between two given days.for example:04/06/2003(04June2003) - 17/07/2003(17July2003)how to calculate 44? this 44 should be Int type.thanks lot
447 byte By
alok2k3a at 2007-9-29 6:20:16
i wrote a multiclient chat server which runs perfectly. when the internet conection is offline.But as soon as i start the net service (website,chat etc.) my multiculient chat server throws exception and get crashed (my net connection via cableline not dialup).what could be reason behind it is ...
704 byte By
hfs1981a at 2007-9-29 7:06:45
I am trying to deploy a war file on a server but I am getting an error that the war file does not have reading permission. The war file looks something similar to thisMETA-INF/manifest.mfWEB-INF/web.xmlWEB-INF/classes/file1.classWEB-INF/classes/prop.propertiesTEMPLATE/file.xmlThe file1 class ...
I just downloaded suns communication api javax.comm.it's for communication over serial and parallel-ports.does it run on Pocket PC, too?does it run under J2ME?does it run under the J2ME - MIPS profile?thx
I am writing an application and need to activate an image scanner from the program using a button built into the program.Could someone please let me know how to achieve this.Thanks
1311 byte By
attiasra at 2007-9-29 11:47:38
Hi, a beta of JDK1.5/Tiger is supposed to be out by the end of the year. We've heard million times about the new language features (generics, autobox, ...) but nobody ever mentions which of the additional JCP will make it. The list of JCP supposed to be in 1.5 can be found at ...
Is something like ICMP socket available in the latest jdk?
Since i've setup ANTafter i use "ant -verbose" command at current directorylog file told me that=================================================================================Apache Ant version 1.5.4 compiled on August 12 2003Buildfile: build.xmlDetected Java version: 1.4 in: D:\Program ...
Hello i am a student at the HOGE SCHOOL VAN AMSTREDAMand i have recently started using java's jbuilder and i am leraing how to program in java, which i find very joyful although it can be sometimes very frustrating.My problem is i have to make a trafficlight applet:class trafficlight.4 traffic ...
596 byte By
Dizzyhaa at 2007-9-29 15:00:34
Here is a situation:Use a single-subscripted array to solve the following problem: Write an applet that inputs 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, display it only if it is not a duplicate of a number already read. Provide the 齱orst case?in which ...
Dear Sir/Madam,Please let me know the difference between Abstract class and Interface.
I used two DatagramSockets in my server part.One is to listen client's login,and write down his InetAddress and port,the other is to send messages to the InetAddress and port .But if the client is behind a proxy server ,the messages will be blocked.why?
I use javax.comm to access the serial ports. On my IBM T40, it runs , but on the desktop PC , can not find the ports. Why? Help me please.-- coral9527
274 byte By
Dipu77a at 2007-9-29 21:06:57
Hi,I want to use java program to access the modem on windows.I have dowloaded the javax.com api for it. Can I use it to communicate the modem through the serial port.If any one has tried this earlier please help me out.Thank youDipu
22174 byte By
yuagurua at 2007-9-29 21:10:03
SAYING A MEANS SAYING B...sooner or later. No one for quite long time don't even date to propose new language features in Java. I think this happened because authors of Java explained in detail why some features of C++ was absent in the language. One could even suppose there nothing to add to ...
175 byte By
MinaEGya at 2007-9-29 22:29:43
Hello ,i have 2 running java programs how can i communicate btw em without using socketsthe 2 programs running on localhostplease helpthanks
I used NIO to construct a server application, but when I access it via windows telnet(C:\windows\telnet.exe)every character input will activate the server to deal it. How to avoid it.I mean that before I click return key, the registerkey has become readable().
189 byte By
has_star at 2007-9-30 5:00:28
What is JCP?i saw it at http://www.sun.com/emrkt/joinjcp/what is the advantage and disadvantages in joinging JCPis it free membership or paid one ?
71 byte By
mlk at 2007-9-30 6:08:24
Use email **** it.Fax machines are evil, old tech.
I'm trying to use the Communications API, but no matter what I do, it always detects 0 ports.I am running Windows XP and have a WinModem. Does anyone know if the Comm API is compatible with the combination of JDK1.4.2/WinXP/WinModem?Under my device manager it lists no COM ports, so it seems ...
Hi all, I am developing an application that requires to read a properties file from the USB memory stick. I have tried the Open Source jUSB. The API's in that allow you to detect the USB. But it doesnt tell you which drive the USB is on (for eg. USB drive is E drive on my laptop). I need the ...
Hi,I was goign throw lot of discusion and reading lot of forums related to print pdf files using java api. but nothing seems to be working for me. Can any one tell me how to print pdf files using java api.Thanks in advance
378 byte By
nokis at 2007-9-30 10:09:57
Hi,I'm trying to use the JAIN SIP api. After some unsucessful effort at attempting to get this to work, I'm looking for a simple example to show me how to log into a sip server. I'm primarily looking at IM with SIP and would like to be able to login to a SIP server (sip.company.net:443) with ...
Maybe many people would hate me for this, but Java 1.5 looks a lot like some Microsoft guy got into Sun's facilities like an spy, won the confidence of everybody in there and, somehow, wash their brains with Microsoft philosophy. Then, the Java community implemented many things in this Java ...
Hi,I hope I've got the right group for this! I've been a professional software engineer for about 8 years, and I've always tried to concentrate on design principles. I've written a few compilers and a simple VM, and partially designed a new language, and after a while I began to have a few ...
1143 byte By
kennethz at 2007-9-30 11:05:10
I think char's should not be 16-bit at the beginning (JDK 1.0). Then, there is no need to worry about things like "surrogate pairs" (Please see http://java.sun.com/developer/technicalArticles/Intl/Supplementary/ for more information).In my opinion, char's should be stated as the following:- ...
160 byte By
birthare at 2007-9-30 11:49:52
hi guys , can any one tell me abt the Actionservlet , Action class , and abt SturtsConfig.xml plz if any one so kindly reply
Please include delegates and closures in the java language.The work aroung via anonymous classes is very verbose and not a good fit in my opinion.
1161 byte By
verdi96 at 2007-9-30 12:39:37
Just read an article on gc tuning ( http://www-106.ibm.com/developerworks/java/library/j-perf06304/?ca=dgr-lnxw07BlogFix)where memory leaks are caused by the so called "unintentionally retained objects".Currently, detecting memory leak in Java is done using memory profiler to monitormemory usage ...
Hi all,I hope this forum is for java certification i am planning for J2ee certification..can any body tell me where will i find study contents online on soft copy downloable form ....
4236 byte By
vy_ho at 2007-9-30 15:24:46
First, for the eager, what this may solve:1) Much faster JVM because the garbage collection will kick in much less often2) Much small memory foot print for java application.3) Provide better scope control (more on this later)4) Provide faster object copy (something like: deep copy speed of ...
Possible memory leaks in Java applications can easily occur, if the object that is released to the garbage collector (no reference to this object from the application) still access static resources. There is currently no way to tell the VM to free these resources also (because they are static ...
My boss just shakes his hade when i tell him that you need to know how much memory a Java application can take (for setting the -Xmx option) and that the JVM doesn't return unused memory back to the operating system. This leads to Java applications being memory eaters and the only workaround ...
209 byte By
ProCop at 2007-9-30 18:12:45
Hi, I saw some portal servers are JSR compliant and some provide JSR support. What is tha difference between being compliant and giving just Support ? Can any body help..?Thanks in Advance
I wasn't sure where to ask this question, but does anyone know when the java 1.5.0 source code will be made available through the Sun Community Source Licensing program? We need to patch an imaging bug (Bug #4937376). We've been able to patchg the 1.4.2 source code, but until the new source ...
2323 byte By
MrMagic at 2007-9-30 19:54:45
Hi, I hope this is the right place to introduce my idea. You all know these ugly NullPointerExceptions which occur occasionally. I think one major problem is, that there are two possibilities of error handling: If a method fails, it can throw an Exception, which is of course the clean way to ...
954 byte By
gysz at 2007-9-30 20:01:19
HiI would like to suggest (if this is the proper topic and/or it wasn't suggested already) the following construct:try {...} catch(SomeException1, ..., SomeExceptionn e) {//treat it}insteed of:try {...} catch(SomeException1 e) {//treat it} ... catch (SomeExceptionn e) {//treat it in the same ...
I really, really think that they should incorporate default method parameter values in the next major release.It is time-consuming, obstructing and confusing to have methods with 1...n parameters.I.e.public void doStuff(int id){doStuff(id,"",false,Collections.EMPTY_LIST, new Date());}public ...
225 byte By
Shane at 2007-9-30 20:30:08
I need to create a function in JS that checks the current Day of the week OnLoad and if the day is Friday, Saturday or Sunday I have a PopUp ad show up. I just can not get this to work. Thanks for any help.Shane
540 byte By
elpargo at 2007-9-30 20:31:55
Not Joking...Is this because of some technical problem or someone just thought of it that way?because for each goes agains any other Java construction, for years Java has been clean to read and easy to undestand even for people that don't know the languaje.Ironically at it may seems C#'s ...
Hi Java Gurus,I would like to know the differences between Java Web Start along with Browsers like Internet Explorer,Netscape and Mozilla.Can any body briefly explain me about Java Web Start
22378 byte By
Adeodatus at 2007-9-30 20:56:22
Anywho, I've wanted (for a while, yet) a BigFraction class. So I made one. I'd like to get comments on it, though, so:/* Author: Adeodatus***//**package java.math;**/import java.math.*;public class BigFraction extends Number implements Comparable<BigFraction>{public static final ...
1826 byte By
del at 2007-9-30 22:29:39
public class debgrader{public static void main(String[] args ){int numberofstudents,score;double next;char answer, grade;do{System.out.println("Enter scores for all students");System.out.println("Enter a negative numger after");System.out.println("You have entered all the ...
64 byte By
polkmnbv at 2007-9-30 22:54:12
Have a look at http://www.theuserbl.ag.vu/index.htm
68 byte By
jmyrla at 2007-10-1 1:13:47
May I know a list of Publicly available JRE's other than Sun
68 byte By
jmyrla at 2007-10-1 1:13:48
May I know a list of Publicly available JRE's other than Sun
I think it would have been nice iffor(int x : 100){}//did the same asfor(int x = 0 ; x < 100 ; ...
267 byte By
webRoota at 2007-10-1 2:21:49
Hello guys!Please somebody could tell-me where can I download a tutorial and code samples to start my studies on Java Telephony?Or may could somebory send to me for webcommerce4@hotmail.com .Thanks a lot. God bless you all !bye bye.
160 byte By
wamemasa at 2007-10-1 3:12:15
Does someone knows what can i do to get the JAIN ISUP API for a VoIP project which i am working for?Thanks a lotRegardsWaldo Masuero