473,573 Members | 2,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Forum

Java programming language (Sun Microsystems) - Ask questions about java programming, OOP, JRE, SDK, Swing, Plugins, Java Virtual Machine(JVM), Java Libraries: Collection, XML Processing, Security, JDBC, JNDI, RMI, CORBA, AWT (GUI) and more.
0
2,025
thread by: Oracle3001 | last post Jul 17 '05 by: Oracle3001
Hi All, I have installed JAI and compiled a Thresholding example from the offical sun site. However when I come to run the application I get the following error message. I thinking it is probably something to do with not having the path set right or something. Any ideas? I have windows XP BTW. Exception in thread "main"...
0
2,437
thread by: nowhere | last post Jul 17 '05 by: nowhere
Hi, Java 1.4.1: I have a problem using the JNI interface to call some library methods written in java from some C code. The C code uses SIGUSR1 for asynchronous events. However JNI_CreateJVM unblocks SIGUSR1 even if I supply the "-XX:+UseAltSigs" option. The C code relies on the fact that SIGUSR1 is normally blocked and
5
3,345
thread by: AlanR | last post Jul 17 '05 by: Raymond DeCampo
Hi, I have to implement(or possibly acquire) a queue that manages priorities. Low priority elements cannot get lost in the queue indefinitely if there is a sustained, constant flow of high priority messages.I am thinking the best way to do this is to up the priority of lower priority items after a defined time period, eg. with a TimerTask....
0
1,951
thread by: amit | last post Jul 17 '05 by: amit
I have a to perform some action whenever user selects manually the combo box. But in my code,whernever I add some item to combo box OR removes some item from combo box, that piece of code is called. So, the requirement is that ONLY when use change the selection explictly(manually) in combo box, my piece of code should be called. How do i...
0
1,478
thread by: Alfonso | last post Jul 17 '05 by: Alfonso
Hi, I'm start to program in Java and I need to debug a servlet. I would like to do it with netbeans 3.5.1 or eclipse with a server tomcat, but I've not find a documentation about it. Where I can find a tutorial or information ? Thanks
1
2,594
thread by: Phil... | last post Jul 17 '05 by: Nathan Zumwalt
how can i find the width and height of a jpeg file i am not interested in viewing the file i just want the height and width
1
4,329
thread by: ochulus | last post Jul 17 '05 by: Nathan Zumwalt
Hi! I'm new to Java and I would like to know how to manage files (e.g. rm, mv, mkdir, etc.) using Java for a simple text-based application on Unix. It's just an extension of a tutorial question at uni where we have to store bank customer details to a file. Thank you! pras
2
2,835
thread by: Matthew | last post Jul 17 '05 by: E. Robert Tisdale
Hello, For a few days now, I have tried a number of methods that are supposed to provide the a(k) and b(k) coefficients for a Fourier series. These methods are listed at the end of this post (in Java). However, not one of these methods seems to provide the correct coefficients for the following function; f(x) = 2 - 2 * cos(x)
7
25,962
thread by: Charles | last post Mar 31 '06 by: jmgonzal
Is there a way to obtain the line number in my code? For example: 1 public class MyClass { 2 int a = 5; 3 System.out.println("Integer variable a was set on line number: " + x); 4 etc. Where x is equal to '2'. How can I obtain 'x' ? Thanks.
1
2,121
thread by: Huzefa | last post Jul 17 '05 by: Kristian Bisgaard Lassen
I am working on a amll project in Java that includes many classes. Each of the classes has a Logger object. I have associated a FileHandler with each of these Logger objects. The file is the same for each of these classes "log.xml" Now I want all the classes to log to the same file. However, this does not happen. Each class creates its own...
6
28,912
thread by: QQ June | last post Jul 17 '05 by: RGonzalez
Hello, I have some java classes. But, I don't want my users to type "java my_java_program" every time they run the java class ? How do I pack them together into one executable file, like myprogram.exe. ? Any tools can do this for me ?? Thanks & regards, June
1
4,221
thread by: Hans Vanderstraeten | last post Jul 17 '05 by: Brad BARCLAY
when I try to extract a jar file in Windows XP...nothing happens? when I tried to extract in a DOS prompt Command, i receive the error "Error occured during initialization of VM java/lang/NoClassDefFoundError; java/lang/Object" i re-installed the jdsk, but that doesn't solve the problem.. help.
1
1,531
How
thread by: Tomek | last post Jul 17 '05 by: Phil...
Hello. How to get path to current directory and put this path to object of class String? I found FileSystemView.getHomeDirectory() but it returns path to home directory for example: C:\Documments and Settings\Thomas Thanks for help.
1
87,812
thread by: Tomek | last post Jul 17 '05 by: Brad BARCLAY
Hello. How to get path to current directory and put this path to object of class String? I found FileSystemView.getHomeDirectory() but it returns path to home directory for example: C:\Documments and Settings\Thomas Thanks for help.
0
1,509
thread by: borny | last post Jul 17 '05 by: borny
Hi everyone, we' are using Websphere Application Server (WAS) 3.02 and Websphere Commerce Suite (WCS) 4.01 (on AIX platform) for our application. Now and then we get an IOexception with following message "Error during native write operation! Status Code: -1". We don't use any direct write operation in our application, so we are thinking WAS...
0
2,114
thread by: mkarja | last post Jul 17 '05 by: mkarja
Hi, I have a GUI which has textboxes in it. Those boxes can contain either numbers or text. The problem is that the numbers allways goes to the other side of the box than text. They should both be on the same side, otherwise it seems stupid. I'm using jdk 1.3. Is there a way to align the boxes so that text and numbers would go to the...
2
1,727
thread by: Invisible | last post Jul 17 '05 by: Phil...
I recently got a News Ticker Java Script from: http://javascript.internet.com/. I've copied the appropriate Java Script code into my html code on the index page and class files into the same directory as where the index page is. When I test the index page, in Internet Explorer and Netscape on my local drive using Dreamweaver, the applet...
0
4,963
thread by: Saul | last post Jul 17 '05 by: Saul
Hi, I'm looking for details about WebLogic's t3 protocol internals (the binary format passed between clients & servers). I've been unsuccseful in locating any useful source. Is there some place I can find such details?
1
3,274
thread by: cte | last post Jul 17 '05 by: cte
I have a swing program involving drag and drop - implemented with javax.swing.TransferHandler etc. My problem is that I want to determine the mouse coordinates of a drop onto one of my components and TransferHandler does not seem to have any means of doing this. The swing DnD API seems to smoother any mouse listeners that I put up, so I...
3
3,768
thread by: Lee Garrington | last post Jul 17 '05 by: Lee Garrington
Hello, Basically this is my problem. I am programming minesweeper in java. I have a panel in the background on which I draw all the mines/numbers etc. and then I have an array of buttons that sit on top of them. I am developing a solver and need a pause between each move the algorithm makes. I know from my past experience that you have...
0
1,629
thread by: Rob Miller | last post Jul 17 '05 by: Rob Miller
A new book with a numerical library in Java was published in August 2003. Title: "A Numerical Library in Java for Scientists and Engineers" Author: Hang T. Lau ISBN: 1584884304 Published date: August 2003 publisher: CRC Press email: orders@crcpress.com
0
1,941
thread by: Joan MacEachern | last post Jul 17 '05 by: Joan MacEachern
Receive a free digital camera by registering for one of Sun's online security courses during the month of October. To receive your free digital camera, register for one of the following courses: * Administering Security on the Solaris Operating System * Network Security Using SunScreen EFS * Trusted Solaris 8 System Administration *...
0
1,679
thread by: Maciek Zywno | last post Jul 17 '05 by: Maciek Zywno
hello experts! I am using java to create URL connection and get wml or html file fro mremote server. Then I am using SAXParser ( org.xml.sax.helpers.DefaultHandler ) to parse it. The problem is that not all html/wml files are xml standard. So I need to change in some way the downloaded html/wml file so that it could be parsed by the...
2
6,127
thread by: Adrian Lumsden | last post Apr 16 '06 by: yaooo
Hello, I have an app where I have to screen scrape to capture an image from a JMF film player. The user is given a dialog with a list of frames that can be exported as images. If the one they chose contains the JMF film player then I use the Robot to scrape the pixels off the screen. Problem is that the dialog which they used is often...
4
33,549
thread by: DiggidyMack69 | last post Jul 17 '05 by: DiggidyMack69
I have a sql resultset called columns. When I convert an integer column to string that is a NULL it converts to zero. How can I get it to convert to null?? String x; x = Integer.toString(columns.getInt("Integercolumnname")); if x is null it will be converted to '0'. I want it converted to null.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.