My goal is to let custom classes inherit method comments from overridden methods of jdk classes. From the doctool documentation, I would assume that the way to go is to set the path to the jdk sources in the -sourcepath option. My problem is that this doesn't seem to work at all - looks like ...
After I scan a document using my HP 1310, I am unable to open it. I click on the file to open it but I keep getting the following message:JAVA VIRTUAL MACHINE LAUNCHERInvalid or corrupt jarfile:C:\Documents and Settings\My Documents\scan.pdfCan someone tell me how to fix this problem? I am ...
I'm a little frustrated that Netbeans won't even let you create a 'package-info.java' file because of its naming rules. Is there any way to get around this?
842 byte By
SRGa at 2007-10-3 5:56:38
Hi, We migrated to JDK 1.5 from 1.4.2, and found that the path of classes (Configuration.class, DirectoryManager.class, HtmlDocWriter.class) has been changed in the tools.jar file.I changed the import path of these classes in the application. But there are some methods which were available in ...
Hi there, I need help with some code, here it is.import java.util.*;import java.text.*;public class InvestCalc {//declaration of instance variablesprivate double interest, principal;//default constructor, sets interest and principal to zeropublic InvestCalc() {interest = 0.0;principal = ...
12914 byte By
theDana at 2007-10-3 6:07:49
Hello,I have been programming in XCode, Mac OS X, and have been doing fine up until now.My problem:I had to use BlueJ to program somthing, and I have a big chunk of code, that works perfectly when I use the integrated compiler/VM.I wanted it to be a standalon application, So i copied the source ...
I'm new here, learning Java has be somewhat frustrating for me. I'm having difficult time with this so I would appricate your help... Error message at runtime was displayed ( It has to do with trying to parse a string that is not parsable into an int ):Exception in thread "main" ...
3687 byte By
jami52a at 2007-10-3 6:15:27
I'm totally new to Java, and so I am probably making a stupid mistake. I get the error:JPEST.java:39: cannot find symbolsymbol : constructor JPSTUDENT()location: class JPSTUDENTJPSTUDENT student1 = new JPSTUDENT();^JPTEST.java:40: cannot find symbolsymbol : constructor JPEMPLOYEE()location: ...
438 byte By
Lebaa at 2007-10-3 6:15:35
Hi evryoen,thanks for your time,I instaled JDK, on my XP O.S, It compailed the java filesbut I can not run it even helloWorld.java one.can you help me the error says:C:\JAVA_HOME\Test>javac *.javaC:\JAVA_HOME\Test>C:\JAVA_HOME\Test>java HelloWorldException in thread "main" ...
Here is the code, in the code I have created a new button called ClickToPlay. Though when I compile this code I receive an error telling me that it cannot find symbolsymbol: constructor Button(java.lang.String)location: class Button ClickToPlay = new Button("Click her to play");Please, someone ...
I wrote a custom doclet in 1.2.2 a couple of years ago, and it's time to update everything to jdk 1.5. The custom doclet is very simple (not much different from Standard) but the 1.5 structure is extremely different from 1.2 .When I wrote the 1.2 custom doclet, I had to copy all the java ...
I have read tutorials on how to set the x and y coordinates for boxes, they have told me to do this <ButtonName>.setBounds(<x><y><widt><height>)Though when I do this in my code it does not work, it always keeps the box in the top middle of the applet. Here is the ...
hi everybodyi want to set the environment variables on Windows XP ProfessionalI had installed tomcat 5.0 and jdk 1.5 as well as jdk1.4when i run my war file( which is in webapps folder ) it gives an errorJAVA_HOME does not point to jdkBut i had already set environment variables but they r all ...
1186 byte By
lonolfa at 2007-10-3 6:43:35
Hello,I am trying to do something simple.I have created directory structure /javacode. Under it there is directory called "maincode". Under "main" there are two directories "utils" and "threads".In threads I created a java file called Thread2.java:package main.threads;class Thread2 {}It ...
322 byte By
lonolfa at 2007-10-3 6:43:57
Hello,Are there any tools which automate the process of using javadoc?I am talking about a program which analyzes a .java file and adds a skeleton documentation ready for extension (each method with its parameters and so on), which can later be used to generate HTML files using ...
Hi All,How can i do java doc for packages like I have a root directoryTMS and subdirectories like A,B,C,D,E.....Up Z...How can i do it.
I am getting a the "Exception in thread "main" java.lang.NoClassDefFoundError: "When i try to run any file with the command "java". I have tryed to use the -cp command but that does nothing. If i have a dir with to files test.java and test.class and i type "java test" I get the message ...
Hey all, can someone help me overcome this problem with one of the java applets."The Java applet returned an error.Please contact customer support for technical help.The error code is, please make a note of it:java.lang.Exception: 001b-0001-0000-0000 at ...
Hi, I am currently trying to instrument a Java class with module calls to a Monitor and some state variables. So I have been trying to play with the mtrace.c provided in the demo section of the jdk download. Initially, there was the "opcode.h" not found ( which was spoken to about in the past ...
I get cannot find symbol textio and symbol romanconverterI need help to fix this and understand what i did wrong or did not do.Im trying to write a program that has the user input numbers and the the program outputs roman numbersI hope that i am close to getting there!public class ...
Hi all,I am trying to insert string in mysql using java query.As I have taken field varchar,that should be in single quotes,whereas string is having double quotes...so as I am trying to insert data that gives null value all the time.I did like: String name=jTextFieldname.getText();...String ...
I am writing my own doclet that could gather data that I want to use in the class that calls my own doclet. Is there a chance to do this?
1452 byte By
limorma at 2007-10-3 7:04:47
Hi,I encountered a problem while linking to Javadoc from our Online Help.The problem I encountered was when trying to link to any specific class in the Javadoc, in the following way: http://www.gigaspaces.com/docs/JavaDoc/index.html?com%2Fj_spaces%2Fcore%2Fclient%2FMetaDataEntry.html as apposed ...
Okay, ive got a little project im working on, it has 4 classes, 3 of which contain all non-static methods, and one of which contains the static main routine..on compiling i get this error:non-static method printHistory() cannot be referenced from a static contextdoes anyone know how to get ...
We have a couple of custom taglets for which inType() returns true. The taglets work OK for class javadocs, but are printed almost literally when use in interface javadocs.I've been prowling around various search engins and the bug parade for a while today but find no mention of this. Anybody ...
2313 byte By
pocniba at 2007-10-3 7:08:57
not sure why but is returning StringIndexOutOfBoundsException somewhere in the while loop, therefore second while loop only returns null, any ideas why exception is occuring?public void viewAll(){int c=0;int len = 0;try{String title;String genre;String rate;String time;raf.seek(0);String line = ...
95 byte By
becxiera at 2007-10-3 7:11:01
What does this erro mean? and how do i solve it?NoClassDefFoundError: IQueenState
57 byte By
himaa at 2007-10-3 7:17:08
Is it possible to merge javadocs?If so how?
Hi,I've been searching the web for something *simple* that will convert thejavadoc in my java application to LaTex.So far what I've found is eitherout-of-date, too complicated (i.e. "all you've got to do is compile and linkthis wonderful C program ...") or is simply not explained (what the ...
Hi,i googled, looked at the javadoc-doc but found no answer. How do i make a newline in an function description in javadoc? So i have much text want to make a linebreak, how can i do this?! Thank you!!!
I'm experiencing a couple of problems when trying to run the Cisco IPS Device Manager (IDM).First, I launched the IDM and received an error that I needed to upgrade to 1.4.2 or higher. So I upgraded my JSE to 1.4.2_12.Then I launched the IDM again and received an error that my heap size was ...
I am not allowed to use an IDE for a SE course I am taking, and I am supposed to write classes using a text editor and test with ant/junit combo. Everything works fine except for javadoc. Whether from the command line - javadoc *.javaor in ant - ant docI keep getting this message after it finds ...
Hello, I am having some trouble trying to figure out how to call a method with arrays instantiated such as: public static int readProducts(String[] products, double[] prices, int[] quantities){We have never done method calling that has arrays in it and don't know how to set up the main ...
When I was in the Labs at Uni, I created a simple program called Packing.java, nothing too challenging, as we have only just started learning java - code belowpublic class Packing {//global declarationsstatic final double shift_length = 14700f;public static void main(String[] args) {//local ...
I am new to using Javadoc and i have a few queries.1) I need to include examples in the Javadoc output..How do i do that?2) Also if i have to add taglets or doclets, what syntax do i have to use when using ANT?3) How do i change the frame structure of the standard Javadoc ...
i downloaded jre1.5.0_06 and i'm trying to run some application at cmd or command prompt but this message appear: Unable to start the application--the Java Virtual machine cannot be loaded.any help? thanksryan
Hi all,I made a file called mylist.txt containing some java classes.C:\jdk1.4\bin\DMD\*.javathen when i try to generate javadoc then i am getting the following error i have kept the mylist.txt in C:\jdk1.4\bin\mylist.txtjavadoc: cannot read mylist (The system cannot find the file specified)1 ...
I'm getting the following errors intermittently (once every few hours) on a Java/Jni/C application. I would usually blame the C code except that the error is happening in the JVM, always at the same point. Could this be a JVM issue? I've seen it in 1.50_06 and 1.50_08.## An unexpected error ...
193 byte By
javanuba at 2007-10-3 7:55:24
This is probably a simple error, but I have been working on what I did wrong for several days. If anyone knows what this is trying to tell me, please let me know.Thanks in advance
9026 byte By
Marty77a at 2007-10-3 8:03:57
Hello,have the problem that apparently no FormBean of my ActionForm class can be found /instantiated..Tried very hard to find the error but I failed. Hope somebody can help me out. Many Thanks in advance!Code as follows:ArtikelErfassung.jsp:<%@ taglib uri='/struts-html' prefix='html' ...
Hi, I can compile a java program as javac -classpath C:\mets.jar test.javawithout any problem. However, when I try to run the program as java -classpath C:\mets.jar test. I got the error message as "Exception in thread "main" java.lang.NoClassDefFoundError. I checked my classpath and path, and ...
I am new to java programming so please help me out with thisMy java program is getting compiled but its not running.Everytime i run any program on my machine the same message appears-->Exception in thread "main" java.lang.NoClassDefFoundError : classnameThe same programs are running on other ...
1066 byte By
kothasa at 2007-10-3 8:17:48
HiMy application uses java.util.loggingand i am getting this exception. java.io.IOException: The handle is invalid at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:260) at ...
Hi there everyone. I have coded a problem in order to solve this question What is the smallest int x > 2006 so that x^7 and x terminate in teh same five digits?When I compile this program, I get the following error C:\Documents and Settings\7531student\Desktop\Number21.java:41: unreachable ...
Okay, I am trying to solve an answer to a question. The question is What is the smallest integer x >2006, such that x^7 and x terminate in the same five digits? I came up with this program for some reason its not working. I think I am getting a problem with the long long npow. I am not reall ...
215 byte By
himaa at 2007-10-3 8:23:01
Hiusing javadoc i was able to generate javadoc for the java files in one folderBut how to do tht if they r in many folders, and inside another folders recursively.Thanks in advHima
hi this is surendrawhat is the exact diff b/w throw and throws?if possible give an examplethank usurendra
I get an error: 0 src is null or not an objectcode 0line :291char: 341this pops up when i go into yahoo games and click on screen shots. I have updated my java and it stills does this, how can i get this to work I dont want to download a game that i can not use.i have xp windows sp2 and my java ...
191 byte By
tarajm9a at 2007-10-3 8:38:54
How do you stop the Java VM Error Log file from appearing on the desktop. Is there anyway to get it to save somewhere else or just stop it from happening all together..Thank you
Exception java.lang.OutOfMemoryError: requested 16000 bytes for GrET* in /BUILD_AREA/jdk1.5.0_06/hotspot/src/share/vm/utilities/growableArray.cpp. Out of swap space?