JDK1.5 causes Swing+JNI doesn't work sometimes

804 byte By princesuna at 2007-10-2 16:14:24
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 ...

Fatal Error Missing Resource

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 ...

Links to common documents / HTML Pages

756 byte By mpbaker01a at 2007-10-2 16:24:42
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 ...

I still cant get my head around this: java.lang.NullPointerException

19683 byte By spoonlyorangea at 2007-10-2 16:25:18
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 ...

beginner

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(); } }

Handling Exceptions with case statement - convert Exception to int value

887 byte By devdaveja at 2007-10-2 16:38:42
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 ...

Add a custom header and footer to standard Javadoc output

1156 byte By plbryanta at 2007-10-2 16:40:39
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 ...

Password Always Taken

78 byte By wdesantis41a at 2007-10-2 16:45:00
No matter what my user types in my site is telling them password taken.

serialVersionUID field warning issue

400 byte By Servant@AKa at 2007-10-2 16:46:09
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 ...

using javadoc in linux

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 ...

error while trying .charAt( )

1157 byte By sadrobota at 2007-10-2 16:53:25
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 ...

error when connecting !!!

935 byte By Symphony_legenda at 2007-10-2 16:54:46
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 ...

Exception - meaningless exception message

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 ...

IndexOutOfBoundsException e

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 ...

Loading applets

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?

Please add "more" flag.

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.

Java stopped working?

313 byte By super123xa at 2007-10-2 17:06:18
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 ...

Require some help

2063 byte By JP_Traininga at 2007-10-2 17:09:20
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 ...

Problem referencing an object

610 byte By ferresefta at 2007-10-2 17:09:50
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 ...

going insane with the Exception in thread "main" java.lang. blah blah blah

1462 byte By filthy_mcnastya at 2007-10-2 17:12:42
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 ...

Too Many Open Files

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 ...

how to write exception information into a txt file?

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 ...

Help with this

13323 byte By Predator@CITFa at 2007-10-2 17:17:26
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 ...

debordement dans Vector

401 byte By infcrypta at 2007-10-2 17:19:50
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 ...

Connection to server through ftp port

235 byte By Pushpesh.kumar@sun.coma at 2007-10-2 17:20:22
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.

increase java virtuel memory size

82 byte By sami.bouhraouaa at 2007-10-2 17:20:47
what is exactely the line commande in jdk 1.5 use to change the memory size

How do I consolidate errors when catching? (IE. single catch clause)

1845 byte By griffindja at 2007-10-2 17:23:04
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 ...

HotSpot EXCEPTION_ACCESS_VIOLATION

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, ...

Error:WriteMail.java

1762 byte By CompilerCama at 2007-10-2 17:30:38
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 ...

Basic error handling - no row selected when deleting a row

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 ...

javadoc with ant

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 ...

Error when inputting data using scanner

649 byte By Skeetlesa at 2007-10-2 17:34:21
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 ...

About Exceptions and Logging

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 ...

Obviously Not a Developer - Can Anyone Help?

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 ...

unable to save or store files in the cache

319 byte By getitdailya at 2007-10-2 17:39:16
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 ...

Error HKEY_LOCAL_MACHINE\SOFTWARE\Javasoft\Java Runtime Environment 1.5.0_0

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 ...

can not resolve symbol in method showMessageDialog

1505 byte By sabarishrla at 2007-10-2 17:40:52
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 ...

compiling package

1427 byte By saq123456a at 2007-10-2 17:41:11
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:\> ...

im at my wits end with this problem, help

15007 byte By stinkeytoesa at 2007-10-2 17:44:14
# 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): ...

need help please..

285 byte By bluedevilza at 2007-10-2 17:44:47
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

Extending standard doclet by subclassing: impossible?

1265 byte By AndreaAimea at 2007-10-2 17:46:41
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 ...

Steps for creating custom doclet

532 byte By Rebels_Mascota at 2007-10-2 17:51:37
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 not working on MAC OS

135 byte By shailendra1234a at 2007-10-2 17:52:44
Applet is not working on MAC OS, what is the wrong with my applet or any other thing? Please help.thanksShailendra

threads

3602 byte By ibrahim28a at 2007-10-2 17:53:32
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 ...

OutofMemoryError: no new native threads can be created

249 byte By travelingliona at 2007-10-2 17:53:52
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

problems with jfreechart

5724 byte By jesusmgmarina at 2007-10-2 17:54:01
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 ...

error applying Transforms.Verify that the specified transform paths are val

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? :-/

Save as swf file using httpconnection and file io

1025 byte By Neon_Andersona at 2007-10-2 18:10:22
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 ...

How to escape '@' in javadoc comments?

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!

Java won't render.

733 byte By ckbcouturea at 2007-10-2 18:19:00
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: ...