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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
I'm getting this error when internet explorer launches the Java activex control. Anyone know what causes this or how to resolve it? I've tried clearing the cache, didn't help. I've identified a pc that doesn't have the problem, looked at the java console, everything was the same.I'm ...
868 byte By
trompya at 2007-10-2 17:40:11
I have an ongoing frustrating problem. Java has stopped working on my pc. When I go to the java icon and open I get error "The system cannot find the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Javasoft\Java Runtime Environment 1.5.0_06" If I try to uninstall update 6 from xp service pack 2 add ...
I tried to dispaly a mesg using JOptionPane, it gives error mesg likeHWS.java:27: cannot resolve symbolsymbol : method showMessageDialog (<anonymous java.awt.event.ActionListener>,java.lang.String,java.lang.String,int)location: class javax.swing.JOptionPaneJOptionPane.showMessageDialog ...
hi,i have a file named Test.java in package named test.Say test is located on d: and path of Test.java isd:\test\Test.javaWhen I compiled the file using command d:\>javac test/Test.javaI got the file "Test" which is a class file in test dir.but when i tried to run it using commandd:\> ...
# An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d6d37b7, pid=2716, tid=2364## Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)# Problematic frame:# V [jvm.dll+0x637b7]# T H R E A D Current thread (0x025b9d88): ...
Hi, I am new in java and I need to write a program that calculate the total cost. can anyone tell me the easier way to use JOptionPane to ask the user to enter the number of rooms and then ask them to enter the square feet of each room.please help me out thank you
Hi,I'd like to extend the standard html doclet so that a class diagram appears just below the class name in every doc file.I want to do that for an open source project, so I have to do it in a way that allows the redistribution of the doclet.As far as I understand the licence, I can do that ...
I'm a complete newbie to this whole JavaDoc Doclet stuff. I trying to create a custom Doclet I think. I want to use all the standard annotations but add 1 of my one aswell and a method so only the methods with my annotation is shown.I have a custom Doclet from the sun tutorial but don't have ...
Applet is not working on MAC OS, what is the wrong with my applet or any other thing? Please help.thanksShailendra
need to create a program that uses four threads. the first three threads each read a text file and count the number of times that a given word is used in the text file.the words which are to be counted are provided on a command line as shown when the command line as shown when the execution of ...
Hi,I need run over 10,000 threads concurrently, but got OutofMemoryError. I know this problem can be fixed by increasing heap size. But how to do that? Any ideas or other solutions on that?Thank you very much.Henry
Hi, I need to generate grahps and save they. I have used the cewolf api and now I need to use jfreechart to save the pictures.I磎 ussing tomcat-5.0.28 and j2sdk-1_4_2_10 on a Debian server (It is my remote server)I have download jfreechart-1.0.1into /usr/local/tomcat/webapps/ folder and compile ...
241 byte By
Adaehaa at 2007-10-2 18:00:08
error applying Transforms.Verify that the specified transform paths are valid. Everytime i try open up a program associated with Java, it comes up with that message. It also does the same thing when i try uninstall Java. any help? :-/
I have one application which is fatch the swf file from web and i want to save as in same to swf file format.when i have fatch the swf file and save as .swf format i have unable to view as flash animation in browser and micromedia.Anyone suggest me ...
183 byte By
ounosa at 2007-10-2 18:13:18
Writing simply @foo will generate an error (unknown tag). I used \u0040 (its unicode code) but the result is the same. \ or \\ don't work either. So? Does anyone know? Thanks!
Recently, on one of our computers that received the new MS06 April updates for Windows XP SP2, et al... Java stopped rendering applications (including the java control panel), though it will still render applets (at least basic ones). I have found the following in patch.err.ENTRY: ...