442 byte By
Kelbaa at 2007-10-2 16:04:34
[codepublic class DeleteWindow{public class DeleteWindow{int response = JOptionPane.showConfirmDialog(null,"Are you sure?","Delete?",JOptionPane.YES_NO_OPTION);if(response == JOptionPane.YES_OPTION){JOptionPane.showMessageDialog(null, "The account has been deleted","Deleted",null);}} ...
1696 byte By
Keva at 2007-10-2 16:04:42
Hello,I'm new to Java and i am currently working on the tutorial's that came with the NetBeans IDE 5.0. Now the problem is on the 'NetBeans IDE 5.0 Quick Start Guide' under the module of creating a JUnit Test the step explain's about this process (see below)"In LibClassTest.java, delete ...
is there any way to find the work flow(pgm flow) in a java pgm.i have netbeans and edit plus.
Hello, this code is one method in my application. Could someone please check that the Javadoc comments look right and the general comments are the right format i.e. should it be like // Text or /* Text */.Ive looked at the Javadoc tutorial and have used it to write what I have so far. If there ...
hi all, I'm new to java programming and trying fix jedit in my ubuntu box, but it seems my efforts are going ... fultile.First my config -neo@tathagata:~$ java -versionjava version "1.5.0_06"Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)Java HotSpot(TM) Client VM (build ...
309 byte By
Belizea at 2007-10-2 16:13:32
Help PLEEEEZEI recently up-graded JAVA to JS2E, which will no longer work. running a 32 bit system, WIN2K Pro & Firefox 1.5.0.1I did see a file somewhere, that listed a line to replace in the registry, but I've never been able to find it again. Appreciate any ...
The background is:- GUI is built with Swing- JNI mechanism is used- In native code, there are some memory operations.(Each compoment is unit tested and proved to be working fine)The situation is:(1) When compile and run with JDK1.4, the application always works fine.(2) When compile and run ...
2055 byte By
chica30a at 2007-10-2 16:15:32
I'm using javadoc 1.5 to write a custom doclet. The problem's that the properties file which I've modified and placed in my own Project-Package is no longer read by the Javadoc Compiler. However if I place the path to the properties file in tools.jar, it gets read !I've never had this ...
Is there a way to create links in Javadoc to a common document. For example, I have a glossary doc that I would like to link to in various places. Using doc-files would be fine if all of my javadoc came out of one package. But there are many packages and I don't want to copy the glossary doc ...
heres my disgusting amount of code and its error report. please help. its basically the board for a twixt game. if you dont know what that is its not important because the error has nothing to do with the rules of the game.Exception in thread "main" java.lang.NullPointerExceptionat ...
I wanted to run HelloWorldSwing.java which is available in the tutorial.i wanted to run from linux. java is installed in /usr/java/jdk1.5The error isHelloWorldSwing.java:5: Can't find default package `javax.swing'. Check the CLASSPATH environment variable and the access tothe archives.So how ...
200 byte By
ray61a at 2007-10-2 16:28:44
any suggestions to run this method, void myMeth() { int i; for(i=0; i<10; i++) { if(i == 5) return; // stop at 5 System.out.println(); } }
Hi, I'm developing a web app, with servlets.I'm catching Exceptions in my servlets, for example I would like a user to insert data into a form. If the data cannot be converted into a integer value a java.lang.NumberormatException is thrown.I would like to catch this and then create a message ...
HelloI used to compile my code using an older version of jdk. It was definetely 1.3.1_xxx. The latest one available is 1.3.1_18 and i just downloaded it and tried to compile my codeand it gave me compile errors. I knew this code used to compile with an older versionso i have two questions(1) I ...
Is there an "easy" way to build a custom header and footer and add it to the standard HTML file output from Javadoc? For example, I need to place tags in my Java source files to designate variable data I want to include along with the standard Javadoc output. The new tags would appear similar ...
No matter what my user types in my site is telling them password taken.
Hi all,i'm using the jdk1.5.0 compiler in my java developement under Eclipse platform.However i keep getting a strange warning on approximately each class in my applications:The serializable class "MyClass" does not declare a static final serialVersionUID field of type long.why i'm i getting ...
310 byte By
elodiea at 2007-10-2 16:51:11
Hi,I'm wanting to use java doc, i've checked out the download page and it doesn't seem to say anything about linux. can javadcoc be used in linux? how do i go about installing it?i've created all my comments and just need to run it now to produce the ...
here is the portion of my program that matters. all the variables have been declared already so just go with that. The point of this program is to read in a binary number (like 010011) and then 1) check that is actually binary 2) convert to decimal. In this part of the code I want it to read in ...
What is the problem with this simple code.......plz any one...import java.sql.*;public class QueryApp{public static void main(String a[]){ResultSet result;try{Class.forName("sum.jdbc.odbc.JdbcOdbcDriver");Connection ...
968 byte By
QldKeva at 2007-10-2 16:55:09
I've just changed from Java 1.4 to Java 1.5.With the mod to Hashtables my old code wasBoolean valid;String hour, minute, second, day, month, year;// Logic to populate the values.Hashtable values = new Hashtable();values.put("valid", valid);values.put("d1", hour + minute);values.put("d2", ...
Hi,I have a class: com/easypaygroup/UDF/employee/EmployeeUDF.javain directory: C:\dvl.home\env\jboss-4.0.3SP1\server\default\tmp\deploy\tmp43432easyweb-exp.war\WEB-INF\classesNow I want to compile my class with javac but i get the errorerror: cannot read: ...
1732 byte By
SanXa at 2007-10-2 16:57:22
Guys please helpWhats with this code import java.util.*;public class ExcInMap {static Map m;public static void main(String args[])throws Exception{m = new HashMap();m.put("st",new FancyException());dummyCall();}static void dummyCall() throws Exception {Exception e = new FancyException();throw ...
1230 byte By
sbankyba at 2007-10-2 17:00:39
Wasup y'allMy problem is, I have a class (DecodingClassLoader) that calls a method (readStreamToBuffer(InputStream is)) from another class (FileUtiities). Below is the line in the DecodingClassLoader class classBytes = FileUtilities.readStreamToBuffer( is );Now, at runtime, when i input the ...
I am getting the following error in my output lines, how to fix?java:25: <identifier> expected
133 byte By
boberta at 2007-10-2 17:04:39
I can't load applets, i've uninstalled and re-installed the program but it just will not load the applets. Any ideas?
191 byte By
Zephryla at 2007-10-2 17:04:59
It'd be very practical to have something that shows whether there is more than 1 sentence to a comment so that you don't always have to view the full version and hit the back button.
I'm not sure whats happened but java has stopped working on my computer. It was fine the other day however now java applets dont load, and when I click on java links on websites nothing happens. I have tried reinstalling java several times, and updating and it says it is all fine. Am not sure ...
I am working on a program to roll a set of dice 1000 times and count the occurences of the doubles. I am also required to count the occurences of each of the doubles but I am getting an error on compile my code is:public class TestDice {public static void p(String s){System.out.print(s);}public ...
I am writing a program which analyzes the effects of the failure of parts in a system. The user enters the parts that have failed, and the program analyzes which portions of the system remain functional.I created a class called component. Each element of the system is an instantiation of this ...
After installing the Java Development Kit, I made a sample program found in the book Sams Teach Yourself Java in 24 Hours. I tried compiling it in Comand Prompt but get the error:'javac' is not recognized as an internal or external command, operable program or batch file.What am I doing ...
Exception in thread "main" java.lang.NoClassDefFoundErrorAfter hours of fighting with this stupid stuff I finally get my program to work on windows. I dig through all the BS posted about this error already (most of which is garbage info btw). Reinstalling everything on windows apparently did ...
508 byte By
NahuelAa at 2007-10-2 17:13:54
Hello,I have a problem with my java application, It open, read, write and close a lot of file very rapidly, and when it arrive to the 990th file, it handle an IOException ( Too many open files).The problem is I close ALL FILES and set them to null after closes it...Did it exist a method to know ...
314 byte By
JbloodHa at 2007-10-2 17:16:21
i got a program which generate lots of exception information. its hard to see from the screen, is there any way to make the input into some txt file?when i usetry {... }catch(Exception ex){ // to do something here and make the output into a txt ...
This is my code for compsci:// Lab20st.java// The Student Records Algorithm Program// Student Version import java.io.*;import java.util.*;import java.text.DecimalFormat;public class Lab20st1{public static void main(String args[]) throws IOException{List studentArray = new ...
Hello!The problem is that when I try to import a class from com.vistech, I get a "packave com.vistech.jai.imageio does not exist".The strange thing is that I can import classes form com.sun and javax.media so I suppose the installation has been made ok.What could be the problem?Please ...
j'ai un petit souci du un attribut vector...J'initialise ce vector avec plus de 1000.000 cases et j'ai droit a une exception du type java.lang.OutOfMemory ... j'ai essaye de remplir le vector en plusieurs fois mais ca ne change rien.. j'ai toujours la meme erreur. J'aimerai donc savoir si ...
Can anyone tell me why the following exception comes when I want to connect to a server through ftp. Exception: java.net.ConnectException: Connection timed out: connect. I want to read a .csv file which is placed at this server.
what is exactely the line commande in jdk 1.5 use to change the memory size
Hey all,I'm trying to create a simple exception handler class. I'm trying to make calls to a database and run a querry but exceptions a, b, c, and d must be caught. The only way I know to do this is with multiple catch statements like this.try{connectDatabase();runQuery();}catch(SQLException ...
import java.io.* ;public class Avaragerr {public static void main(String args[]) throws IOException {BufferedReader xx= new BufferedReader(new InputStreamReader(System.in));System.out.println("Birinci Sayiyi girin(x)");String oku= xx.readLine();System.out.println("Ikinci Sayiyi ...
Hi I compiled my servlet program, it gives an compilation error as package package javax. servlet.* does not exsist.Can anyone help me as how to set Environment variables in windows XP. I am using java1.5.0_02 version.In which we have to set the path 1. user variables or system variables.Pls ...
14091 byte By
ashiersa at 2007-10-2 17:30:04
Hi there,I created a web site where several pages have applets embedded. I'm running Windows2K here at home as my development platform. When I view the webpages with the applets on my own machine they load just fine. However, when I go to other computers that are running WindowsXP Pro, ...
Im trying to compile this program using Eclipse, here is the program:import javax.swing.*;import java.awt.*;public class WriteMail extends JFrame {public WriteMail() {super("Write an E-Mail");setSize(370, 270);setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);FlowLayout flow = new ...
2075 byte By
Caps18a at 2007-10-2 17:31:15
I've been trying a few things, and was wondering if anybody had any advice or knew some websites that has some information on error handling. I need to refresh my memory a little. I have been attempting to make it work by using if-else statements, but I will probably need to use try-catch ...
10905 byte By
ismaa at 2007-10-2 17:33:18
Hi everybodyi'm using ant to generate javadoc ;i'm using jsdk 1.5 i've always the same problem with both the command line and the buid filehere is my build file <project name="ExtractDatas" default="compileProject" basedir="."> <!-- Librairies--><path ...
At one point in my program I use scanner to read the users keyboard input, after pressing enter I get this error:NullPointerException: at JerooProgram.makeRobotJeroos(JerooProgram.java:158) at JerooProgram.main(JerooProgram.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native ...
330 byte By
musica at 2007-10-2 17:36:07
Hi all,- In a project, we will throws or catch direct an exception or write ourexception ? Ex : throws or cacth : exceptions in java.lang.Exception Or : CustomException How many Exception class we will write ? and how we write ?- I use log4j. We use direct or custom Logger ...
12403 byte By
Dazeda at 2007-10-2 17:36:21
[nobr]Hi all! I have limited Java experience and I am having some difficulty incorporating this code. I was wondering if anyone could identify the errors in my ways ?I have a header.tpl file as shown below. Everything works great on my main page (www.guitaristworks.com/artists/) and shows the ...
357 byte By
Arthixa at 2007-10-2 17:37:30
I keep getting this dang error. I have never gotten it before when trying to compile everything. Here is exactly what it says.client.java:3662: ';' expected^1 errorPress any key to continue . . .any idea what im doing wrong.... I know it has to do with the name of the file but i have never ...