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...
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...
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...
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
************************************************************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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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.
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...
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
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...
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...
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...
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...
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...
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...
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 ....
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...
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...
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...
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.
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
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...
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...
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.
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");...
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...
Can you please explain me in easy language what interface and abstract class is, why is it needed ?
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...
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?
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...
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...
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...
There is a c compiler that compiles to java bytecode , and can be run in java.<br/>visit site <br/> http://www.axiomsol.com/
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...
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"...
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...
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...
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?
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.
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/>}
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...
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