ClassNotFoundException Vs NoClassDefFoundError

133 byte By dennisida at 2007-9-28 20:35:11
Hi,Does anybody know the difference between ClassNotFoundException and NoClassDefFoundError..?Thanks,Den.

remote invocation of java web-start

187 byte By asarangia at 2007-9-28 20:41:20
Hi all,I need to know how to write Java code to start-up the Java Web-Start application remotely on the desktop of a user! How would one go about doing this?!thanx...

"tftp" client and server

73 byte By knoowmeea at 2007-9-28 20:48:34
i need tftp client and server implemented in java. please help me.

Simple thread ques

490 byte By kpranava at 2007-9-28 21:05:16
HiI am trying out something in threads and wanted to know something.If i am doing some X processing 4 times and it takes 16 sec. Say for each X process i spawn a thread would it mean that all threads will be execute in 4 sec and not 16 sec. Would the time get divided by 4. If not generally by ...

problem in importing packaged class using packagename.*

749 byte By r_vishua at 2007-9-28 21:08:10
hi all,I have one class A inside the package test and another class B which is stored in the same level as test. Now class B imports the test package and instantiates an object of A. I am getting compilation error during compilation of class B. class structure is shown below.package test;Class ...

need some java help

1281 byte By abolakramia at 2007-9-28 21:09:44
Im currently trying to get few a java worksheets but im stuck and cant resolve the problemim not sure where the error is :/*** Write a description of class PhoneCalc here.* * (Abol Akrami) * */public class PhoneCalc{private double[] Prices = new double[ 10 ];private String[] ProductCodes = new ...

Overloading a constructor

1448 byte By da_wannabesa at 2007-9-28 21:11:22
How does one then go about overloading a contructor of the main class have the object called in the main method, say:public class ShadeArea //extends whatever{ public ShadeArea() {// Structure the layout of the app. here } public ShadeArea(Locale locale) // overloaded contructor {locale = ...

About DatagramSocket

770 byte By Yi-Wena at 2007-9-28 21:12:04
Hello!I would like to write a program about Mobility. That's, a mobile user roam from one area to another.If the mobile user's IP address doesn't match the new subnet's IP address (for example, the user IP address is a.a.a.x, the subnet address of new area is b.b.b.x) can the user send ...

indexOf / substring / look gone crazy!!!

1884 byte By Oaqa at 2007-9-28 21:13:13
can someone tell me what im doing wrong, cuz frankly i dont see it....int dirStartIndex = 0;int dirEndIndex = 0;String directory= "Object/new folder/";String dirTabber= null;dirEndIndex = directory.indexOf("/");while(dirEndIndex != -1){System.out.println("enter st " + dirStartIndex + " ed " + ...

Html parser

130 byte By mshwonga at 2007-9-28 21:25:05
I've done a html parser using javax.swing.text.html.parser.ParserDelegator, but can't remove the style sheet. How? thanks

Seperate file

65 byte By mshwonga at 2007-9-28 21:25:07
How to seperate a html file into a few text files? thanks

Thread Problem

274 byte By milinddeva at 2007-9-28 21:32:34
I had made one connection pool.The problem is that when the size of the pool reaches the maximum limit the calling thread should wait until the connection is release by other.So how can i make the calling thread to wait unitl the connection is released.

Exception in thread "main" java.lang.NullPointerException...

1376 byte By jjohfa at 2007-9-28 21:33:11
Hello, I have a simple program, for which the compilation is good, but when I run it I have the error message below:Exception in thread "main" java.lang.NullPointerExceptionat java.applet.Applet.getCodeBase(Applet.java:136)at Projection.init(Projection.java:19)at ...

nException in thread... corrected, but doesn't print!

732 byte By jjohfa at 2007-9-28 21:33:21
Ok I found the beginning of the solution myselfnow I have this prog:import java.io.*;import java.lang.*;import java.util.*;import java.awt.*;import java.applet.*;class ImageShow extends Applet{private Image myimage;public void ...

ArithmeticException

483 byte By vinodchamolia at 2007-9-28 21:42:13
Hello All,I am ins great confussion regarding this error.I get this exception when i try doing some thing like this.//codeint i,j - 0;int k = i/j;this can be understood that it will be giving exception as I am trying to divide it by zero.consider the same code again//codedouble i,j=0;double k = ...

Static methods and static variables

383 byte By olaboraa at 2007-9-28 21:54:26
Hi All,Have two questions.a) In Java a static function can not refer any data in an object - because it has no object. To understand better about this it would be great if anyone can explain what happens behind the scenes if Object.Member Function() is called.2) main is also a static function. ...

Resize minimum limit

774 byte By neokarl80a at 2007-9-28 22:01:49
Hi!I have a window (JFrame) which shows up with a certain dimension (decided by frame.pack() ).I'd like to let the user be able to resize it (it does by default), making the window bigger, not smaller than the initial dimension.Is there a way (Listener, attribute, ecc..) to do that?Can you ...

Java Interpreter

830 byte By LLamaBoya at 2007-9-28 22:08:07
I was at a friends house recently, and as I was running a program I was making, he decided to show me something he found on the net. It was a program called Crash-it!Guess which program he decided to crash with it? You got it, my Java program!He dragged the bomb onto it and, sure enough, boom! ...

GUI Calculator

8776 byte By mirkyra at 2007-9-28 22:14:23
Hello everyone, I am trying to compile a calculator GUI but keep on getting the same erros. Please if anyone has any advice I would greatly appreciate it. THESE ARE THE ERRORS: calculatorframe.java:150: '(' expectedpublic void OpActionListener implements ActionListener^calculatorframe.java:7: ...

I can't load an image from .jar file

276 byte By kaisletaiefa at 2007-9-28 22:14:25
i use jBuilder and i generated a .jar file for an application. but when running, the images can not be load. the .jar contain the images under a subdirectory named 'images'.in the code source, i used the method getResource() but always i have the same problem.

Cannot catch ClassNotFoundException

733 byte By michaelkoppa at 2007-9-28 22:15:46
Hi all,I have found a strange behaviour in my java VM (1.3.1_07 Sun)Consider the following CodeClass serviceClass = null;try{serviceClass = Class.forName(tmp[0]);}catch (ClassNotFoundException e){logger.error(e);return false}Now if the class i request is not found, everything is ok. I get the ...

including files to the "main"-file

718 byte By karimha at 2007-9-28 22:16:38
Hi,I was wondering if someone can give some hints. ;-)First: For each declared and implemented Class, I need a file. Is this right?Second: If for each Class I need a file, how can I tell to the complier to include the other file or the implementation? If I try to construct an object with my ...

Properties file not found .properties

1643 byte By SubhashiniKa at 2007-9-28 22:24:32
hi allI am having the directory structure likeWEB-INF classescomcil cimInside this com.cil.cim, i am having a java file name Util.javaInthat i am reading a properties file name x.propertiesThis x.properties file resides in classes directory.Why i am not able to read x.properties file inside a ...

SEARCH FOR JDK 1.1.3...

173 byte By yave2a at 2007-9-28 22:31:51
Hello the JDK 1.1.3 can not be download no more can somebody send it to my box : (jdk1.1.3 for window NT 4.0)akrichephilippe@yahoo.frThank you very much

hardware

99 byte By dankokta at 2007-9-28 22:35:07
What are hardware requirements for desktop applications in j2se, with UI javax.swing classes

Is file in use by another program?

1015 byte By Kazim_sida at 2007-9-28 22:37:01
Hi,Does somebody know how to figure out if a file is being read or written by another program?One of my colleagues is writing a file manipulating utility and before he does something with a file he wants to know whether that file is being read/written by another program which can be any program ...

Color Printing in java

387 byte By mskumar_apka at 2007-9-28 22:46:04
Can any one guide me to print colored characteres in System console?.I am starting many processes in my application and i want to show green OK for successfully started processes and i want to show red FAILED for failed processes.Please let me know is the above could be possible with java?Any ...

Locking windows folder

177 byte By pinjua at 2007-9-28 22:46:13
Hi,I would be very grateful if someone can tell me how to go for locking the windows folder or the desktop...through a java program.With regardsPinju

actionListener trouble

190 byte By MGJWa at 2007-9-28 22:47:24
I am working on a Java program for a PDA Touchscreen editor, but the actionListner is not working.The program is running but none of the keys are working on the user interface.

Java & the titlebar

236 byte By HBXUa at 2007-9-28 22:53:58
Hi does anyone know how i could make the titlebar disappear?because i would like to make a new titlebar under the original titlebar(that is disappeared) so that i could show chinese characters in the new titlebar.Xu

Problems with a KeyAdapter!!

444 byte By acinoma at 2007-9-28 22:56:58
Hi,I have a Jdialog that it has a KeyAdapter associated. (This KeyAdapter handles the key F1) In this JDialog, i have a JTable, and when i am editing a column, i want to listen to the key F1, when i press. I have put another KeyAdapter for this JTable, and i can listen all keys less F1,...F9. ...

Array performance Optimization

527 byte By Ta3bana at 2007-9-28 22:57:50
Hi allI'm trying to set some values within a byte array to zeros. Using a simple for loop to do that was quite simple,but it taks a significant amount of time specially if the array size increase. I was wondering if there is a way in java to get better execution time.Here is a part of the code ...

I want to write in one window and have it show up in another?

539 byte By koolkeith19a at 2007-9-28 22:57:55
I am using this code just to write into a textboxprivate class TextFieldHandler implements ActionListener //line85{public void actionPerformed(ActionEvent ...

How to refresh a browser from server without using Timer !

236 byte By Donama at 2007-9-28 23:02:11
Hi,can anyone have the code for refreshing the client's browser from server side with out setting the timer . U can do this by setting the Timer from server. but we need some other solution for this problem.Thanks.

OutOfMemory Error

349 byte By nicolaZa at 2007-9-28 23:05:03
Hi, I'm working with web services on Windows 98 with J2SDK 1.4.1. There is a remote method that take some file as parameters: -if the client used a byte[][] to pass the file he has a java.lang.OutOfmemory -if while the client used MimeMultipart and as parts he put the files, go all OK! Why? ...

HELP WITH STATIC JAVA!!!

97 byte By java_g0da at 2007-9-28 23:10:15
How I can run c++ function from static JAVA! I would appreciate very much your responses!!

Is there a method for finding the hostname of a system?

311 byte By outlander78a at 2007-9-28 23:15:09
Given a system's IP address, is there a way to find it's hostname using pure Java? I'm hoping there is a port that can be sent a request, or something similar.I have tried searching the web and these forums but cannot find any information on this topic.thanks for your ...

FTPClient - stores mp3 files defectly

833 byte By Jonathan1706a at 2007-9-28 23:25:05
Hi!I'm working on a FTPClient and would like to store files on a FTP-Server. My Programm does save txt-files. But when it comes to store mp3 files it stores them in a wrong manner (file on server has the same size but I can't play it anymore - and the mp-player requests different codec). I'm ...

Help with class interconnection...

937 byte By BaronCreeda at 2007-9-28 23:26:04
Hi,Me and two friends have developped a simple music transposer as a final assignment this year, and we've run into a couple of problems, namely a NullPointerException in the drawing of the notes. For some reason, even though the values are showing up in the Transposer class (main class), the ...

login base chat

9718 byte By ronaldsoha at 2007-9-28 23:26:59
i done a login based chat program but there is a bug and i don't understand why...when i enter my nickname the first time with a already logged on nickname...it can popup a dialog telling me that this nickname is taken..but when i enter the nickname the second time...it will not popup the ...

Help with Sentinel Controlled Loops

809 byte By Newmer60a at 2007-9-28 23:34:25
Ok, I did a test program to see whether or not this would work because im having trouble with this loop(Im relatively new to programming).import java.io.*;import java.util.*;public class test{public static void main (String [] args){KeyboardReader reader = new KeyboardReader(); String answer; ...

Arrays referenced by double values

688 byte By pjb21a at 2007-9-28 23:46:07
Hi,I'm having a problem referencing an array by a double.I've created a 4d array called a.I'd like to reference the array by a[1.1][1.2][1.3][1.4] = someValue.However, when I run the code I get an error stating : found Double, required Int.double[][][][] a = new double[50][50][50][50];double ...

some freaky error and i have no clue, please help me

11332 byte By slider0620a at 2007-9-28 23:46:46
please help me!!!!/* File: WeatherForecaster.java* Authors: Aaron Schnapp & Andrew Speer* Description: This program creates a GUI which enables a user to input current weather conditions and predicts the future weather forecast. * Date: 6-2-03 (due date)*/import javax.swing.*;import ...

How to use enviroment variables?

758 byte By zipirria at 2007-9-28 23:48:40
I齧 developing a web server with JSP齭, and I need to move the application to others computers. I need to access to a directory, but I don齮 know it because the user can install the Application in the directory he wants. So I need to access to that directory in the JSP code.The directory is ...

package-private method overriding from another package ?

1858 byte By eisarmasa at 2007-9-28 23:51:07
Hello,I have the following situation and I would like to know if it is a bug, a feature (?) of the language specification or I am missing something.I create a class B in my own package (let's say package B) that extents a class A from another package (let's say package A). Now without me ...

Is there a way to determine the os ...

511 byte By outlander78a at 2007-9-28 23:53:35
Is there a way (using Java) to determine the operating system of a remote host without logging in? Perhaps a port that can be listened to, pinged or otherwise contacted?I've tried searching the forums but found nothing on this subject.The application of this will be to improve a scanner used ...

search a file

172 byte By gansta007a at 2007-9-28 23:58:06
how can i search for all the *.txt files in my java folderand when found i want to display the name of the filesvery much likedir command in dos

Can I use a Kernel for this?

421 byte By taimora at 2007-9-28 23:58:55
Hi,I have an imaging program that works on a pixel level using greyscale bitmaps, I need to highlight all the pixels that form the centre of a cross, example:001000121000100The pixel labelled 2 is the pixel i am after.. can someone show me how i can do this? I have heard about kernels but they ...

Graphics2D problem in JScrollPane and embedded JPanel w/ paintComponent

1523 byte By hadlycaya at 2007-9-29 0:01:00
In Java version 1.4.1_02, I expect the following code to draw a line dignally across the screen. Instead, it draws multiple lines when scrolled rapidly.import java.awt.*;import java.awt.geom.*;import javax.swing.*;class MyPanel extends javax.swing.JPanel {public MyPanel() ...

Multiple apps using same files, how to lock them?

1610 byte By buckman1a at 2007-9-29 0:02:54
Hi all,I have a unique situation (or so I think). We are running our apps in Citrix servers, such that many users log in to a single citrix server and run our java apps. The problem is, it will be possible that more than one user might use the same app and start to work with the same file.I ...