missing method body, or declare abstract

1729 byte By get2santosha at 2007-10-2 23:02:57
When Compiling the code i get the message as missing method body, or declare abstractpublic void actionPerformed(ActionEvent e);import javax.swing.*;import java.awt.event.*;import java.awt.*;public class timerframe extends JFrame{JLabel labelmessage,labeltimer;int timepassed;JButton ...

Garbage created by IterateOverReachableObjects() / IterateOverHeap()

157 byte By lldaedaluslla at 2007-10-2 23:03:46
See here: <a href=" http://forum.java.sun.com/thread.jspa?threadID=747024"> http://forum.java.sun.com/thread.jspa?threadID=747024</a>

How to send results from agent to java application

847 byte By SajidTendulkara at 2007-10-2 23:06:05
HelloI have been working on a java agent using JVMTI. The next thing that I would like to do is instead of having the output sent to stdout, I would like to have it sent to a java application.I have been going through Sheng Liang抯 book on JNI, and have seen that to call a java method you need a ...

Handling OutOfMemoryError Gracefully

713 byte By Roxiea at 2007-10-2 23:09:48
Hi,I am looking for solution to handle OutOfMemoryError or any other JVM Error gracefully. I want to send emails to system-admin and then terminate my JVM.I am not able to find any good resource on using log4j for handling errors. If I code 搕hrow new Error(搄vm error occurred, shutting down ...

Applet error - Null pointer exception?

1459 byte By joeasdfaa at 2007-10-2 23:10:29
The applet loads fine the first time I navigate to the page.Upon refresh, i get java.lang.NullPointer exception.Here is my java console information:basic: Loading applet ...basic: Initializing applet ...basic: Starting applet ...java.lang.NullPointerExceptionat ...

unsupported major.miner version 49.0

326 byte By niceguy664a at 2007-10-2 23:14:29
I want to start programming in java but when i did the tutorial the compiled code would not run i tried reset the CLASSPATH an so forth but it will not run the errormsg i get is to long to type out but the main part of it is Unsupported Major.Minor version 49.0Can any one please tell me wats ...

unable to send mails to yahoo.com from javax.mail API

298 byte By mysunforumsa at 2007-10-2 23:22:29
Hai every one, I am using javax.mail api for sending mails.The mail ids include both gmail and yahoo acccounts.I am unable to send to yahoo accounts where as mails are getting delivered to gmail accounts.can any one help me please. Thanking you in

Bizzar JVM crash on dual Xeon EMT64 machine

16434 byte By aucifer_nicka at 2007-10-2 23:22:50
I am posting this one here to see if anyone else has the same or similar experience. I have an Java application running on a Windows Server 2003 SP1 OS with dual Xeon EMT64. It is running on Sun's JDK 1.5 Update 3, and every couple of hours the JVM instance just crash with the following error ...

javaw.exe has encountered a problem

684 byte By sabya at 2007-10-2 23:29:30
Has anyone got this message."javaw.exe has encountered a problem and needs to close. We are sorry for the inconvenience."I was trying to debug my java application using eclipse debugger [eclipse 3.1] on windowsXP when i get this message. This message is very random and doesn't occur at any ...

Runtime error in IE 7

2734 byte By fireftrma at 2007-10-2 23:33:57
A site I use has a pop up applelet window which works fine in IE 6 However I recently downloaded the IE 7 Beta version and, when using that, get a runtime library error and a fata errror in iexplore.exe, closing all windows if the error message window is closed. The Java log report is:# An ...

Eclipse on Solaris 11

1980 byte By Aknibbsa at 2007-10-2 23:35:16
Hi all I am working with eclipse on Solaris 11. The server that eclipse is on just recently went from 10 to 11 and now eclipse will no longer execute. When trying to execute I get the following error:java.lang.UnsatisfiedLinkError: no swt-motif-3139 in java.library.pathat ...

Java not recognised.

880 byte By ivegotfungusa at 2007-10-2 23:36:10
First off, my apologies if I am posting this in a incorrect area.I play an online game called Kings of Chaos (that does not require java technology) - however a tool to make the game easier to play does.Its a mulitple batch window program and requires java. Yesterday, it was working absolutely ...

SIGBUS/SIGSEGV (Signal 10/11) while iterateOverReachableObjects

2619 byte By lldaedaluslla at 2007-10-2 23:45:53
Hi, I tried to run my JVMTI based heap analyser several times without process restart. This does not work currently and I do not know why. The first run is successful. With the second run the process panics with SIGBUS or SIGSEGV (which of both occus is not in my hands) at some nearly ...

Error occurred during initialization of VM & java/lang/NoClassDefFoundError

878 byte By gururajaa at 2007-10-2 23:53:15
ascertain:tcglive:~/BUILD/bin> ./listJobs Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object ascertain:tcglive:~/BUILD/bin> ./startJobServer -fg Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object We've been ...

Attach API: dead links in Mustang docs

149 byte By Pakka-Pakkaa at 2007-10-3 0:00:30
Title says all, I can't find a working link to the Attach spec (both in the online and downloaded mustang b90 docs) from the docs index page.

[mifdoclet (1.2)] problem with ArrayList<>

933 byte By djiba at 2007-10-3 0:06:20
Hello,I am trying to get mifdoclet running to generate documentation in pdf.I get an error for each ArrayList<SomeClass> that there is in my source code:Rules.java:21: <identifier> expectedprivate static ArrayList<Move> legalMovesNonCapture;^Rules.java:49: '(' or '[' ...

Exception in thread "main" java.lang.UnsupportedClassversion error.

563 byte By vikingbalia at 2007-10-3 0:10:46
hi,I am having the JDk and jre versions in C: drivei am jdk version 1.5.0but when i am running the command version it is showing 1.4.2_03 version and also i am having the oracle 10g on my system.tried seeting classpath also but no success.I am trying to run a simple helloworld program.while ...

Shared comments

1719 byte By RegWhittona at 2007-10-3 0:17:31
I seem to end up duplicating a lot of text, especially between getters and setters and property members. I can always use the {@link} syntax but this can lead to a paper trail for the user to find the info they need, and they don't work so well when your javadoc is presented by Eclipse as a ...

COREDUMP,MEMORY LEAK in java

151 byte By humble4javaa at 2007-10-3 0:17:43
HII am frequently hearing these words "CORE DUMP,MEMORY LEAK...."Can anybody explain me wat is this?Thnx in Advance!

javadoc arg file -tag name:a:"label" does not work

550 byte By raineha at 2007-10-3 0:22:37
Hi. From the command line,javadoc -tag todo:a:"To Do:" SomeClass.javaworks fine. However, put -tag todo:a:"To Do:" in an arg file called options andjavadoc @options SomeClass.javadoes not work. The message is:javadoc: error - Illegal package name: "To Do:"-tag todo:a:ToDo works in the arg file. ...

Cannot use clone() method of LinkedList...That's strange

589 byte By beckham12a18a at 2007-10-3 0:26:59
I got a very strange problem. I wrote the following statement: .... Integer[] nums = generateRandomIntegerArray(); List<Integer> list = new LinkedList<Integer>(Arrays.asList(nums)); [b] List<Integer> clone = list.clone(); [/b] .....I got an error statement: cannot find ...

very special class objects detected

2373 byte By lldaedaluslla at 2007-10-3 0:29:35
Hi, using a code near to your heap viewer demo which pre tags all classes before the first iterateOverReachableObject() is called reveales special class objects. Using the tagging mechanism in iterateOverReachableObjects I detect 10 objects with the following attributes: - the object reached ...

java servlet database connection error

2212 byte By suchiatea at 2007-10-3 0:32:53
hey,i have tested database connection using normal java application and it works, so i moved on to test the database connection for servlets because i need to create a mobile application that goes through the servlets to the sql server database.below is a sample code i got from other ...

heap memory consumption of iterate functions

761 byte By lldaedaluslla at 2007-10-3 0:34:18
Hi, using iterateOverReachableObjects in my agent causes the heap (the C heap, not java heap) of the analysed process to increase from 30 MB up to ~600MB (only with the frist run). Around 120 MB are caused by the tagging of objects. We have around 8 million objects and this is my tag: ...

j2ee -verbose

209 byte By er_mandeep_btecha at 2007-10-3 0:35:31
Hi Friends,j2ee -verbose command is nor running.It gives Error :set J2EE_Home.how to set it.Or how to make this command run.Please reply as earlier as possible.It is urgentThanksBye

Difference Between JRE ,J2EE and J2SE

70 byte By Nikhilesha at 2007-10-3 0:36:50
Could I know what is the Difference Between JRE ,J2EE and J2SE.

How does Sun do that for their own JavaDoc?

242 byte By OldAndTireda at 2007-10-3 0:37:34
The Sun JavaDoc has "JavaTM 2 Platform Standard Ed. 5.0" up in the navbar, "JavaTM 2 Platform Standard Edition 5.0 API Specification" centered at the top before the normal text, and what looks like a custom footer. How do they do that?

Javadoc overview.html file location

825 byte By OldAndTireda at 2007-10-3 0:41:39
Running NetBeans on MS/Windows. I would like to check in the entire NB project via cvs and include the Javadoc overview.html in the package.However the person who checks it out can put their project pretty much anywhere they want. Unless I'm way wide of the mark it appears that the Javadoc ...

Xlint:unchecked compilation error?

958 byte By jawalearnera at 2007-10-3 0:46:36
Hello,when i try to compile the following code as part of a servlet application , the following Xlint:unchecked error occurs.I cant understand since I am using jdk1.5 or is it referring to generics in collections?if so could anyone pls reply how to fix it.Thanks in ...

NoClassDefFoundError

305 byte By p_snipea at 2007-10-3 0:49:52
I created a Java program and ported it to another computer, with only the class file. When I try to run it I get the "NoClassDefFoundError." I've since tried to run it back on my machine and everything is great. I'm not using any extra libraries or anything. Any ...

Cannot find symbol error.

778 byte By jimmyboia at 2007-10-3 0:50:50
Directions say:A-2-01)INSTANTIATE a local variable named myFile of class MyCsvFile, passing a single String argument for the CSV filename: 損iecesCompletedByEmployee,v00.txt?br>I wrote:MyCsvFile myFile = new MyCsvFile("piecesCompletedByEmployee,v00.txt");and I get this error:-Target File: ...

cannot find symbol error

665 byte By Raj_Amita at 2007-10-3 0:54:36
Can any one help meI have problem in calling Port.java from Msg.javaThe all four files are in smspackI am getting same type error in all four files The error message is as follows:Msg.java:192: cannot find symbolsymbol : variable Portlocation: class smspack.Msgs = Port.sendAT ("AT+CSQ"); ...

is there any problem if i use package

5156 byte By Raj_Amita at 2007-10-3 0:54:39
package smspack;import java.io.*;import java.rmi.*;import java.util.*;import javax.comm.*;class Port { private static String portName; private static SerialPort port; private static OutputStreamWriter out; private static InputStreamReader in; private static String number; private static String ...

non-static method xxx cannot be referenced from a static context

4354 byte By geema at 2007-10-3 1:01:08
hi.. I have some code and I get this error:set_ID.java:147: non-static method setGroupByGid(int) cannot be referenced from a static contextXenonGroup.setGroupByGid(gid);the setGroupByGid(int) function is part of the com.xenon.unix package, the setUid(int) is in the javaunix package. the ...

Links from tests to production classes

1106 byte By mbesosaa at 2007-10-3 1:01:10
Our source tree has two top-level branches: one for test and the other for production classes. The package (subdirectory) structure is identical in both branches. This is, I believe a fairly common arrangement. However, it creates a problem with Javadoc that I haven't been able to solve. I ...

problem about using "while"

344 byte By blackeaglea at 2007-10-3 1:02:11
i'm learning java programing, i want to use while term but there is an error : illegal start of type :( what can i do?public class WhileOrnek { int i = 0 ; while (i < 5 ) {System.out.println("i = " + i);i++ ;System.out.println("Congratulation! ");}}where is the ...

Javadoc.exe not in 1.5.0_07?

183 byte By MichaelFromina at 2007-10-3 1:08:00
I installed 1.5.0_07 from my hard drive after downloading the .exe from the sun site....I see no Javadoc.exe in my bin folder.Did this move? If so where can I find it? I

error message - he_err_pid2244

17279 byte By rivjmra at 2007-10-3 1:10:02
This message appeared on my desktop last night. I have no idea what this means. Could someone please assist me? Thanks in advance. ## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d0e7ab9, pid=2244, tid=348## Java VM: Java ...

Calling JVMTI outside JVM threads

797 byte By b_duncana at 2007-10-3 1:13:05
Hi folks,I'm writing a profiler-type application in C with the JVMTI. In Agent_OnLoad, I create a new thread which accept()s connection and passes them to another new thread which handles data from the network. I want to be able to control my agent over the network, specifically using ...

question on editing javadoc final appearnce

365 byte By Wesley_Ba at 2007-10-3 1:20:28
We're trying to remove t he following section of what Javadoc finally spits out: Its the tree that is generated at the top of the page, as shown here: http://i57.photobucket.com/albums/g220/WesB83/inquiry.jpgWe want to remove t hat and be able to list our documentation at the top of the page. ...

JVMTI agent and max heap

418 byte By cfhlap0a at 2007-10-3 1:21:17
Running an app with a JVMTI agent attached, I cannot specify a max heap greater than 320Mb, even on a 1Gb machine with hardly anything running. Specifying for example -Xms256m -Xmx512m results in following error:Error occurred during initialization of VMCould not reserve enough space for object ...

How does JUnit work?

207 byte By frea at 2007-10-3 1:24:56
Hi,Does anyone fo you know how JUnit works? Tried searching it online and found very minimal data. It would be great help if someone really helped.Thank You,Freethan

NullPointerException for ReturnTaglet.getTagletOutput

5170 byte By dmcdermida at 2007-10-3 1:25:57
I revised a custom doclet for JDK 1.5. When I run the javadoc tool on my source code, the doclet appears to run and produce the expected results. However, I am getting NullPointerExceptions after calls to ReturnTaglet.getTagletOutput. I would like to fix my doclet to avoid these exceptions, but ...

including subpackages in javadoc

583 byte By helpcomma at 2007-10-3 1:30:48
Hi,i want javadoc to generate documentation for all the code from a given directory includng all the packages?I have a directory called sources where the source code resides. This latter is constituted of two packages each one including 3 subpackages.I would like to have a command that would ...

Some n00b questions about Javadoc and PDF and MIFDoclet

1399 byte By Rory_Leggetta at 2007-10-3 1:32:19
Hello All,I have been trying for some time now to generate a PDF document using the MIF Doclet.I am doing this through IBM Rational Software Architect (a broken version of eclipse for those of you who aren't aquainted), but essentially this feature works as it does in Eclipse.My problem is I ...

I cant play Sina games

2247 byte By StuckWithAProblema at 2007-10-3 1:32:51
The pop-up thing that u get wont comeThis is what i get when i try to get in and when I press java consoleJava Plug-in 1.5.0_06Using JRE version 1.5.0_06 Java HotSpot(TM) Client VMUser home directory = C:\Documents and Settings\Kerry Hongload: class IELoader not ...

javadoc: error - Illegal package name: ""

2348 byte By jonsja at 2007-10-3 1:34:34
When I try to generate javadoc through IntelliJ IDEA 5.1.2 I get this result:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/javadoc -package -splitindex -author -version -classpath /Users/jonsjoberg/Desktop/mysql-connector-java-3.1.13/mysql-connector-java-3.1.13-bin.jar ...

How to code EJB in Eclipse IDE

352 byte By tahirakrama at 2007-10-3 1:37:40
Hello ForumI have downloaded eclipse-SDK-3_1.2-win32.zip and installed but I couldnt findout J2EE development in it (that how we add session beans, how we configure application server and how we generate entity beans)do I need any plugin to work with J2ee in it,Please help me - Thank u very ...

JVMTI ClassLoad callback function help

656 byte By Thomas.Warda at 2007-10-3 1:38:38
Hi, In my ClassLoad function I'm tyring to get the class name from the jclass that is passed to the function so that I would have something like this:static void JNICALLcbClassLoad(jvmtiEnv *jvmti, JNIEnv* jni, jthread thread, jclass klass){const char *class_name;class_name = ...

problems with Overview appearance

876 byte By Wesley_Ba at 2007-10-3 1:44:06
I am currently trying to adjust the appearance of the javadoc overview page, being able to generate groups to show on the page. However, no group names show on the page.<group title="LDT"><package name="LDT"/></group><group title="Quickstart"><package ...