Well, I've searched the forum for nullPointerException posts and nothing appeared to be quite like my problem. I am relatively new to Java and have tried everything that I can think of to determine the cause of the exception.I have an applet that opens a socket connection to a C server app and ...
588 byte By
milindta at 2007-9-29 11:30:48
Hi,I'm using javadoc to create doc for a list of packages. When I use pacakge.html (for package spec), two things happen:1. At one class (for email app) tool erros out saying variable of type InternetAddress cannot be resolved. (I have compiled the class successfully, though).2. After this, ...
1570 byte By
Taichea at 2007-9-29 11:35:00
Hi there !In order to generate the Javadoc for the whole product our team has developped, I made a little Java class that parses our source directories and then launches the Javadoc tool by using the com.sun.tools.javadoc.Main.execute() method from tools.jar. Now, let me introduce the way our ...
I am making this program and when I want to make a standalone .exe file it gives the following error: Error: void JApplet.main(String[]) not foundI've tried to make a jar file, and that works, but the program itself doesnt work. I don't know what I should do and I hope someone recognises this ...
whats this mean and how do i fix it? i get this error everytime i try to run a program ive written:Exception in thread "main" java.lang.NoClassDefFoundError: ToddsGuessingGamePress any key to continue . . .it works good on any other computer ive tried to run it on but not this computer. Im ...
A question about good programming practices...My application will display various error messages to the user.I am doing this by creating a custom exception with the given message,so that the GUI can catch the exception and display a dialog.Where should these error message Strings be placed?- As ...
554 byte By
JeVaJea at 2007-9-29 11:36:49
Hello!!I have a problem, I'm retrieving a AudioInputStream from Data Base (MySQL), and when I play the first audio stream I not have problem, but when I play the second stream I have this error: java.lang.OutOfMemoryError.I'm finalizing object whit this instruction:public void ...
1577 byte By
geoffdha at 2007-9-29 11:44:09
Hello,I need some help passing an environment variable that contains spaces to the JVM when launched via the command lineI can successfully use the following and read its value in the java application:java -DMYVAR=value.cfg myClassHowever, when I tryjava -DMYVAR="value1.cfg, value2.cfg, ...
Hi my problem is that I'm using a JTable and need to access a row that have a String value so it must be converted to numeric What I'm doing is this piece of code to convert it.What is wrong with it the tutorial says that is OK. Thanks for any help.String Sprice = ...
I need to get the Stack Trace for an Exception as a string and write the string into a log file. Can someone suggest a way out.. TIA
Hi All,I want to know how I can refer to a reference in a package.html file using the @link tag in the JavaDoc sections of oridinary classes within the same package.For example:{@line ?#MyReference My Reference}What should the "?" be in the above if MyReference is in the package's package.html ...
Hello -- What is the best practice recommendation wrt using the classes in com.sun.tools.doclets -- particularly with the planned refactoring? I'm writing a doclet that doesn't subclass, say, the standard doclet. There are obviously several very useful classes in this package (ClassTree, ...
HI..I don't know y i get this error when i try to run this program which i got from a site:Exception in thread "main" java.lang.NoClassDefFoundError:imagedata/ImageInfoi have worked with alot of java programs and they all seem to work fine.note: i write my programs on textpad so i compile and ...
HI..I don't know y i get this error when i try to run this program which i got from a site:Exception in thread "main" java.lang.NoClassDefFoundError:imagedata/ImageInfoi have worked with alot of java programs and they all seem to work fine.note: i write my programs on textpad so i compile and ...
HiI had java installed at one time , then had to uninstall due to conflict when installing my scanner, now when I go back to the download page to install the jave vm, i get the files downloaded but when the istaller comes up I get the error message... internal error ...
I am trying to write a doclet which creates a RootDoc and stores it to file. Is there a way I can serialize the rootdoc object ?
Hello -- Is the toString() method of a taglet implementation available to doclets that aren't based on the standard doclet?I'm writing a doclet (not using the standard doclet), and have discovered that I'd like special handling for a few custom tags. It seems that while my taglet's register ...
Hi Gurus ,I have a class sharing a PipedInpuStream with a thread The Main Class do something like : pipedOut = new PipedOutputStream(); pipedIn = new PipedInputStream(pipedOut); zipOut= new ZipOutputStream(pipedOut); m_pipedThread = new PipedThread(zipOut,folderPath,pipedIn,m_session); ...
1164 byte By
pureseva at 2007-9-29 12:43:02
Help me, pleaseSome jar files produces exceptions in moment of their opening, but their name and path are correct.//////////////////////////////////////////Code fragment:...printX("trying to open " + fileList[jj].getName() +"\n");fff = new File(fileList[jj].getName());printX("file ...
Hi all,I noticed from my docs that the JAVA API methods are not linked. They are just static text. How can i link all the java api methods to a root url examble: java.sun.com/j2se/docs/javax/JFrame#pack() java.sun.com/j2se/docs/javax/JFrame#setVisible() ...
I'm getting this error message. Since I don't find any error i my code, I think it might be the VM. Any ideas?//Jonas
I'm getting this error message. Since I don't find any error i my code, I think it might be the VM. Any ideas?//Jonas
I would appreciate any help on resolving this. I have no idea what it means or anything.Thanx
105 byte By
kSamusa at 2007-9-29 12:49:02
Is anybody can say me how to generate javadoc from a jar file without extract it?Thank you!
865 byte By
Xahraa at 2007-9-29 12:54:34
When i run a batch file which takes some jar file i get the following error!C:\opt\XtremWeb\v1r2-rc4.1\bin>xtremweb.worker.bat -f xwrcC:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\/XWAdministratorcache0 [main] INFO caltech238.xtremweb.worker.XWS - <**** XtremWeb Worker 1.2.4-head-200310010024 ...
How come program wont accept import java.util ?I get cannot resole symbol ? i looked in up in my java book and its spelled right . what gives ?
617 byte By
htieka at 2007-9-29 12:58:25
I use textpad and when I click on the hammer to compile the program it does it without any problems. But when I click on the hammer to run the program, it gives me this error:Exception in thread "main"java.lang.NoClassDefFoundError: (classname)I think that means the my classpath is wrong.Right ...
Hello, I'm trying to set up an IM service using the java.io and the java.net packages. Right now I'm trying to code a "server" which runs on an always-on computer and acts as a relay between the two computers communicating with each other. The server, after setting up a Socket, "listens" for ...
I have an interface that extends ten others. In some cases, the same method signature is present in several of the extended interfaces. When I look at the Javadoc for the extending interface, I see references to each of the ten extended interfaces (in the lists of methods inherited from). ...
195 byte By
jkjyotia at 2007-9-29 13:06:13
Hi frens,I wanted to know if there is java api for SNMP.I dint find it in the java docsPls tell me if java supports any API for SNMP commands.Thanking U 'JYOTI
When i change the options of javadoc to use a custom doclet (by adding -doclet and -docletpath) javadoc just throws an error saying:javadoc: invalid flag: -dIs this a known bug?
is there a doclet for a kind of business documentation? perhaps a standard set of custom (business related) javadoc tags?
Hi All,I have a memory problem running an program, retrieving data from a database using jdbc, on an computer with 2 CPU's and 2GB of memory. Setting for JVM are -Xmx512M and -Xms512M (of course I have played around with these and other parameters). Memory increases rappidly (35-40MB every 10 ...
There is a PackageDoc.commentText() that (should) return package comments. This would be great because i want to write package related comments. But where in the java code do i have to add this text? i tried adding javadoc over a apckage declaration:/** * Test package comment. */package ...
1345 byte By
vucca at 2007-9-29 13:23:24
Hi all, I have 3 packages: com.test.client, com.test.common, com.test.server. Each package contains many java source files(*.java). And I 'd like to write an ant script that has a target to javadoc all packages and source code files, but so far failed. Please help. (all other targets like ...
I create a class that can generate javadoc, when you past file as parameter. but however, I encounter some problem.the code is below. when I try to run the code. it generate 4 files (html file). until I close DOS Prompt its generate rest files. <pre>import java.io.*;import ...
Hi,I'm using JCreator Pro and get the following error when trying to compile my programs: --Configuration: j2sdk1.4.1_05 <Default>--C:\Program Files\Xinox Software\JCreator Pro\MyProjects\weekpaycalculator.java:1: ';' expectedimport TerminalIO.KeyboardReader^C:\Program Files\Xinox ...
Im working on a simple .java file (very simple) and I keep getting this one error I just cant fix. Im shure its something little. Everytime I try to compile it it says public class SimpleScreenManager.java {^1 errorErrors compiling SimpleScreenManager.If you think you can help please e-mail me ...
I was getting annoyed because command prompt was telling me 'java' is not recognized as an internal or external command, operable program or batch file. So to check if it was something I had done I ran the simplest program you can the "HelloWorld" test. It gave me the same error. I have ...
Hi All,We have developed an RMI Based search engine, which provides the facility to search as per the categories, Boolean and phrase search, which is being implemented in the following way: - Books are divided into batches. Each batch has 50 books.In each Batch 37 files which are indexes i.e. a ...
I am having a problem importing a class into my application. My application has a structure of packages but the class I am trying to import is not part of a package (and I don't have the source to put it into one!!). How do I import this class. I am trying to use the following code (which ...
Hi I am having problems generating the following into FrameMaker, using MIFDoclet. This class currently contains 11 parameters and does not generate: 1) the method into the Member summary table, or 2) the method name under the 'Methods' heading. When I limit the maximum number of parameters ...
hello everyone, i have a problem with the read(byte[] b) function of inputstream. I have a server and a client. The server sends in some string which the client has to read, but if the data sent is shorter than the eariler sent data the data that the client reads is a combination of the ...
I'm running DocCheck 1.2b2 on jdk 1.4.2 on Windows, and am getting the following error:javadoc: In doclet class com.sun.tools.doclets.doccheck.DocCheck, method validOptions has thrown an exception java.lang.reflect.InvocationTargetExceptionjava.util.NoSuchElementExceptionat ...
464 byte By
stanioa at 2007-9-29 13:51:13
I've just found "Java Doclet" < http://wwws.sun.com/software/xml/developers/doclet> for generating XML documentation from Java source code files rather than generating HTML. It is just what I want because I can easily create customized HTML versions out of the XML using XSLT sheet.I've ...
1374 byte By
rctxxxa at 2007-9-29 13:51:48
I am having difficult accessing any javascript links on the internet. The cursor will highlight the link and have a javascript message at the bottom of my page next to the interner explorer symbol, however when I click on the link I can't access it. Examples of messages include: "javascript:;" ...
I'm a beginner in JAVA and I got this message trying to compile TestEmployee(see below). Employee class compiled OK. Any ideas?C:\java\chapter3\bin\TestEmployee.java:5: cannot resolve symbolsymbol : class Employeelocation: class TestEmployeeEmployee tester = new Employee ();public class ...
241 byte By
javkinga at 2007-9-29 13:52:48
Iv just downloaded SDK v1.4.2, and after i tried to install it, i got "internal error 2775. 1624 http://forum.java.sun.com/webapps/download/getfile/1.4.2_01-bo6/windows-i586/java 2 sdk, SE v1.4.2_01.msi"Please help
Hi,I hope this is the correct forum to post about this problem. It's not a compiler error, it rather seems to be an interpreter or a logical error.Please consider this test program I wrote to clarify the problem.public class Test {public static void main( String args[]) {String someString = ...
1670 byte By
bohlama at 2007-9-29 14:00:37
I'm new to programming and I'm a little confuse when I should handle the error right away and when I should throw it to the calling function.I thought in my code below it's good to throw the exception to the calling function. But, if exception occurred while my function below reading the ...