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
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 ...
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 = ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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 : ...
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: ...
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 ?
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 ...
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'> ...
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
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 ...
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 ...
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 ...
(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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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
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 ...
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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抰 ...
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 ...
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 ...