666 byte By
JaySima at 2007-11-27 0:16:48
Hi,I think this has been talked about a million times, but I just want to be sure I have it right. Basically I want to use the Standard doclet, but just tweak it a little. The Sun site says to either modify a copy of the source directly, or to subclass Standard and other "appropriate" ...
769 byte By
L.a.r.sa at 2007-11-27 0:20:58
Hi,the java compiler javac of jdk1.6.0 suddenly stopped producing class files for all my .java files. I had compiled my main .java file, received 10 errors and fixed one of them. Then I compiled again and javac didn't give any error messages anymore and didn't produce class files for every ...
748 byte By
mogga at 2007-11-27 0:26:07
hi all,i have a problem with toString() method. i wrote an extending class for Hashtable, named OrderedHashtable. When i start the program toString method gives the following error messagecom.sun.jdi.InvocationException occurred invoking method.my extended class looks like thispublic class ...
131 byte By
ray_coxa at 2007-11-27 0:36:38
Just a quick question: Does including debug information in class files degrade runtime performance in any way?Thanks!
176 byte By
RaviDa at 2007-11-27 0:41:24
hi,i am trying to do documetation for jsp pages, but i am not successed.can someone clear this up for me? thanks!Message was edited by: RaviD
Hi,This is the code i have so far my only question is why is my printf not working, it is returning an error. I need to print a (string, double) and a (string, double, int), but i dont know what to use. Thx Here is par of the code...System.out.print("What annual income do you require for ...
i've been splitting my hairs at this all night.any help would be great!need answers quick...i'm getting a compile error:E:\java\Methods.java:36: getValidMaxNum() in Methods cannot be applied to (int)userNum = getValidMaxNum( userNum );^E:\java\Methods.java:38: cannot find symbolsymbol : ...
Hello :) My friend is doing his thesis & he's stuck with this program. Apparently it's not compiling. Unfortunately I don't have Java installed on this comp (in work) so I'm not much use but I was hoping someone here could point him in the right direction. Here ...
Just updated my java today - waste of time.Tried to play some games on Pogo and the updated java froze Firefox and IE each time. Restarted the machine just to make sure but the browsers just kept freezing.Uninstalled the update and the games worked no problem.
Hi all,we have web based application. Whenever there is critical errors encounters in our application we need to write that errors in to windows event viewer, application logs. Please help me on how to do this.do we have any specific API for this ?thanks in ...
517 byte By
tlrochea at 2007-11-27 1:15:14
I'm running a Java app from ant on linux. When I run the app from thecommandline, it seems to run OK, but from ant I'm getting> BUILD FAILED> /foo/bar/build.xml:140: exec returned: 13and I have no idea what errorcode=13 means. Is there a list ofcommandline error codes somewhere that I ...
535 byte By
Stanea at 2007-11-27 1:17:01
Hi everybody :-)Is there a way to do this:public void someMethod(int var1, int var2){ /** * I want this piece of comment included in JavaDoc. Here I will describethis small part of code. */ int var3 = var1 + ...
Hi everybody,I am trying to use the new compiler API in javax.tools but get a null reference back from ToolProvider.getSystemJavaCompiler().If I add tools.jar to the classpath the program runs fine. However, since my app is commerical and I don't think I can distribute tools.jar with it, this ...
363 byte By
Bartelda at 2007-11-27 1:19:07
Hi, I am getting a lot of SQLExceptions in my project, and I am fed up with try/catches everywhere in my project. I am doing exactly the same in every catch.So I was wondering if there is any way of default error handling, so if noone catches this exception, this will catch it.I know it excists ...
277 byte By
Airwolfa at 2007-11-27 1:32:12
i'm using sun's javac, but several classmates told me Eclipse compiler generates small class files.i tried it on my last homework assignment, and Eclipse does generate small class files.do people also find this? what can we do to improve sun's compiler?
205 byte By
Anumehaa at 2007-11-27 1:33:49
hi friends, if any one of u have a technical specification document for any java development project then plaese avail me with it as soon as possible , i need one very urgently!thanks!
HiI am using the brand new javax.tools.JavaCompiler feature to compile on the fly some source code. However using the library under web start becomes cery tricky.1) The compiler tries to read the java.endorsed.dirs system property and it fails. The only solution I have found so far is to grant ...
30032 byte By
Jhay_area at 2007-11-27 1:43:53
I need Help, im encountering this Exception and i dont know what to do, can any Help me to resolve this problem.... Any help is greatly appreciated/HERE'S MY CODE--String fileName = "Sample";System.out.println("Download Word Document");System.out.println(session.getAttribute("data"));// set ...
Hi,From the answer to a previous post I understand that I must have a jdk installed to use the javax.tools API, which I need for a commercial application I am developing. Reading license texts makes my eyes bleed, but I think it says I am allowed to use the jdk to run my programs. With the ...
531 byte By
Javadoca at 2007-11-27 1:56:17
My custom taglet works on information that is constructed based on RootDoc in my custom Doclet. I store this info in a static class. I notice that Taglet cannot access this info as it being loaded by different ClassLoader. Instead of constructing the info in Custom Doclet, I would like to ...
221 byte By
Shalakaa at 2007-11-27 1:59:30
hey yai'm doing an assignment and i am stuck on the lastcdr (lastcdr(quote (a b c)))the reply for this is meant to be (a b c)but i keep getting it(A B C)please help
159 byte By
digit-xa at 2007-11-27 2:01:28
Hi!Is it necessary to compile an originally 32 bit web application with 64 bit compiler to get it up and running onto 64 bit OS (Linux)thx
class Thread1 extends Thread{public void run(){try{ String[] devices=Jpcap.getDeviceList();String val="";for(int j=0;j<50;j++){System.out.println(devices[j]);val=val+devices[j];}Jpcap jpcap=Jpcap.openDevice(val,10000,false,20);jpcap.loopPacket(-1,new PacketSniff());}catch(Exception ...
2328 byte By
spva at 2007-11-27 2:31:27
HiI am using Netbeans 5.0 with bundled Tomcat 5.5.9.I have both jdk1.4 and jdk1.5 installed.Previously it was jdk1.4 selected as default platform. Then i changed it to jdk1.5.From then on, i wasn't able to run servlets. Before that i was able to run servlets.The error that i got was ...
9038 byte By
arunkva at 2007-11-27 2:31:36
While running JavaDoc (from Java 6) on some files, I see this exception:java.lang.StringIndexOutOfBoundsException: String index out of range: -1resulting in a DocletAbortException. I am unable to figure out what might be causing it (or even which of my files is triggering it). Here's the ...
Hi,have creted the logger and the code is below.... when i log something using subscriberLogger it writes both on console and as well file.I badly need to supress the logs which is written on console... and someone help me in this reagards.subscriberLogger = ...
I have some class files that I open up in Note pad, but can not view them to know what they mean. What program do I use to view these .class in Java? Thanks.
I get this error when I pass a string of sql query to JDBC to retrieve data..Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 5 >= 122at java.util.Vector.elementAt(Vector.java:432)23at sportsapp2.SportsMDIApp2.showNextMatch(SportsMDIApp2.java:46)2425at ...
Hi im a newbie at this ^^;I get the error message "non-static method cannot be referenced from a static context" when i try to compile my Asteroids class. Im trying to access an arraylist from my spaceRock class.package Asteroids;import java.awt.Color;import java.awt.Font;import ...
Hello.Sorry, this is a cross-post from the jpda forum, but as i had no anwser in weeks i had to try here too.Here is the description of my problematic:For one of my projects, swash, ( https://swash.dev.java.net ) which is an animation package for swing, i am confronted to problems during ...
Hello,I am using Sun's jdk1.5.0_09 "javac" compiler and the package name in my Test class is written as "com.hrishijoshi.asdf". This file compiles even if I put it in a directory called "com" (or anything else, as a matter of fact).javac doesn't throw error even if the source file's ...
How to convert a class file to jar executable file?
2203 byte By
kode128a at 2007-11-27 3:00:11
Hello everyone, maybe someone knows how to solve this or where the problem is? Tnx!Exception in thread "AWT-EventQueue-0" java.lang.NullPointerExceptionat org.jdesktop.layout.GroupLayout$ComponentSpring.installIfNecessary(GroupLayout.java:2216)at ...
Hi all,Is there a way that I can embed the source of each function in the javadoc html pages. Function descriptions in that case may have a small + sign next to them, clicking on which displays the source for that function.This functionality will be really useful as many a times reading the ...
257 byte By
cheynnea at 2007-11-27 3:12:06
Hi,I encountered error below in 10g database.The same application worksfine in 9i database. Any idea the cause the of the problem?org.hibernate.ObjectNotFoundException: No row with the given identifier exists:Thanks a lot.
Anyone here knows why JAR libraries we get for open source or other projects do not contain Javadoc?That way, it would be very easy to show context sensitive help in IDE's...
Im working with eclipse at the moment and I just generated a JavadocI need to get purpose, preconditions and postconditions written for my methods.I doubt it but is there a way for it to get automatically generated in the methods for me?If I have to do it manually, is there any guide one can ...
i implemented chat by establishing the connection using sockets.. the application works fine when running on a single machine but exits after somewhile when two remote machines are connected.the time after which the error occurs is random not dependent on number of messages exchanged or the ...
4663 byte By
Pnolana at 2007-11-27 3:27:00
Hello there,I'm brand new to Java and have. I'm taking my 2nd Java class at school and I'm pretty lost at this point. I realize there are other postings regarding this topic and I have looked through them but have not been able to get an answer to my problem.The main problem I'm having ...
Hi everybody,I am getting "Exception in thread "main" java.lang.NullPointerException" when I try to run the code. The pointed lines for the error are all related to searchDB method. Please, anyone can help figuring out what's wrong?package onlineshopping;import javax.swing.*; //for frame ...
577 byte By
frusteda at 2007-11-27 3:29:37
My newer XP, IE7, serv. pack2 computer brings up "Sorry, your browser doesn't support Java" on my WWW site at my provider. I can bring up java programs from other sites on this computer. I have removed and reloaded IE7 without solving to the problem. I have also removed and reloaded the latest ...
Hello,I am wondering if the RMIC document is wrong. It said ( http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/rmic.html#iiop):Invoking rmic with the -iiop generates stubs and ties that conform to this naming convention: ...
This the the the Lane Class:import java.util.*;import java.io.*;import java.*;public class Lane{public String[][] lane = new String[10][3];int car1 = 0;int car2 = 0;int car3 = 0;int car4 = 0;public int bool = 1;Random random = new Random(); public String[][] addCar(){while(bool == 1){Random ...
When rolling over the submenu of www.mweyecenter.com that i made the site, on an APPLE operating platform the cursor on the submenu images turns into a cursor vs. the finger pointer, which makes it hard to click on for the user.HELP ;)
638 byte By
roamera at 2007-11-27 3:54:42
I have a java file which requires the following class to be imported.import java.io.*;import java.net.*;import java.util.*;import java.text.*;import javax.servlet.*;import javax.servlet.http.*;import org.apache.commons.fileupload.*;import ...
216 byte By
cowwoca at 2007-11-27 4:00:43
Hi,Anyone know how to use the new Java Compiler API to generate a AST from source-code that I can walk? http://java.sun.com/javase/6/docs/api/javax/tools/JavaCompiler.htmlThanks,Gili
I have found one interface in one pdf .i dont know what actually this interface will do,plz help mepackage javax.servlet;// // Approximate Source Imports// public abstract interface Servlet{// // Fields// // // Constructors// // // Methods// void init(javax.servlet.ServletConfig param1){} ...
Hi,how can i write multilingual javadoc for my java source code?for instance:/** * <div lang="en">bla bla bla </div> * <div lang="tr">bla bla bla </div> */
676 byte By
Mdoga at 2007-11-27 4:21:06
Before anyone says that there are other topics saying the same thing i would just like to say this, "I know that and, all they did was get the program running part working". My problem is that every time i try to compile my program i get "Javac" is not recognized as an internal or external ...
Dear sirI am implemention an application called CRV in that i am facing error as:" exception occured in CRV.java.lang.ClassNotFound exception com infy.bbu.crv. CRV error type"Kindly explain the cause and solution for the same