3385 byte By
haridsv at 2007-9-26 3:09:46
I am trying to evaluate the SoftReferences to enhance my caching mechanism and wrote this small program to observe the behavior of GC. I tried with both 1.3.1 and 1.4beta (1.3.0 is not good for SoftReferences because of a bug). I am getting an OutOfMemoryError though the GC is supposed to make ...
Dear All,How to send my mail content as HTML format using Java Mail. Please help me to solve this problem.thanks in Advance.Venkat
640 byte By
kaze0 at 2007-9-26 3:10:24
When I try to use a robot.mouseMove(int, int), it seems to work somewhat randomly. The robot constructs fine. But a call to robot.mouseMove(20,20) does not move to (20,20), for example it may move to the mouse from (10,10) to (40,30) a subsequent call to mouseMove(20,20) at (40,30) however ...
170 byte By
slackman at 2007-9-26 3:10:34
when I from a class extending observable calls notifyObservers() .... is it a new thread created or current which does the updates of observers?Stig.
So, i'm trying to open up a browser window to download the mac runtime for java, if the system is a mac. but because of microsoft not letting java to javascript communication i can't do it. anyone got any ideas?thanks,Pete
334 byte By
ecra3465 at 2007-9-26 3:11:43
Hi,Are the local variables of static methods garbage collected in thesame was as the local variables of nonstatic methods?Also my program is stopping without any error message (and for noapparent reason) when i run it on large datasets. Does this soundlike a memory leak? thanks ...
4847 byte By
ham17151 at 2007-9-26 3:11:51
Hello Everyone. I'm trying to build a JTable from 2 Vectors (e.g. constructor MyTable(Vector(column names), Vector (row data)) that will contain values obtained from a query through JDBC-ODBC bridge from an Access db. I have a book that shows an example on how to add strings, integer, and ...
179 byte By
amymoon at 2007-9-26 3:11:56
hi,How to use JavaComm API to establish connectivity between two modems on two remote PCs. please help me ! Any samples are welcome.thanx
69 byte By
lingxiao at 2007-9-26 3:11:57
Urgent! pls reply to wulingxiao@sp.edu.sg. thank a lot!
611 byte By
MmarcoM at 2007-9-26 3:12:14
hi all, i have a problem. i have an RMI server that makes use of some classes. in those classes, i am raising exceptions.problem is that the first time that those classes are called, the correct custom exception is raised.all the following times, i receive a java.util.EmptyStackException, and ...
319 byte By
neejain at 2007-9-26 3:12:17
HiI am planning to write a "find" utility in java to search for any file on my system. It'll be something similar to windows "find files or folders".I don't know if java has provided some built in APIs for it or not?Please help me if there is any such API.ThanksNeeraj ...
Hi! I am in a little fix. I am supposed to study/evaluate the pros and cons of shifting to the java platform for my organization. Has anybody done some similar exercise and could share his experience and result of the exercise. Or if you know of some good independent study/analysis? Guys ...
Hello all,I have a package of classes defined by some one stored at c:\abc\util\ , how I can import the classes saved at this path, what changes I have to made in autoexec.bat.regards Yogesh
HiI have a subclass of the URLClassLoader that used in conjunction with some wrapper classes, allows me to load JDBC drivers from outside the classpath on the fly and have them pass the security manager's checks.I wish to invoke a class that will only work if the driver is loaded with the ...
Hi ,Can any one tell me How RMI works ?U can also think that Why i should ask this very Basic Question when there are many books available to Clear these sorts of Doubts..But its really a best thing that can happen is get things from someone who has done Projects in RMI.So Please if U guys can ...
158 byte By
LudoD at 2007-9-26 3:13:33
Hi, I'd like to develop a personnal web site using Servlets and jsp. How can I find a public host server allowing this technology ?LudoD
Hello i am implementing find and replace method in JTable which will do the same function as cntrl+ f and cntrl+h of excel sheeti got the value of a cell byString val=getValueAt(int row,int col).toString();and i have compared it with search string byval.getIndexOf(search);now if i find this ...
586 byte By
matper-8 at 2007-9-26 3:13:50
I know how to use the synchronized methods, but how do I synchronize code-sections inside mehods?For instance, if I have a vector in a class that must never be tampered with by two threads at the same time but i don't feel like making synchronized wrapper-methods around the methods in the ...
586 byte By
matper-8 at 2007-9-26 3:13:51
I know how to use the synchronized methods, but how do I synchronize code-sections inside mehods?For instance, if I have a vector in a class that must never be tampered with by two threads at the same time but i don't feel like making synchronized wrapper-methods around the methods in the ...
673 byte By
KausikG at 2007-9-26 3:14:24
I am using the RMI tutorial from Sun URL: http://developer.java.sun.com/developer/onlineTraining/rmi/RMI.htmlAfter proper compilations of the example's Calculator interfaces and implemantation classes and stub and skeleton generations, when i started the rmiregistry it says ..."security ...
My client, represented by a java applet, is communicating with a servlet. When the webbrowser is closed, the servlet still has to do some cleaning up.By closing the browser the destroy Method of the applet is invoked, but doesn't wait for a confirming success message from the servlet. The ...
2760 byte By
maleev at 2007-9-26 3:15:22
Hi guys,I have a tricky question:I'm generating PDFs in a server-side application. This worked OK until the OS was upgraded. At the moment it is Sun OS 5.8. I wrote a simple program to test how OutputStreams are converted to ByteStreams:import java.io.FileOutputStream;import ...
284 byte By
slackman at 2007-9-26 3:15:46
Im trying to figure out synchronization. Say I have an vector, 2 threads, where 1 of them are trying to add something, and one of them are trying to get the vector elements, and I have a get and a set method for this. Should I then synchronize those methods?Stig.
Hi,I am having problem when using ObjectInputStream for reading objects from file. To illustrate the problem here is a small program that writes string objects to file//StringWriterTest.javaimport java.io.*;public class StringWriterTest{public static void main(String [] ...
86 byte By
bjornhel at 2007-9-26 3:16:51
What is the best way to writa a CORBA server in java for Delphi client ?
I have lot's of data, that satisfyes following conditions: -if it's needed, there will be allways notification before -it can be reconstructed anytimeWhen memory is allmost full I need some of the least priority data released, and when some data is needed and it doesn't exist yet, I want it ...
152 byte By
sn1979 at 2007-9-26 3:17:20
PLease any one suggest me the projects which can be develope in java, it is nice if they are related to networking.require urgently
All,We have been giving a requirement by our customer to try and get access to the current users NT loginname and NT password. We need to do this so we can get a connection of a database that uses the users login information without re-asking the user to enter their login information.I know ...
Hello everyone. I'm writing a simple database application where if a new record is to be entered a new frame pops up from the parent frame with textfields, checkboxes and such. I have it turn this data into an object when its submitted, but how do I return this data to the calling class?Could ...
460 byte By
nyker at 2007-9-26 3:17:40
I am trying to write a java application that will connect using JSSE to an https server. The problem is that I do not know how I can use multipart form posting to the https server. I need to use multipart form posting because there are several binary files that needs to be uploaded to this ...
1587 byte By
gwgeller at 2007-9-26 3:17:54
Here is my error, just out of curiosity I ran the code without my server going and I still got the same message, this is what I got after I typed: C:\jsdk2.1\webpages>java -Djava.rmi.server.codebase= http://localhost:8080/ -Djava.security.policy=java.policy ...
Hi all, new to this list, but searched it and couldn't find exactly what I'm looking for. Simple question. How do I dynamically allocate a java type, passed as a parameter, in the C++ native method.I would "like" all my return values to represent error codes. So I need to "retrieve" data via ...
HelloWhen I am calling the ClassLoader.getSystemClassLoader() method in my java program and running it as an application it works fine and it returns me the value="sun.misc.Launcher$AppClassLoader@a2bd45fd" but when I am trying to run it as a NT Service on Windows 2000 workstation the value ...
I'm trying to develop a HTTP form-like file upload applet in Java 1.3. It will be for extremely large file transfers (500Mb+ sometimes).I have the security issues pretty much worked out, and I finally figured out how to write to a URLConnection so that the server thinks it's getting a ...
566 byte By
lingxiao at 2007-9-26 3:19:27
Say there is a class named A with a synchronized method:public class A{ public synchronized void method1(){ ....}}and there is a class B which is a subclass of A and tries to override the method1();(1)public class B extends A{(2) public void method1(){(3)before();(4)super.method1();(5)after();} ...
Dear Readers,I develop Client Server Applications. I would like to know how we can access the hard disk from an application so that I get the Serial Number of the Hard Disk, the Floppy Disk number, CD Rom Drive Number and Network Card Number.Please suggest.Yours Truly,Sarwottam ...
How can I create binary Jar file in order to hide the code from the client?
hi ,i am trying to print a file,i am using this code PrinterJob printerjob = PrinterJob.getPrinterJob();Book book = new Book();PrintText1 pt1 = new PrintText1();book.append(pt1, new PageFormat());printerjob.setPageable(book);boolean doprint = printerjob.printDialog();if ...
981 byte By
gschmitz at 2007-9-26 3:20:29
Hi there, I would like to know if it is possible to obtain the amount of memory that an object holds. I know I can use the freeMemory() or totalMemory() methods to get an amount for the JVM. However, I would like to know how much memory each object in my program consumes. Is this ...
230 byte By
WHOSNEXT at 2007-9-26 3:20:46
How to make an application which do some jobs by a schedule?For example, at 9:00, the app rings to notify it's the breakfast time.Is there some other ways except checking if it's the time with thread?
301 byte By
mdshukla at 2007-9-26 3:20:54
I am using Java server side i.e. Servlets and JSPs.I want know what is use of XML with java in detail please.I read XML bible upto Elements and DTd's, I got use ofXML in general but could not figure out it's use with jsps and servletsthanks in advanceMandar ...
920 byte By
vleidl at 2007-9-26 3:20:56
I'm trying to implement a way of monitoring method calls on certain objects so that I am able of enforcing security constraints on these calls. Considering the functionality provided by the reflection API, I thought that dynamic proxies would be a viable solution. But they have one major ...
334 byte By
oasienne at 2007-9-26 3:21:00
hello guys!let's say that a class A has a many-to-many relationship with class B. To express that association, they both pass through a one-to-many relationship with a class C.Has anyone dealed with implementing such association in java programming. Clues, tips, hints?Thanks for any answer! ...
/////////////////////////** Hello allI have tried to made the following program bug free but I could not made. Following program has one error please remove that. ///////////////////////**//** Program to dial a Phone number using serial port programming*/import javax.comm.*;import java.io.*; ...
Hey all. In Java 1.3 I used serialization to put a Document object into a database. Now, using 1.3.1 I found out that the serialization has been broken. Does anyone know the best way the get the information out of the 1.3 Document object and put it in a 1.3.1 Document object?Cheers All!!! ...
I am trying to Insert into my database table with the executeUpdate method. The message I receive is of a positive insertion, by checking the return value of the function. But my database table is unaffected and I see no Insertions in it, neither do I get any Errors here. What can be the ...
152 byte By
Aburuqaa at 2007-9-26 3:22:20
Hi everyone;i would like to ask if a java application can be integrated or converted into winNT service?thankx all .
/////////////////////////** Hello allI have tried to made the following program bug free but I could not made. Following program has one error please remove that. ///////////////////////**//** Program to dial a Phone number using serial port programming*/import javax.comm.*;import java.io.*; ...
Hi thereI have posted a similar question on the AWT list but it seems that nobody knowsMy qestion isIf I have a class that fires some kind of eventis it then possible for another classto catch this event without knowing who fired itand whare it came fromTo day you usally create an listener ...
378 byte By
amitmasl at 2007-9-26 3:23:17
helloi'm using:* windows NT operation system.* a laptop with external communiction ports adaptor.* using javax.comm package.the method:Enumeration portList = CommPortIdentifier.getPortIdentifiers();returns with no elements.on a desktop pc it works fine.where/what is the problem? ...