Hello,I want to create instance of class whose has following structure. "Order" + xxx + "Translator" .Where xxx is dynamic value means class name for eg. OrderCanadaTranslator.There is no way to find value of xxx unless runtime.But in class from which i will create instance has no idea about ...
1076 byte By
p54066 at 2007-9-26 1:54:14
I am stuck on a performance problem, I have the following code segment to send UDP messages out an ATM card in a Sun 1405. It works but is dog slow. When I comment out the loopC++ line and run it I get 1.5Mbs to 2.0Mbs out the ATM card. I've doubled checked the rate with a Radcom ATM analyzer. ...
If i add this to my RMI Server..if (System.getSecurityManager() == null) { System.setSecurityManager(new RMISecurityManager());}..I believe I need to specify a policy file:grant {permission java.net.SocketPermission "*:1024-65535","connect,accept";permission java.net.SocketPermission "*:80", ...
186 byte By
pajero at 2007-9-26 1:54:44
does anyone know where to find a Java based xterminal which could be used to link to unix server and run unix shell commands and get the output to client?thx.
Hi,i am using a printWriter object as underOutputStream out = new FileOutputStream(fileName, true);PrintWriter pw = new PrintWriter(new DataOutputStream(out));pw.println("whatever");Now, if I have 2 different objects writing to the same file, then if this happens simultaneously, will there be a ...
741 byte By
ipss2001 at 2007-9-26 1:55:14
I want to distribute array sorting works to two machines. I am now doing in this way :-First of all, I try to divide the array into two small arrays and pass them to two machines, then invoke the RMI sorting function in each machine. After that, I get two sorted arrays and then merge them into ...
76 byte By
denisyu at 2007-9-26 1:55:50
Any body could help me about the title question?- Denis
Hi,I am pretty new to deal Java with CORBA.I have compiled couple of .idl file by idl2java (VisiBroker 4.5). The .java files which it generated I put them in my working java package and tried to compile it (JBuilder 5.0). But got compile error :Error #: 302 : cannot access ...
534 byte By
kenni81 at 2007-9-26 1:56:31
My batch file contains the following...(start.bat)set path=C:\jdk1.3.1\binset classpath=C:\E2EScheduler\ResultSchedulerstart "Test Expiry Manager" java TestExpiryMgrstart "Message Read/Compare Manager" java MsgCompareMgrstart "Waiting Queue Manager" java WaitingQueueMgr These 3 java programs ...
318 byte By
Fardeens at 2007-9-26 1:57:16
Hi all,I have made an application which uses the url class to fetch data from a particular url. This works fine if the user has direct connection to net, but it does not work behind firewalls.Can someone tell me how can it be made to work behind firewalls.ThanksFardeen ...
353 byte By
98028140 at 2007-9-26 1:57:38
i know the IP address of a computer and i want to create an URL with this IP to get its content to an InputStream .is it possible with URL class or should i use another class.the computer which i want to get the content is not a server.please help me. this is the third time i am posting about ...
Hi,My requirement is to read data from an Excel file, play around with the extracted data, and write the result back into another Excel file. I don't want to mess around with BIFF8 formats and stuff like that.Is there any readymade tool available (i mean an API set) which provides me with the ...
781 byte By
mt24601 at 2007-9-26 1:58:24
I downloaded the FTP classes from www.fooware.com for a JAVA program that I am doing at work. I have a problem and I was wonderingif anyone can help me. Consider the following snippet:FtpClient ftp = new FtpClient();ftp.connect(UNIX IP ...
494 byte By
rickdd at 2007-9-26 1:59:23
I am trying to display a FileInputStream in a frame and it won't show up when I run my application. I am kind of new at serialization. What am I doing wrong? try{FileInputStream file=new FileInputStream("c:\\test.txt");ObjectInputStream input = new ObjectInputStream(file);Label u = (Label) ...
722 byte By
mogabure at 2007-9-26 1:59:45
Hi, Here is my problem. I want to access to the attributes of an object stored in an LDAP. I know this object when I receive this kind of url: ldap://163.187.83.145:389/ou=People,dc=slb,dc=com,uid=TOTO;How can I get the attributes of the uid without changing the code below. If I set the ...
About 12 months ago I had properly written a method to download a https url. Now, it seems that this method no longer works. The code is EXACTLY the same, but, now get this Exception being thrown:IOException loading data from the URLjava.lang.NullPointerExceptionat ...
Hi,I have a servlet to which I want to feed a ton of data from a c++ client that I have built. I do this by doing a GET request over a socket and then recieve data back. The following is my request:GET /servlets/ConvertRequest?req=<a ton of data>This however is coming back with the error ...
HiI have some problem executing class file under UNIX. I have a directory under UNIX,/home/user1wherein I have placed a class file say "JavaProg.class"I execute "java JavaProg" from the above directoryand it generates the desired output. Now, I have another directory,/home/user2wherein I again ...
386 byte By
ottox at 2007-9-26 2:00:49
Hello. I was wondering if there is any way i can get information about audio frecuencies from a audio file. What i want (this is ideallistic) is to divide the sound wave in a discrete set of points so i can enconde it in a Vector.Please tell me if this is possible in Java, and how can i do it. ...
356 byte By
valjok at 2007-9-26 2:01:11
It is written in documentation that BufferedReader returns char but actually it returs int. Compiler tells something about precision loss. Sould I explicitly cast int to char?char c1 = in1.read();And one more. In this method 4-bytes int variable is returned, does stream actually reads 4 bytes, ...
408 byte By
leon5wu at 2007-9-26 2:01:17
Hi there,When I start rmi registry, I got "security properties not found.using defaults" message. Then, starting the server and I got "HelloServer bound in registry". But, when I started appletviewer, I got "access denied".....at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown ...
Hi:Can anyone tell me which file contains all the registered application signature in win98/win200. I am using java to develop an application to open a file in windows system according to the file's extension. For instance, to open a file abc.doc use winword, to open a file abc.xls use excel ...
60 byte By
dwl267 at 2007-9-26 2:01:31
how do i create microsoft word docs with java?
1446 byte By
Kngus at 2007-9-26 2:01:32
Hey everybody, I'm just looking for some advice on OOP, I am a striving OOP programmer, and whatever I code I go for the Object Oriented approach, but right now I'm kinda curious which route to take in my current project.I have a program which will display information on Operations, Tasks ...
203 byte By
bsyst at 2007-9-26 2:02:03
I am implementing an check-email that is in tray and shows a message popup saying how many e-mails has in my account of a server any pop3. How I obtain sources example that implement this?
289 byte By
sflorida at 2007-9-26 2:02:04
Hello friends,I have files which has following format.Paymentxxxx.xml where xxxx is time in YYYYMMDDHH:MM:SS format.Example file name can bePayment20010726143455.xml.How to sort such files according to time so that i can get old files first.Thanks
641 byte By
dnoyeB at 2007-9-26 2:02:10
I have been discussing this on the java forum on the internet. I dont have the answer.Why must the local variables be final in order for an anonymous class to use them?void function(final int x){ Object obj = new Object() {int z = x; };}If x is not final I get an error. I dont see how final ...
253 byte By
larry397 at 2007-9-26 2:03:15
I want to be able to an HTTP server and download a file. I know how to connect to remote computers using socker/serverSocket objects. Can anyone give me a push in the general direction? (ie, like creating an instance of HttpURLConnection?)
3669 byte By
geotdw at 2007-9-26 2:03:21
Hi... I would really appreciate if someone can help me out fugure this problem , cause this haulted the entire project i'm working on... I am creating a serial connection between my computer and a server located on a different machine... Both are connected via a serial cord... Now my program ...
591 byte By
atoolm at 2007-9-26 2:03:37
Hi,I have a client(in C) open a socket and server(in java; jvm 1.2) listening on the same port(e.g. 4444) accepts the request and establishes a socket conn. Now the sockets are kept open indefinitely. If I kill the server process and bring it backup, the client(in C) cannot communicate with the ...
Can a Stateful Enterprise Bean listen on JMS Queue?
400 byte By
bhaskarg at 2007-9-26 2:04:22
how to control or create my own words when i press ctrl+alt+del in windows using javai want to control all keys of keyboard ,like if i press alt+tab i have to display a message etc..... using javaand how to control minimise button and maximise button winkeys and ctrl key etc...... using javahow ...
Hi,I have developed a chat application using RMI. My chat application has features like room chatting, personal chatting, conference chatting. There are no permanent users. I am storing the users in a hashtable.My application is becoming slow when I try to open any windows like personal ...
Hi all,I am facing an issue related to RMI registry and dynamic class loading. I will try to explain this problem clearly..I have a RMI interface and RMI server which implements the interface, for example (ignore any syntax error for now, just need to get the idea):interface Server extends ...
183 byte By
Rinki at 2007-9-26 2:05:10
I got an assignment to code a program which scanes all files in hard disk. Like scandisk utility in windows OS.Could you help me if yes, then please.rinki
251 byte By
valjok at 2007-9-26 2:05:53
I am is writing www proxy. Proxy must pass as char data(http headers) as binary data(images). What sream must I use? The best could be DataInputStream, but I need to read header text line by line and readLine is depricated in that class.
308 byte By
garazy at 2007-9-26 2:06:03
Hello,I was wondering if anyone knew of an easy way to search for an ip address in a string.For example, I know the format is always going to be four numbers seperated by a dot.I was just wondering if anyone knew the right method to approach this?Regards,Gary ...
636 byte By
rezvanf at 2007-9-26 2:06:22
HiIm currently tring to set a RMI enviroment where there is a rmi registry and a server with remote object that bind to that registry on a local machine behind a firewall, i wish to have a applet that can be located anywhere to call a remote method passing itself, therefore enabling two way ...
Hi all,Environment is Solaris, BEA, probably ( will be using JNDI ), LDAP server, backend applications like Windows PDC, Exchange Server and Domino Server all using LDAP as Single Sign on.I went through quite a lot of docs but probably i did not get the information i require :Here i am ...
Hi there,How to write API using java.If I write an API using java, can any other application written in ASP, CGI can call those API. If yes, how to do the same?expecting the replies at the earliest.thanks,vankat.
Hello,I was making chat through Applet-Servlet comm.(Http tunneling) for which i needed the object of Applet for writing on Stream and for that i implemented Serailizable Inteface but when it's written on stream through WriteObject(applet object); It was throwing an exception kinda object ...
325 byte By
l_t_c_ at 2007-9-26 2:06:52
If I have an image (gif or jpeg) or a component put in a pane, when I change the size of the pane, what will happen? I want to know if the image or component resize (becomes larger or smaller according to the size of the pane) automatically by default? Or they will be displayed in the scroll ...
822 byte By
l_t_c_ at 2007-9-26 2:06:53
Components in the top-level container (II)In a frame, JFrame, there are several components, such as JTextArea, JButton and etc. Could I write a program to resize them in the outcome. The meaning is once the class is established, these components are layout in the frame. Is it possible for me to ...
181 byte By
saimaj at 2007-9-26 2:06:57
Hello i want to write text in image file at run time, wants to know is there any java libaray which can be used for image and text mergingregards
Hi,I have a JTable having 5 columns. I have made all cells editable (except the last one) in the last column. The first column holds string data whereas rest of the columns hold float data. Now what I want is, when I enter some number in any of the last column's cell, the other cells in that ...
503 byte By
valjok at 2007-9-26 2:07:33
I am writing a WWW proxy. In previews versoin I used exclusively readers so symbolic information was transferred perfectly but images was corrupted. Now I am using DataStreams to transfer data and images are transferred OK. But now some non-ASCII characters represented as "?". Can somebody ...
668 byte By
gmacari at 2007-9-26 2:07:52
Hi All,We are currently using Iona's Orbix Web to lookup upobjects via the naming service. I am trying to useJNDI and the CosNaming service provider instead.My question are:1: Can the java ORB comunnicate with the Orbix WEB ORB ?2: How would I lookup an Object with a entry in thenamingservice ...
1383 byte By
J.Prisco at 2007-9-26 2:07:59
Although not really new to java, Im quite a newbe in so far as JNDI is concerned. What Ihave seen up tothis point I have liked. Currently working on an application framework I decided to revamp an essential part of this framework. The framework does a lot of object binding to make it very ...
194 byte By
palanisr at 2007-9-26 2:08:16
Java 2 API says that Vector implements Serializable but I am getting an exception java.io.NotSerializableException: java.util.Vector$1. Please help.Thank you,palanisr
Hi all,I am facing an issue related to RMI registry and dynamic class loading. I will try to explain this problem clearly..I have a RMI interface and RMI server which implements the interface, for example (ignore any syntax error for now, just need to get the idea):interface Server extends ...