how does the visibroker Interface repostory works?

527 byte By umen at 2007-11-20 9:56:22
hello all , im not sure it is corba related but people using corba probably are here ..if someone every used visibroker corba and used the irep process , this is the processthat load the interfaces based on the idl files . i wander how does it do that ? i mean it must compile the idls to convert the...

JDBC compare the content of two tables

724 byte By George2 at 2007-11-20 9:57:53
Hello everyone,I am using JDBC to compare the content of two database tables -- writing a general function and two tables are input. The two tables have various types of columns, like VARCHAR, BLOB, INT, FLOAT, etc.I want to save my time to write various statements to get values by different types a...

problem exporting to pdf crystal reports

654 byte By gnorro at 2007-11-20 9:58:08
HiI have a problem when I create a crystal report in pdf format from a jsp using this code:ExportOptions exportOptions = new ExportOptions();exportOptions.setExportFormatType(ReportExportFormat.PDF);PDFExportFormatOptions pdfexpopts = new PDFExportFormatOptions();exportOptions.setFormatOptions(pdfex...

AWT textfield validation

251 byte By sarnkr at 2007-11-20 9:58:19
Can anybody help me in validation of textfield?<br/>I am writing a prg , inwhich I want to restrict user to enter somespecific values for a textfield. If user enters other than that..cursor should not go to next field <br/>Please help me in this

Need Help with a Cinema Booking SYSTEM

607 byte By Crimson357 at 2007-11-20 9:58:29
************************************************************Hi, im a beginner trying to wreck my brains figuring out how to successfullydevelop a Java system which enables the user to first choose from a list of movies, input the number of seats desired and display the pricing.The program will then...

web service

722 byte By aaanju at 2007-11-20 9:58:30
Hi,Iam new to web services. Iam trying to create web service and deploy it. I have created the web service in 1.4 Jax RPC, When I tried to open the page through the Http in my browser, it is with the soap envelope (i have written at the last) . How can I create the web service, so that in the browse...

HSSF & Spreadsheets

1221 byte By asantavicca at 2007-11-20 9:58:33
Does anyone know if you can create an array of sheets (sheets, not workbooks) using POI-HSSF?Here's my situation:I'm trying to write an app for my boss that will automate one of the business processes we do. On a very scaled down level, I'm trying to read in a data file, sort and proc...

Problem with IPC in Java

646 byte By jobless at 2007-11-20 9:58:53
Hi,I am designing a java application that has two threads (the parent and one new thread I created)My parent thread has a JPanel (displayPanel) that displays some data.The second thread gets new data in real time from a socket. This data is stored in a singleton that acts as a global variable. When...

Problem with Java writing a Unix Named Pipe

1325 byte By jeremiorama at 2007-11-20 9:58:57
Hi, I am having a hard time to figure out what is wrong with my Java code.I created a named pipe with unix like this:/home/users/myself> mkfifo pipeThen, in my Java code, I do this:////////////////////////////////////////////BufferedWriter lLogPipeWriter = new BufferedWriter(new OutputStreamWrite...

debugging JNI application

393 byte By George2 at 2007-11-20 9:59:30
Hello everyone,I am wondering if I want to debug JNI application (upper layer Java and lower layer C), are there any tools to debug through Java code to C code and return back from C code to Java code.I am using Eclipse. But I do not find such functions in Eclipse (maybe I miss some plug-ins?). Curr...

How to extract Biometric data from fingerprint

315 byte By mskamal at 2007-11-20 9:59:43
Respected All I would like to comparision of fingerprint biometric data from reference sample, my problem is to how I shall extract biometric data from fingerprint. It may be patttern recognition can help in this stage..Please share any idea(programatic solution) or some alogrithim if possible...

Exception in thread "main"

1023 byte By Kassam at 2007-11-20 10:01:30
I am a beginner in java, I wrote a little program as an excersise on interfaces, here is the code :public class Interfaces{ public static void main(String[] args) { System.out.println("Ok"); }}interface Fruit{ void decay(); void squish();}class Sphere{ void rolls() { } void spherical() { }}class...

About Java Certification Exams

441 byte By gokhan at 2007-11-20 10:01:51
Hello all.I decided apply for SCJP test.How should i study to pass this exam?At the moment i have no time and availability to go to a certification course.I am thinking to study by myself at the moment. Can anyone tell me what skills will be needed to pass this test?And the last question;Will taking...

Exception In JAVA

566 byte By Abalfazl at 2007-11-20 10:02:03
Hello !I have a question about exception in JAVA.Say You want build a retirement system for police,Because a car driver never use a helmet, We want to use JAVA exception in order to prevent of enter wrong data to database,How do you use JAVA exception for that?Another question is about kinds of exce...

Exe to remove Temporary Internet Files for FireFox

244 byte By s_v_patel at 2007-11-20 10:02:49
Can I have Java application or exe or any source code to remove all temporary Internet files for FireFox. <br/>I may delete all using Tool--> Internet Setting...<br/>But I need Sourcecode or exe so that I can remove Temporary Internet Files.

Help with Window Handles

1623 byte By YashaBr at 2007-11-20 10:02:52
Hi people, im from brazil so my english is not perfect.Well, my problem is: I want to get the handle to the IE combobox to get the current url the user is visiting.I have this Delphi code, it does what I want but I wish to make it all in java.Any clues on how I do that?The code: function GetUrlfromI...

Why there is no Pointers in JAVA

268 byte By jamesjohnney at 2007-11-20 10:03:14
I am thinking that because of security purpose we dont have pointers in JAVA (cos using pointers in C we can access even the password (value of the address)) , but not very sure .... <br/>can any one tell me why there is no Pointers in JAVA...<br/>-Johney

How I interface Biometric SDK and finger print scanner with my J2EE Web Project

321 byte By mskamal at 2007-11-20 10:03:53
Respected Sir,I would like to interface Biometric SDK with my J2EE Web application, because I never use Biometric SDK and also I have also no idea to interface the fingerprint scanner with my web application, Please send me some material or guide that deal me how to work biometric SDK and fingerpr...

HttpURLConnection got stack when trying to invoke

1309 byte By umen at 2007-11-20 10:03:57
Helloim trying to perform http get request with HttpURLConnection when tomcat server is starting up the function is located in the servlet init method , but it seams that when it reached to the part it reform the connection the connection got stocked . im trying to fallow this tutorial : What im try...

Why dont I get an ambiguous error?

818 byte By Martin O at 2007-11-20 10:04:46
I don't understand why the compiler doesn't complain about the following code being ambiguous:class A1 {}class A2 extends A1 {}public class Test { public static void main(String [] args) { fn(null); } public static void fn(A1 a) { System.out.println("in fn version 1"); } public static vo...

HttpClient, keep it persistent

1618 byte By jeremiorama at 2007-11-20 10:05:56
Hi guys,I have this little application that will wait for data. When data is received, it will send it to an http server. What I want to do is not always create a new connection for new information to send, since it will always be sent to the same server.Here's something I have thought of:In th...

Concurrency & garbage collection...

881 byte By Martin O at 2007-11-20 10:06:16
I'm confused about what will happen in this concurrent scenario:Assume I have a synchronized instance method 'fn':class Test { synchronized void fn() { }}...Test testInstance = new Test();Assume I have 2 threads that are trying to call testInstance.fn() as follows:- Thread 1 enters te...

2 newbie questions!

2384 byte By zzrbit at 2007-11-20 10:08:12
Hello,I'm going crazy trying to learn myself java and have encountered some problems that i cant figure out on my own. This is kinda long i guess!problem 1:Say i have a frame, with 2 panels added, one top, one bottom.Both panels are custom classes(or whatever you call that, extends jpanel).Top...

What is the need to have StrictFP (Non Accesss Modifier ) in JAVA

208 byte By jamesjohnney at 2007-11-20 10:08:36
There are three Non Access Modifiers in JAVA, one of these is StrictFP. Can any one tell me the actual reason for having this ... if possible give me some examples (real time ex).. <br/>Thank you ....

Building array from .txt file questions

1646 byte By ateo at 2007-11-20 10:08:49
I am working on a program to: 1. creates a main that opens a file 2. reads an int from the file that is the size of the array 3. allocates the array to the size of the int that was just read 4. reads all the ints into the array that was just allocated 5. calls the findSmallest method to fi...

Searching through an element(of an ArrayList) for certain text

912 byte By omgwtfbbq9999 at 2007-11-20 10:08:51
Is this possible?I am trying to write a program that reads a file, in this case one named "castles.txt". It searches through this file, finding certain instances of castle names. For example it would search for "Luina Guild 4". Upon finding "Luina Guild 4" it would then remove it from a list, contai...

Addition of 2 bytes converts to int

970 byte By anjanesh at 2007-11-20 10:09:09
Hi public class Main { public static final byte c1 = 5; public static final byte c2 = 6; public static void foo1(byte a) { System.out.println(a); } public static void main(String[] args) { Main.foo1(Main.c1 + Main.c2); } }It seems, Main.c1 + Main.c2 gets converted to an int and the...

Java Books

195 byte By Kassam at 2007-11-20 10:09:32
I am new to java and was wondering, what are the best books in the market for learning it ? I have a good C++ background and I'd like the book to focus more on syntax and how the code works.

Tomcat configuration

269 byte By anandedward at 2007-11-20 10:10:26
hi <br/>i want to run servlet and jsp programe. because i has install C:\Program Files\jakarta-tomcat-4.1.30\jakarta-tomcat-4.1.30 but i want to run E:\ ......how to run give the procedure of the path and running porcedure pls help me thank u<br/>by<br/>anand

How this number generate?

363 byte By prasunhowlader at 2007-11-20 10:11:51
public class Test{ public static void main(String ...args){ System.out.println(Integer.parseInt("AA",27)); }}When i run this program this program produce 280. But i don't known how this number is generated. But when i replace AA with A it produce 10 and i know this how it calculated. Can anyon...

Error in Mondrian

561 byte By vivek_cs22 at 2007-11-20 10:11:55
Hi, I am installing Mondrian. There is an issue in the installation process. I have downloaded Tomcat 5.0 and j2sdk1.4.2_05 completely.The index page of the Mondrian is working fine but I am not able to open up the jsp files and display them. There is an error message being generated as: UNABLE TO...

database connection

195 byte By aaanju at 2007-11-20 10:12:26
how to create a database connection using jndi name to a queue table in oracle. Have created the program using queue. I wanted to know the connection in datasource and in the configuration files.

getClass().getResourceAsStream

618 byte By zhshqzyc at 2007-11-20 10:12:46
Hi, all professors and experts,I am using NetBeans 5.5.1 IDE.A file "plotdata.bin" is in the subdir src or project root.But I get error "null". try { InputStream bis = getClass().getResourceAsStream("plotdata.bin");// or InputStream bis = getClass().getResourceAsStream("/plotdata.bin");...

Need help with my bowling scoring project!

1617 byte By -EquinoX- at 2007-11-20 10:13:18
I need help with this project. I don't understand on how do I know how many pins are down?? How do I know how many pins are knocked by the bowler?? Do I include that in the constructor?? In this project, you are asked to implement class BowlingLine that maintains the score for one game of bowli...

about interface and abstract class

99 byte By klamath23 at 2007-11-20 10:13:21
Can you please explain me in easy language what interface and abstract class is, why is it needed ?

Close an application

731 byte By musiigedeo at 2007-11-20 10:13:38
Am having an application that reads from the serial port, when I want to change the port, I want to automatically close the application and automatically start the application again with a new port connection.When I use System.exit(0);, the application never start again. Here is my codeimport java.i...

help needed

178 byte By codeexpert123 at 2007-11-20 10:13:53
Hi to all members,I just wrote my first java program, it compiles and runs and all, but the console window closes too quickly u can hardly see the output.How can i rectify that?

How to design application that supports plugins

764 byte By umen at 2007-11-20 10:15:02
Hello I need to build application that has some general functionally (like collecting data analyzing and such .. ) But there is apart in the application that needs to communicated with third party application this third party Application can be from different every time , that is will use different...

using interface as function pointer

1499 byte By klamath23 at 2007-11-20 10:15:47
I have a c++ program here is the code int add(int x,int y){return (x + y);}int sub(int x, int y){return (x-y);}int operation( int (*func)(int a,int b) , int x, int y){int g;g = func(x,y);return (g);}int main(){int t = operation(add,60,60);int j = operation(sub,100,20);cout<<t;cout<<endl...

Need help with JMF program

6020 byte By warship at 2007-11-20 10:16:02
hello.i managed to get both the menu + JMF programs below compiling. when i choose a media file from a directory, the file chooser closes down and the window that the audio or video is supposed to be played on opens up. but it is a blank frame i get. i've also attached to java programs that are...

c compiler compiling java bytecode

123 byte By klamath23 at 2007-11-20 10:16:17
There is a c compiler that compiles to java bytecode , and can be run in java.<br/>visit site <br/> http://www.axiomsol.com/

Applet resizing?

1246 byte By kanod at 2007-11-20 10:16:37
Hi all, I am new to Java and this forum, so I thought I would say a quick hello before asking my question. I have been coding in Python as a hobby for the last 3 years. And recently I decided to study for a degree in computing with the Open university, So I can get a job doing what i love :) The...

How do I stop a file filter from creating its own class?

679 byte By donkor at 2007-11-20 10:18:01
The only two ways I've figured out how do this are by having it create an anonymous class, and having it in its own named class. For example:static class fileFilter implements FilenameFilter {public boolean accept(File dir, String name) { name=name.toLowerCase(); return (((name.endsWith(".txt"...

Making a Timout(or a waiting period) in Java?

421 byte By omgwtfbbq9999 at 2007-11-20 10:18:36
Hi guys, me again. Just wondering if there is a way to cause a wait time for a loop to re-execute itself.I wrote a program that is always checking a file for certain text (as in my other thread) and I want to make it wait, say, 5 minutes before it checks the file again. I did a bit of research, but...

[RESOLVED] Anyone can guide me ?

1284 byte By tienzyee at 2007-11-20 10:18:49
how to write a program that randomly initialize a list of 100 applicant records and a list of 100 vacant job records, and produce the output:list of matched applicant-vacant jobslist of applicants with no matching job.list of jon with no matching applicant.Each applicant record has the data: integer...

About Number Class

124 byte By prasun at 2007-11-20 10:19:41
Why Number class has byteValue() and shortValue as non abstract methods where as the other xxxValue() methoids are abstract?

In real need of Help

251 byte By nsGhost at 2007-11-20 10:20:44
I want to ask if someone has ever made a code formatter ( i mean such as the one in eclipse when pressing ctrl+ shift + F ), or has a good idea where i can find some info concerning the problem. <br/>Thank you in advance, your help will be invaluable.

creating c swap function

151 byte By klamath23 at 2007-11-20 10:20:45
Can you create c swap function using java native interface. Like<br/>void swap(int *a,int *b)<br/>{<br/>int t = *a;<br/>*a = *b;<br/>*b = t;<br/>}

jTextArea move cursor up

356 byte By SevakNGC at 2007-11-20 10:21:03
Hello,Im trying to put text in a jTextArea. I would like to add text and create new lines, but sometimes move up to the top and start placing text on the top of the text area and make new lines again. For example:text1 text4text2 text5text3 text6is this possible and how do you do it?T...

timer/sound qu

184 byte By metfan581 at 2007-11-20 10:21:08
hey,<br/>how do i have a timer that plays a sound file after 1 min is up...<br/>play(getDocumentBase(),"rmtn.wav"); <br/>/////then 60sec later play "rmtn2.wav"<br/>thanks all