please help me to check this problem

1637 byte By damnhea at 2007-10-2 20:00:03
I write this program to connect the FTP Server by using the package commons-net-1.4.1.jar which i download from http://jakarta.apache.org/site/downloads/downloads_commons-net.cgithe code is below .It is no problem when I compile ,but it causes some problem when i run it .import ...

java.lang.NumberFormatException

7530 byte By NetWorriera at 2007-10-2 20:02:51
this my codeimport java.io.*; import java.net.*; import java.*;class UDPServer { public static void main(String args[]) throws Exception { UDPServer t = new UDPServer();DatagramSocket serverSocket = new DatagramSocket(5551); while(true) { DatagramPacket receivePacket = new ...

java.lang.NullPointerException

322 byte By anmolgrada at 2007-10-2 20:02:53
hi 'm gettin this error java.lang.NullPointerExceptionat com.att.adv8.servlets.cis.RequestHandler.doPost(RequestHandler.java:27)n line 27 of my program is request.getRequestDispatcher("../cis/add_"+fname+".jsp").forward(request, response)kindly help me to debug th error ...

Help me please

157 byte By lionkingjavaa at 2007-10-2 20:03:54
I write this code :int a = 1;a = a++;System.out.println("a = " +a);It printed a= 1; Anybody know why ? Thanks alot.

problem referencing to methods with generic type parameters

651 byte By ctron@dentrassi.dea at 2007-10-2 20:07:21
Assuming I have an interface like to following:public interface Test <T> {void test ( T arg0 );void test ( T arg0, Object arg1 );}I would like to reference to both "test"-methods using "{@link #test(T)}" and "{@link #test(T,Object)}".But this generates an error telling me "test(T)" and ...

Program crashes if you enter in the wrong data...

470 byte By darrenhamiltona at 2007-10-2 20:08:16
Ok, my problem,I have a java application that reads in Currencies , now when I read in the correct currency symbol it works 110% and Im delighted with it.....however when I read in a dud currency it crashes and the application never completes what it is suppopsed to.......Is there anyway of ...

Unsupported major.minor version 49.0

1875 byte By flomastera at 2007-10-2 20:09:56
Hello everyone, I am executing the next code...import org.xml.sax.InputSource;import javax.xml.xpath.*;import org.apache.xpath.NodeSet;public class peos {public static void main(String[] args) {try {XPath xpath = XPathFactory.newInstance().newXPath();String expression = ...

Need Help! (Tokenizer error)

3074 byte By Avida at 2007-10-2 20:10:07
Hello,i am currently ubdertaking an introduction to programming coarse and for one of my assignments i have been asked to create a program that will read read a file that contains the number 1-10 in this format;12345678910The program must read these numbers, print them, find there sum then ...

Need solution for java.lang.OutOfMemoryError: Java heap space> without...

216 byte By rocky_333123a at 2007-10-2 20:10:59
Hi, I am looking solution for java.lang.OutOfMemoryError: Java heap space> without increasing the heap memory.... I mean vm argument from " -Xms26M to higher values Regards,Rocky

JVM error

10305 byte By cs02rm0a at 2007-10-2 20:13:36
I'm not really sure how to debug this. Supposedly the Java app being run crashes out and leaves behind an error log (as below). Apparently it happens with the latest JVM too, on multiple machines.I guess the "Top of Stack", "Instructions" or "Native Frames" bits are most important but I don't ...

java.lang.StringIndexOutOfBoundsException-urgent plz.

1882 byte By babusai1a at 2007-10-2 20:14:40
import java.io.*;import java.lang.String.*;import java.util.*;public class ReadFile {//--< main >--//public static void main (String[] args) {ReadFile t = new ReadFile();t.readMyFile();}//--< readMyFile >--//void readMyFile() {String line = null;String dcn = null;String pfn = ...

java script error and unable to view pictures on certain websites

447 byte By shimona_ia at 2007-10-2 20:15:36
javascript:objPO.openProductImages()when i click on picture it does not appear n when i scroll to the clear image bottom left of window states error on page and the following error above..javascript:objPO.openProductImages()plz help. i have downloaded latest java sun n reinstalled it... i ...

java script error and unable to view pictures on certain websites

447 byte By shimona_ia at 2007-10-2 20:15:37
javascript:objPO.openProductImages()when i click on picture it does not appear n when i scroll to the clear image bottom left of window states error on page and the following error above..javascript:objPO.openProductImages()plz help. i have downloaded latest java sun n reinstalled it... i ...

java script error and unable to view pictures on certain websites

447 byte By shimona_ia at 2007-10-2 20:15:38
javascript:objPO.openProductImages()when i click on picture it does not appear n when i scroll to the clear image bottom left of window states error on page and the following error above..javascript:objPO.openProductImages()plz help. i have downloaded latest java sun n reinstalled it... i ...

Even though I close all files it says "too many open files" :(

1348 byte By compScienceGuya at 2007-10-2 20:15:51
Hi,basically, i use the RandomAccessFile class to write to files. Max I've tried is around 20 files. There is only one file open at any given time.I have ensured this cos while debuggin I wrote "increment" and "decrement" methods, and ran them after I opened and closed a file respectively. ...

cannot find symbol constructor

5646 byte By noobie_Gal87a at 2007-10-2 20:15:59
i have been trying to debug this code... But i m not able to.. Hope u guys can help me.. Thanks a milllion!!!import java.awt.*;import java.awt.event.*;import java.awt.geom.*;import java.awt.image.*;import javax.swing.*;import javax.swing.event.*;public class TryOut extends ...

Exception in thread main

350 byte By jimenrighta at 2007-10-2 20:21:33
i have begun receiving the following error message when i try to executejava programs - even those that have previously worked:Exception in thread "main" java.lang.NoClassDefFoundError: pgmname/javacan anyone provide some insight? thanks in advance.jps these are all simple programs that have ...

Scanner class library - Error

941 byte By mlorentea at 2007-10-2 20:22:35
When I compile the mbare_projectOne.java I get the following error. There is a "^" under both the "S" of the word Scanner.G:\CS 151\mbare_projectOne.java:31: cannot resolve symbolsymbol : class Scannerlocation: class mbare_projectOneScanner keyboard = new Scanner(System.in);^G:\CS ...

java.lang.NoSuchMethodError

539 byte By javneetgambhira at 2007-10-2 20:27:37
hi all,i have an applet which has to be compatible with netscape, and Internet Explorer. and i am having a string str = *.xls,*.txt hardcoded in that applet. to convert this string into an array i am using the method String array[] = str.split(",");The problem is that this function is working ...

MIFdoclet blues...

2775 byte By mat_sida at 2007-10-2 20:28:27
Hello Javadoc community, Any estimate on when the new MIFdoclet that works with J2SE 5.0 will be released? The currently available version is simply too old for newer code that uses features such as enum. Which bring me to a problem with an "out-of-the-box" use of the current MIFdoclet ...

Looping of pictures

253 byte By noobie_Gal87a at 2007-10-2 20:30:30
i have a series of picture (1.PNG,2.PNG,3.PNG,4.PNG,5.PNG)I wan them to appear 1 by 1, making it look like animated picture. Wat kind of loop or how should i go about doing it? I tried for-loop, but i duno y it dun work...Thanks....

textfieldhandler is not abstract

7201 byte By CulRock25a at 2007-10-2 20:34:52
I keep on getting the following error when I compile my code...this is my first GUI so I am sure it is something stupidERROR: textfieldhandler is not abstract and does not override abstract method actioPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListnerMy Code:import ...

Using JVMTI for exception monitoring a JAVA App.

411 byte By AmarAgrawala at 2007-10-2 20:36:03
hi all,I am using the JVMTI interface to build a tool for monitoring the exceptions thrown by a JAVA app. I am able to display the class and the method that throws the exception but unable to display the actual exception thrown.How can u use the jobject exception in the event data structure to ...

JVM and Azureus error

16196 byte By FarCrya at 2007-10-2 20:43:27
## An unexpected error has been detected by Java Runtime Environment:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d965340, pid=2296, tid=1652## Java VM: Java HotSpot(TM) Client VM (1.6.0-beta-b59g mixed mode, sharing)# Problematic frame:# V [jvm.dll+0x125340]## If you would like to ...

Incompatible class version

2447 byte By yahooa at 2007-10-2 20:47:49
Java VM version: 1.5.0Java VM vendor: Sun Microsystems Inc.Java VM: Sun Microsystems Inc. 1.5.0SecurityManager=org.kde.kjas.server.KJASSecurityManager@1554d32-Konqueror Java Console Help c: clear console g: run garbage collection h: show help m: show memory info s: print system properties t: ...

setPosition error

8909 byte By Jasper91a at 2007-10-2 21:05:36
Hi allI'm a beginning Java programmer! I'm working with PHP, MySQL and HTML already for 3 months but Java still 2 weeks. Now i made this code (Ya, really made by myself :P):import java.applet.Applet;import java.awt.*;import java.awt.event.*;public class stapreken extends Applet implements ...

java.lang.Throwable exception in weblogic with SP4

3586 byte By Shipraa at 2007-10-2 21:08:31
Hi can any one please tell the reason for following exception? we are using Sun jdk 1.4.2 with weblogic SP4:####<May 24, 2006 7:15:24 PM BST> <Error> <HTTP> <dowc582064> <bridgeserver1> <ExecuteThread: '43' for queue: 'weblogic.kernel.Default'> ...

Javadoc - How to disable all comments & tags ?

298 byte By christophe.bismutha at 2007-10-2 21:19:19
Good afternoon everyone,I would like to prevent all comments & tags from being parsed by the Javadoc tools.I would like to have a Javadoc with only information exported from source code.Is it possible? Is there any option to enable?Thank

Keep javadoc comments in class files

319 byte By dbrenck@the.evila at 2007-10-2 21:19:48
Hi there,is there a way to keep javadoc comments in classfiles?Reason: Not any company can spread the source for their algorithms, but as customer requests grow to use it with eclipse, code completion and javadoc, there is a need for such "feature".Any ideas? Not documented ...

JDB Access is denied

1293 byte By skaterxua at 2007-10-2 21:20:08
I need to debug a java service which is invoked by a c app(*.exe) on windows.I use thejava -Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,suspend=y -classpath D:/SOAM/3.0/samples/java/SampleApplication/bin MyServiceto call my java service then I use ...

very n00b error....just started programming and need help?!?!

1891 byte By plzbenicetomea at 2007-10-2 21:23:06
Hi i just started programming in java.im running j2se 1.5.0 on windows xpim on the subject of classes and objects.here is my simple little code im trying to get to compile public class Newprog{public static void main(String[] args){Greeter myObjectGreeter = new ...

duplicate class signatures by GetLoadedClasses

1312 byte By lldaedaluslla at 2007-10-2 21:35:16
(Unknown problem with this posting, all my paragraphs are no more visible after preview - using IE6).Hi,using a heap analyser (jvmti based) on our application results in detecting multiple classes having exactly (really exacty - nothing about inner classes or stuff) the same fully qualified ...

Get updates for documentation from developers without redoing Javadocs

696 byte By ilevya at 2007-10-2 21:36:23
I am new to Java. I have been tasked to create the documentation for our software project. hence I'm trying to use Javadoc for the technical documentation. The problem is if I run NetBeans IDE, and generate Javadocs today, then I will be missing all new Javadoc changes that developers put into ...

How to tell what files have NOT been Javadoc'd.

248 byte By ilevya at 2007-10-2 21:37:20
Is there a way to generate a list of filenames that lists out what has not been Javadoc'd? I have tons of Java files, and I need to produce a list to give back to the developers, that tells that what they haven't Javadoc'd. Thanks.

Reading JavaDoc from Code

307 byte By millea@fnal.gova at 2007-10-2 21:46:03
If I have a folder structure with .java files in it, and I want to point JavaDoc at it and have it tell me JavaDoc info, how do I do that? One way is to extend Doclet, but then I can only call it from the command line with javadoc -doclet ... However, what if I just want to do it from ordinary ...

Can't find symbol class

2154 byte By Jasper_Kouwenberga at 2007-10-2 21:52:14
Hi allI'm a noob in java and i got a problem (noobproblem :P).I got this code:import java.awt.*;import java.awt.event.*;public class stapfiguren extends Applet implements ItemListener, MouseListener, MouseMotionListener{Menu index, r, c, l;MenuBar balk;MenuItem r1, r2 , c1, c2, l1, l2;public ...

JVM_OnUnload - like method?

323 byte By Honghaia at 2007-10-2 22:02:44
Is there a such method in JVMTI or JVMDI? I need to clean up some resources which are initialized in JVM_OnLoad method? e.g., I instantiate an object of a class, and I want to release the object when the jvm is unloaded.I have digged for some time, but cannot figure it out?Does anyone know the ...

java.lang.NoClassDefFoundError:

444 byte By tbrown9a at 2007-10-2 22:09:48
I am new to Java. I was able to run this yesterday - (after trying a gaziion classpath manipulations. I go to run it today - and i get the infamous java.lang.NoClassDefFoundError:error. My jars are in the classpath echo $CLASSPATH ...

infinitely looped java.lang.ArrayIndexOutOfBoundsException

1494 byte By KuroKyosukea at 2007-10-2 22:14:36
java.lang.ArrayIndexOutOfBoundsException: 312at GalaxyAngelGame.paintFrame(GalaxyAngelGame.java:518)at GalaxyAngelGame.update(GalaxyAngelGame.java:503)at sun.awt.RepaintArea.paint(Unknown Source)at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)at ...

Javadoc Limitations

1604 byte By pdrummonda at 2007-10-2 22:22:08
Can anyone explain to me why Javadoc is so limited compared to Doxygen? I come from C++ background and I am relatively new to Java so maybe I am missing something here? My issues with Javadoc are as follows: 1) Why do I have to type explicitly {@link} tags? Doxygen will pick-up code references ...

Monitor GUI events using JVMTI

381 byte By mqna at 2007-10-2 22:23:07
I'm looking for a way to create a log of all GUI events (JButton clicks, JInternalFrame init/close/minimize, etc.) with a timestamp. I would like to do this without editing the application source code (sprinkling trace statements throughout the app source). Is JVMTI the way to go for this ...

OutOfMemoryError

2597 byte By Shelaha at 2007-10-2 22:24:13
We have a problem in our Swing application where we run out of memory.What happens is, we have a number of objects in a model-view-controller architecture. The user pushes a button that indicates they want to throw away their changes and start again.Originally at this point, nothing got cleaned ...

Exception in thread "main" java.lang.NoClassDefFoundError

3509 byte By manjunathvenkatesha at 2007-10-2 22:27:26
Hi,I am using Windows XP Service pack 2. with jdk j2sdk1.4.1_01.I was able to compile the LeakExample.java. I have set the classpath every thing. When i Execute LeakExample using java LeakExample Iam able to see the output.The above steps works if there is no package declared. I have created ...

java.lang.OutOfMemoryError

595 byte By Flashback35a at 2007-10-2 22:30:25
I am getting this error. I know very little about javajava.lang.OutOfMemoryErrorat org.apache.tools.ant.Project.executeTarget(Project.java:1224)at org.apache.tools.ant.Project.executeTargets(Project.java:1063)at org.apache.tools.ant.Main.runBuild(Main.java:632)at ...

Analyse Heap at every garbage collection

611 byte By SajidTendulkara at 2007-10-2 22:42:41
HelloI am trying to create a program that will print out the classes that are loaded after every garbage collectionAs a solution, I thought I would try and merge together the gctest and heapviewer examples that are in the demo/JVMTI folder.I have tried many different variations and still can抰 ...

Java 5.0: Several java virtual machines running in the same process

503 byte By ponsoona at 2007-10-2 22:43:05
Sorry, I don't know that much about the program. I'm only 17. But I don't know where else to ask. I tried downloading the new version but I get the error --"the java runtime environment cannot be loaded" followed by, "several java virtual machines running in the same process caused an ...

please solve my problem

1706 byte By Smohana at 2007-10-2 22:43:13
import javax.servlet.*;import javax.servlet.http.*;import java.io.*;import javax.sql.*;import java.sql.*;public class Student extends HttpServlet{Connection dbon;public void doPost (HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException ...

Cannot find symbol

2114 byte By rypkia at 2007-10-2 22:47:55
Hi,I have the following code. I have come accross the importing libraries problem. I have download and installed the com.oreilly.servlet (cos.jar) in WEB-INF/lib catalog. But when I try to compile I get the following message:cannot find symbol symbol: variable ServletUtilslocation: class ...

ERROR:java.lang.NoClassDefFoundError

449 byte By aao588a at 2007-10-2 23:00:48
When I open a particular application, I received in a box title: WJView Errorand in the box the word: ERROR:java.lang.NoClassDefFoundErrornothing else except the ok button and the red XAll the function in the applicatiion works except the "chart" which I just cannot have access because of this ...

Problems with java applet "not initied"

701 byte By FaBYOBa at 2007-10-2 23:02:23
Hello everybody, when compiling I get the following warning:Note: braccio2.java uses or overrides a deprecated API.Note: Recompile with -Xlint:deprecation for details.And re-compiling with the -Xlint:deprecation I get this message:braccio2.java:101: warning: [deprecation] ...