why do we need a throw or clause when we have the catch blocksi m confused bt this concept can any body help me out .and differences between throw and throws
I think it's high time that the java library include some implementations of popular algorithms in the API - things like Mersenne Twister, ISAAC, Blum Blum Shub (;~)), etc. It would help get people out of the habit of using crappy prng's just because they're available (and Math.random() ...
The addition of ways to easily operate on vectors would, in my opinion, be a benefit to the language.Things like vector addition, multiplication by an integral primitive, and easy ways to take sublists. Granted, these operations might not see much use in larger applications, but they certainly ...
774 byte By
GuiPoMa at 2007-10-1 11:25:48
Hi !I had to create a proxy using JAIN SIP. To create a local SIP network, I use JAIN SIP presence proxy (using ant run-proxy to launch it) and then I use 2 SIP phones (for exemples JAIN SIP phones (using ant messenger in the good directory). I have the same problem with messengers included in ...
Because I didn't know this and I might not be the only one...Unlike previous Java releases, for Mustang (Java 6.0) Sun are actively seeking contributions from the user community: http://java.sun.com/developer/technicalArticles/J2SE/peabody/In aid of which you can obtain and work with the full ...
After starting an external subprocess in java we turn to have a problem with reading and writing to the subprocess inputstream and outputstream if the external procress is an interactive process that is if an input is needed to be written to the OutputStream of the process.when an external ...
175 byte By
sooda at 2007-10-1 13:45:37
Hi thereI just wanna know how to implement SIP protocol?Do I have API for it?I want to develop and instant messaging service.ThxVarun
I think that it wasn't possible in the previous versions of java. The next code compiles fine with jdk1.5.0:public class Test {public static void main(String[] args) {int[] arr1 = {1, 2, 3,}; // <- last commaString[] arr2;arr2 = new String[]{"a", "b", "c",}; // <- last commafloat[] arr3 ...
232 byte By
san_suna at 2007-10-1 14:48:06
I have one doubt regarding ServerSocketsCan i use more than one ServerSockets in a server program?without closing ServerSocket or socket , connection with the server is closed automatically . how? please help me
Plz anyone know how I can Download and configure javax.comm package.I want to access modem to dial number through program.
395 byte By
gogaaka at 2007-10-1 18:14:11
hello all,If I am good with my java base and most of the J2EE concepts can i go straight for the Sun Certified Enterprise Architect . I havent done any other certificationsAnd after I do the SCEA, would i get a job as a fresherIn other words, as a fresher would i get a job easily with SCJP or ...
Hi,I am planning to develop a voip application with JAIN SIP API. recently, i've downloaded it. and now i've got problem in running Example.class that I got from the documentation. import jain.protocol.ip.sip.*;import jain.protocol.ip.sip.address.*;import jain.protocol.ip.sip.header.*;import ...
HiDoes anyone know where i can get(download) spec for Java class FileThankssbelur
can anyone tell where can i find source code of JVM(IBM's or SUN) . is it free or not?Thanking you in advance
well, I know I might be in the wrong place with this, but since the subforum's theme is somewhat related to my question, I'll try to get an answer here.Along with the upcoming hype around AJAX ( http://en.wikipedia.org/wiki/AJAX) I see the need for a clean and extensible code base for rapid ...
1017 byte By
naddada at 2007-10-1 21:45:35
Hi,Does anyone know what this runtime exception is ?java.lang.RuntimeException: bad message tag missing!at gov.nist.javax.sip.stack.DialogImpl.addTransaction(DialogImpl.java:672)at gov.nist.javax.sip.stack.DialogImpl.<init>(DialogImpl.java:577)at ...
Hi,Does anybody know if is avaliable an implementation of jcp 197 ?If that, where I can find it.thank's
Hi all good morning.I have a problem. I am dynamically creating a text file depending on some creteria and I want to print that text file using java print API. I written the following code.PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();DocFlavor flavor = ...
Hi all,First I have to tell you that, if this is not the place I have to post this very sorry for my mistake. What I need to know is,?I have an applet I developed for a commercial web site using J2SDK 1.4.2?If the viewer doesn抰 have JRE in his machine my web page will detect that and redirect ...
HiIs there anyone who have successfully run the example given by nist for the SIP over TLS. If so please help me in doing it...This is the link for the source code... http://www.cdt.luth.se/~johank/smd151/jainsip/examples/tls/With Regards,Litty Preeth
dear sir, please can u send me jdm architecture .the communicatin between user and jdm architecture.
dear sir, please can u send me jdm architecture .the communicatin between user and jdm architecture.
dear sir,what is this and how to use
what is this Enterprise Information System and how to use
Hi,I am recently came to know that certification will plays a vital role in our career. Now I'm intereted in preparing for scjp. I know jdk 1.4 but not much 1.5. What is the suitable and helpful in future to take certification? Is it compulsory to take training from sun like Java Programming ...
1170 byte By
Swathia at 2007-10-2 0:44:44
We are trying to export data from jsp to excel. As there is problem with size of excel being downloaded, we are using POI which solved our problem of memory and time taken to download. But now we are not able to access the file from the client. The problem is as follows.We are placing Excel ...
1170 byte By
Swathia at 2007-10-2 0:44:45
We are trying to export data from jsp to excel. As there is problem with size of excel being downloaded, we are using POI which solved our problem of memory and time taken to download. But now we are not able to access the file from the client. The problem is as follows.We are placing Excel ...
Hi All,I am new to SIP. I downloaded the NIST SIP Proxy and got it run. Now I am trying to understand its code and make few changes.I wrote a sample client program using JAIN SIP which sends message to SIP Proxy. In this configuration, I configured the Outbound Proxy parameter of SipStack to be ...
How should i print from java ?
I want to build an password manager application that can provide a servise similar to popular browers like opera and mozilla.I want to know if there are any classes in java taht can help me in this.Is there any way that the application can know when a user opens a webpage that asks for password ...
I'm interested in understanding how Sun and other 'toolkit' providers manage their software development cycles to maintain public APIs from release to release.I am currently part of a large software project which plans to deploy a large existing codebase as a toolkit for others to develop on ...
1237 byte By
art64a at 2007-10-2 2:08:21
Hello!The problem is as follows: I have an enum class, let it be E, and want to ensure that some switch(E) statements are complete in the sense all E values have cases in each of switch(E). This way, if I would add a new element to E, the code would not be compilable if one of these switch(E) ...
534 byte By
Almonda at 2007-10-2 3:29:41
public class HelloWorld{private String message = "";public static void main(String args[]){ HelloWorld me = new HelloWorld("Hello World"); me.printMessage();}public HelloWorld(String message){ this.message = message;}private void printMessage(){ new MessagePrinter(message);}}class ...
764 byte By
Almonda at 2007-10-2 3:29:43
public class HelloWorld{private String message = "";public static void main(String args[]){ HelloWorld me = new HelloWorld("Hello World"); me.printMessage();}public HelloWorld(String message){ this.message = message;}private void printMessage(){ SpecificMessagePrinter newPrinter = new ...
1506 byte By
odia at 2007-10-2 4:00:28
Hi, guys,I'm developing a simple JAIN-SIP application.I want to send a BYE back after receiving a ACK of INVITE's OK. But in the BYE request, i found that the toAddress is "10.11.12.13:5060". The fromAddress is correct.How does it come? My codes:private void processAck(RequestEvent ...
Hi . I have a Problem.I want to work wiht a class (using it's methods, seting attributes, . . . ). But the name of the class is not known in the time of compilation only in run-time.So, can I?Is there a methode in Java for executing commands via string?Because I can only save the name of the ...
1120 byte By
esb_rita at 2007-10-2 5:45:44
I'm working on a small platform independent project that requires communicating with a usb device. The device comes with virtual com port drivers for Windows, Mac OS X, and Linux. I've been searching for an API in java to communicate with the USB device through the vitrual com port. I was ...
Hello,I'm using the javax.comm library to communicate from the serial port. The program works fine connecting the serial port to the machine I want to connect.But if I connect the machine to the serial port in a multiport usb the program hangs in the close port statement, and I don't know how ...
Hi All,We are developing a J2EE application in which we have to make drag and drop feature in the JSP. (its a web based application). I know we can do it in swings but we have to do it in HTML,JSP only.the situation is a table 'll be loaded in the webpage and you can drag and drop the ...
765 byte By
lanhuia at 2007-10-2 8:00:10
hi!!when i implement the jain-sip'interface of SipListener,i meeting a strange problem.in my program,i send a "invite" sip packet to the callee,then i received the response sip packet of "180"and "200ok" from the callee,but in my method of processResponse(ResponseEvent responseReceivedEvent) ...
hi, I felt very puzzled that when I see such sentence"The JavaTest?harness is a general purpose Open Source Java API for creating Java test software", but where to get its source code and related documents such as javadocs? I have searched it at many Java sites includes that of Sun's, but they ...
3869 byte By
steevena at 2007-10-2 8:45:09
/** * 1. NullPointer Suppress, according to [Nullable] annotation * need JVM support * avoid many null judgment code. */[Nullable]public void testNullable(A a){return a.b().c.d(); //how many line it will cost using "if-else" null check?}/** * 2. Dynamic property, for better IDE and compile time ...
Hi there,I've been programming in Java for 5 years now, and there is one feature which will make my life alot easier.I'm talking about string escaping (a la c#'s @"c:\Docs\Source\a.txt", or python's single quoted strings).What do you think about it?
I'm currently doing a research on the standard usage of the 5 levels of Log4j. My question is that is there a standard convention of which level to use when we program? Like should we use DEBUG more often than INFO? I understand that there are certain circumstances which require us to use a ...
We are getting out of memory errors that do not seem to be associated with the heap ,because we are monitoring the available space and there is plenty of space.It happens when the class loader is loading a resource.Is this possible?
1876 byte By
jiea at 2007-10-2 10:57:20
i want to develop a registrar by using JAIN SIP API.when i use the Windows Messenger(WM for short) as a SIP client to test my registerar, i get a problem.when WM logs out, it sends a REGISTER request(M1 for short) to my registrar as following:REGISTER sip:aaa.de SIP/2.0Via: SIP/2.0/UDP ...
9459 byte By
jcaia at 2007-10-2 10:59:55
Hello, everyone, I am new to java.recently i just created an rotating image by using the timeline feature in Dreamweaver,i want to post this rotating ads in another website. but i think the code is too long and it may scare them, anyone know if this code can be simplified? thanks<!DOCTYPE ...
HI Friends,I got jUSB package from net.Byt i dont know how to install it on windows.There is a pdf containing the way of doing that.But it is not working.Please give me the reply about how to do it....thanking you
593 byte By
lakyboya at 2007-10-2 14:27:18
Hi All,There is a problem which I faced when developing a remote desktop handling application using java.How do I recieve the mouse pointer coordinations when Im out of the java GUI component's boundary in a platform independent approach? (ex. when the mouse pointer move out from the JFrame)? ...
1038 byte By
chris0a at 2007-10-2 16:50:30
With the advent of multi-core CPUs with potentially hundreds or thousands of cores introduced over the next 10 years, I don't feel we currently have the software technology to take advantage of this hardware.Whilst the Java thread model is quite reasonable for simple multi-threaded designs, it ...