1 2 3 4

exception handling

171 byte By lingarajua at 2007-10-1 3:54:09
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

A java.random library

462 byte By Adeodatusa at 2007-10-1 7:53:09
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() ...

Vector manipulation

360 byte By Adeodatusa at 2007-10-1 8:26:56
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 ...

Problem using JAIN SIP presence proxy with JAIN messenger or phone

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 ...

Contribute to Java 6.0

538 byte By dcmintera at 2007-10-1 11:50:51
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 ...

(Process) Problems with reading/writing to an external Process

4017 byte By valrio_chenzoa at 2007-10-1 13:22:48
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 ...

how to implement SIP protocol?

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

last comma in array

1110 byte By javakolika at 2007-10-1 14:00:51
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 ...

Mutiple ServerSockets

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

Access Modem

136 byte By MadanSingha at 2007-10-1 18:08:48
Plz anyone know how I can Download and configure javax.comm package.I want to access modem to dial number through program.

java certification

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 ...

JAIN SIP

10015 byte By Willie_8363a at 2007-10-1 18:32:59
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 ...

Java Class Spec

109 byte By belur_1da at 2007-10-1 19:21:51
HiDoes anyone know where i can get(download) spec for Java class FileThankssbelur

JVM source code

124 byte By csd01428a at 2007-10-1 19:53:21
can anyone tell where can i find source code of JVM(IBM's or SUN) . is it free or not?Thanking you in advance

Porting Java Sources to other languages

1341 byte By siteartworka at 2007-10-1 21:44:19
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 ...

JAIN SIP exception - bad message tag missing!

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 ...

Implementation of Generic Connection Framework (jcp-197)

132 byte By spike7419a at 2007-10-1 21:49:42
Hi,Does anybody know if is avaliable an implementation of jcp 197 ?If that, where I can find it.thank's

Problem in Printing a text file

1096 byte By snhpfb@ocimuma at 2007-10-1 21:59:26
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 = ...

Permission to use java

824 byte By Sameera_Abeysinghea at 2007-10-1 22:34:23
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 ...

NIST Example of TLS with JAIN SIP

292 byte By littypreethkra at 2007-10-1 23:41:25
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

jdm architecture

121 byte By rafi_onlinea at 2007-10-2 0:01:11
dear sir, please can u send me jdm architecture .the communicatin between user and jdm architecture.

Enterprise Information System

121 byte By rafi_onlinea at 2007-10-2 0:01:15
dear sir, please can u send me jdm architecture .the communicatin between user and jdm architecture.

Enterprise Information System

50 byte By rafi_onlinea at 2007-10-2 0:01:16
dear sir,what is this and how to use

Enterprise Information System

64 byte By rafi_onlinea at 2007-10-2 0:01:18
what is this Enterprise Information System and how to use

scjp preparation

848 byte By Anand-K.Durgama at 2007-10-2 0:29:42
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 ...

Accessing POI generated Excel from client

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 ...

Accessing POI generated Excel from client

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 ...

Sending and Receiving messages at SIP Proxy

872 byte By NAVEEN-KANTHEDa at 2007-10-2 0:52:22
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 ...

Printing help

37 byte By Kavarthapu.Madana at 2007-10-2 0:55:51
How should i print from java ?

password manager

530 byte By aneez_backera at 2007-10-2 1:50:01
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 ...

Toolkit Development Process - and API maintenance

848 byte By schmidtaja at 2007-10-2 1:58:48
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 ...

enum, switch(), ensuring completedness and uninitialized variable warning

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) ...

can anybody explain to me bout dis syntax? i'm the beginner here!

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 ...

this one also...please help me.....i'm dumb in programing...hu..hu....

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 ...

JAIN_v1.1: Wrong toAddress in BYE request

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 ...

Is it possible?

979 byte By JohnyGeea at 2007-10-2 5:34:53
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 ...

Java Communications API

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 ...

Problems with javax.comm in a usb multiport

580 byte By daljamasa at 2007-10-2 7:33:17
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 ...

All the gods of J2EE out there Pls help

616 byte By aks_katha at 2007-10-2 7:57:13
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 ...

the problem about the ResponseEvent and RequestEvent in the jain-sip

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) ...

Where to download the source code for JavaTest?harness?

351 byte By javabeginera at 2007-10-2 8:42:06
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 ...

11 new factor suggested for morden java language

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 ...

String escaping in Java

281 byte By gilhoffera at 2007-10-2 9:13:02
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?

standard uses of log4j's 5 levels

948 byte By log4j_help_neededa at 2007-10-2 9:49:26
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 ...

out of memory error

253 byte By David_Bakera at 2007-10-2 10:22:32
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?

Problem in developing a SIP registrar.

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 ...

Anyone can help me to trim down this Java code? Appreciated

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 ...

How can i install packages in windows

234 byte By kmctboysa at 2007-10-2 11:24:38
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

Mouse position capturing

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)? ...

Parallelism and Threads

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 ...