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

importing 'my' packages

1078 byte By Dractema at 2007-10-2 20:20:08
My name is John and I an new to this forum.Would like some input from someone on importing user defined packages - something which I am having difficulties with.As of yet - I have been unable to import any of my packages successfully. Javac cannot find them. They are in a directory with the ...

Strange Compiler Error

1626 byte By ExitsFunnela at 2007-10-2 20:21:00
Hello,I'm struggling to explain a compiler error I've just received. I had some original code which looked like this:// Begin old java filepublic class Foo{ public String f1(int x, int y) throws Exception {if (x == 4){return "foo4";}else if (x == 5){return "foo5";}else if (x == 6){return ...

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

Need help in Identifying.

346 byte By SkyDiplomaa at 2007-10-2 20:33:52
Hi all,Thanks for viewing this forum which i have posted, I would like you to go to a website which i will post and there you all need to help me.Just can you tell me which text editor he is using?the link is http://homepages.shu.ac.uk/~sgreasle/seang/Tutorials/java/1/1.htmCan you also tell me ...

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

encoded class files

490 byte By _mruettia at 2007-10-2 20:37:56
Hi,I'm using encoded class files in my application. These files are decoded using my own classloader. I now introduced a new feature which should compile a part of code at runtime. The problem is that this code has imports of class which are only encoded available. Is it possible to install a ...

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

Help with a compiling error

1041 byte By Kazuma.Mikuraa at 2007-10-2 20:43:50
I'm trying to compile two scripts, one for a login and the second for the client itself, but theses are the errors I keep getting:XMLParserServer.java:7: package org.apache.xerces.parsers does not existimport org.apache.xerces.parsers.SAXParser; ^MultiServer.java:26: cannot find symbolsymbol : ...

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

warning problem

175 byte By bachir1983a at 2007-10-2 20:58:15
what does this warning mean?Warning; deprecation show() in java.awt.Windows has been deprecatedwhen i wan to show JFrame it appearswhat caan i do ?

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

Is this a Compiler problem

794 byte By addvermaa at 2007-10-2 21:56:05
I have a java file which has the following line of codeString strOne = (strValueToBeRead == null || strValueToBeRead.equals("")) ? " " : strValueToBeRead;When I compile the file, a class file gets created. On opening the class file with "jad" (a decompiler) the above line of code is shown ...

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

How to compile java code from jsp page durining runtime

140 byte By Ankoor_Mehtaa at 2007-10-2 22:06:29
plz help me how to take java code in a text box from the user and compile and show the result online of the code inputted by the user

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

before String name. after String arg1

261 byte By jimmy6a at 2007-10-2 22:13:23
i am using eclispe.The original method getString (String name, String password), after i jar the package the method's parameter name change to getString(String arg1, String arg2)How to make the parameter name same with the original?

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

best java decompiler

351 byte By june24a at 2007-10-2 22:15:17
Dear all,I encounter a big problem of losing java source files. I downloaded many java decompilers to decompile my java classes. But there are some problems with goto, exception, etc. Do you have any recommendation of how to retrieve the source from java class? Which java decompiler can resolve ...

Compiles in IDE but not from javac

737 byte By Anthony-Brewa at 2007-10-2 22:17:15
Hi,I have been using a java 1.5 library to do some new graphical stuff and noticed the following.I can compile my source in my IDE (Eclipse) using java 1.4 and run using java 1.4 even though the library is 1.5. When I enter the screen that requires the 1.5 java I get major minor exceptions 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 ...