Source code for JUnit

84 byte By Moushumi1234 at 2007-9-30 12:49:05
Can anyone let me know from where I can get the source code for JUnit?

where is the tutorial for java log?

157 byte By zhebincong at 2007-9-30 12:53:14
hellowho can tell me where i can find the tutorial about java log (java.utils.logging.*) that is incorporated to jdk1.4?thank you

remote debugging problem

401 byte By deeward at 2007-9-30 13:09:32
Hi, I did not have problem running the debugger and debugee on different solaris machines. But, when I run the debugger on solaris and the debugee on intel linux, I was getting "Connection timed out" after a long period of time. My question is how do I tell if the linux box prohibits any ...

JRockit JRE failed to stop at breakpoints in Eclipse

393 byte By bigbang.zhao at 2007-9-30 13:19:47
hi,When debugging an Eclipse plugin, I encountered a situation where breakpointswould never get hit when they were in the path of code execution. I changed theJRE to Sun's JRE and the problem went away. Any body can give me some hints about the problem?Any ideas or advices about Java Debug ...

Log4J issue

2802 byte By p_gandhi at 2007-9-30 13:31:06
I am new user to Log4j I am facing one problem in it. The thing is that our application is maintained by 2 parties, Ist party sees GUI and other EJB I implmeneted the EJB logging thru Log4j and other party also implemented Log4j for GUI Nw the issue is that we need seperate log files, but both ...

External access to VM thread state

527 byte By polenta at 2007-9-30 13:37:59
Hello to everybody.For debug purpose, I have the necessity to question the JVM about its internal state in a thread deadlock situation. I want to know: which are the threads involved? Where are they blocked?I want to get these information when the deadlock is already occurred, without running ...

which ide tool to use?

80 byte By jag_gagarin at 2007-9-30 13:42:14
hi! i'm confuse between borldand jbuilder or sun one. please help

Why is NetBeans trying to execute a class w/same name as directory?

750 byte By sixerjman at 2007-9-30 13:50:58
I'm learning NetBeans and it hasn't been easy to just create a new standalone program in the editor (via cut and paste), compile it, then run it. I had been creating the file first with Notepad, then bringing it up in the Netbeans editor to compile but figured I'd like to try to do as much ...

belongs to Vector

2858 byte By pollacchi at 2007-9-30 13:52:45
Hey folks I have created a vector of draughts Moves to be returned as the set of legal moves available. The Move object is, in turn, a vector composed of partial move objects. The intention is to make the move only if it is part of the vector of legal moves. I have made the move and checked ...

Java source file analyzer

386 byte By bsudhindra at 2007-9-30 13:57:48
Hi all,Is there any API available (Sun or 3rd party) which can analyze a given java source file, and give information in terms of - number of classes present- number of methods and method signaturesetc.The constraint is that we cannot use Java Reflection since availble files are .java files and ...

Help with implementing two different programs

13460 byte By cwalker94 at 2007-9-30 14:06:15
I need help with a couple of Java programs that I downloaded. I hope someone can help me. They work great if they're on their own, but if they are both on the same page, the 2nd one works, and the 1st one stops working. I'm pretty new to Java, so I don't know how to debug it too well.. ...

Good tools to detect memory leaks?

204 byte By MartinHilpert at 2007-9-30 14:11:53
Is the Eclsipe Profiler or JUnit a good tool to detect memroy leaks, i.e. to find objects that are not garbage collected because they're still referenced although they are not used anymore?

GUI for hprof output?

257 byte By MartinHilpert at 2007-9-30 14:12:43
As the -Xrunhprof parameter writes a rather large text file with profiling data, is there a tool/gui that presents this data in a more intuitive, graphical, ... better way? E.g. where i can sort the SITES by percent or alloc'ed objects, etc.?

Tool to detect unclosed streams?

149 byte By MartinHilpert at 2007-9-30 14:25:52
I'm searching for some debugging tool to detect classes/methods that open streams but don't close them anymore. Is there such a tool?

Memory Profiling

1690 byte By Drewly at 2007-9-30 14:28:18
My J2SE application may or may not have a memory leak (although I generally assume the former) as several of the users have experienced OutOfMemory errors. The workstations have plenty of memory, and the Runtime Envirnoment has been allocated plenty of memory (-Xmx64M etc.)Unfortunately, I've ...

Strange - Invalid Descriptor Index

1006 byte By xteknikx at 2007-9-30 14:28:34
Hello everyone,When I run the following code I get an Invalid Descriptor Index.//////////////////CODE////////////Object answer = JOptionPane.showInputDialog(this, "Enter Employee Name", "Search Records", JOptionPane.OK_CANCEL_OPTION);String query = ("SELECT * FROM tblEmployee WHERE employeeName ...

Trace=0 in HPROF

816 byte By MarkBooks at 2007-9-30 14:41:39
Revieing the HPROF output, one of our applications has an Integer Array of 10MB+ in size. This is unusually large. Unfortunately, the TRACE column specifies 0. The other SITES are OK because I am able to follow their traces (they have non-zero trace number).SITES BEGIN (ordered by live bytes) ...

log4j file appender

3803 byte By rashshuu at 2007-9-30 14:42:35
Hi,I am using log4j for logging. I am working on a huge application and there would be lots of logs each day. Thereby it is requried that the log files be stored and renamed each day. The date is appended to the log file and that day's log file is stored. The logs start writing afresh each ...

Getting fully qualified classnames.

1042 byte By Daniel_Rowley at 2007-9-30 15:12:37
Hi there,I'm developing a debugger using the JPDA and I'm very close to the end product, however I am having some trouble with letting the user set method breakpoints offline. Basically, by statically analysing a .java file, I am able to determine the parameter types of a particular method. ...

NetBeans mount archive (.zip, .jar) won't finish

447 byte By sixerjman at 2007-9-30 15:15:34
Trying to mount src.zip from J2SE so I can step into the code during a debugging session, but it's not working:1. Select Mount Filesystem2. Select 'Archive'3. Browse to C:\Program Files\j2sdk_nb\j2sdk1.4.24. Select src.zip, which is then plugged into the archive name text area5. The ...

how to pause before startup to debug?

676 byte By deanhiller2000 at 2007-9-30 15:24:51
Upon startup, does the debugger pause before it calls main of the application to allow the remote debugger to connect as a client?If so, I just need to go find out what I am doing wrong with eclipse.If not, how does one pause such that I can connect eclipse before the JVM calls main, as I want ...

Good on JUnit

454 byte By st.murphy at 2007-9-30 15:31:57
Can someone please suggest a good book on JUnit that goes into detail on how to write tests for methods that do thing like read a file and populate an object's attributes? I've been wondering how I would go about writing a test for a class where a method opens and reads a file ion order to ...

Wanted: Comments on MyEclipse debugging

404 byte By st.murphy at 2007-9-30 15:36:39
I'm looking for comments on debugging Weblogic apps (EARs, JARs, and WARs) with MyEclipse. Specifically: 1. How was your experiece working with MyEclipse when debugging for Weblogic apps?2. Were you able to debug the JSP source code - as opposed to the generated servlet source?3. Any problems ...

find out which class invoked the constructor

361 byte By yatinit at 2007-9-30 15:51:33
i wrote a class named DAOBase and i am creating object of the same in several other classes. So is there any way to know which class has invoked the constructor of DAOBase.i want to print out the name of the class that invoked the constructor of DAOBase at the time of constructor ...

Testing Java Applets (newbie)

372 byte By MicahCarrick at 2007-9-30 15:58:58
Hello, I'm new and going through the Java Tutorial. The problem I'm having is that when I make any changes to a source file and recompile, the change will not show up in Mozilla unless I close out Mozilla and launch it again. Reloading the page doesn't work. I'm running Fedora Linux Core ...

Debugging EXCEPTION_ACCESS_VIOLATION from JVM in Windows/JNI

6007 byte By ramyapriya at 2007-9-30 16:13:32
From a C++ application, I use Invocation APIs to create a JVM and call some Java methods using JNII get a crash in jvm.dll with EXCEPTION_ACCESS_VIOLATIONwhen I try to call "getFields" method of java.lang.Class in order to get the Fields of the java classThis method call, should return a ...

profiling

153 byte By @iceman@ at 2007-9-30 16:15:34
Hello all,Can anyone give me good suggestions of how to profile java ?It is very similar to profiling in C or C++. Ice

Way to get name of Local variable without using JDI?

843 byte By mightymightyeddturnip at 2007-9-30 16:22:25
Hello everyone,Is there a way to retrieve the name of a local variable in a method without using the JDI/JDB, just using the standard SDK and reflection?for example: given this method signature - public void example1(int a, Vector b) {return;}we require being able to get "int a" and "Vector ...

Class loaded but not loaded for the demo program Trace

1888 byte By xa_l_ix at 2007-9-30 16:25:36
I'm extending the program Trace of the jpda example, trying to add dynamic class load funtion in it, without using the command line to set the classpath.Here below is the construction method, I used personalized classloader to load a class and pass it to the constructor of Tracepublic ...

test a program using java [Please help]

1822 byte By Timotius at 2007-9-30 16:28:41
Hi...I need help and I hope someone in this forum willing to help me.Right now i'm developing a small project for my school. My project should be written in java, and this is the project description :my project will act as a program tester (maybe something like 'black box'). Say, a teacher ...

Eclipse problem...

6358 byte By RomanAngelov at 2007-9-30 16:29:08
I'm sorry for that,but I don't know who can help me....I used Eclipse 2.1.2 - no problem ...I used this product 6 months,but now I must use Eclipse 3.0 and I download this Eclipse but I can't star him in my configuration folder I have more information for problem,I remove old eclipse but the ...

call by name

90 byte By Plz_help_me at 2007-9-30 16:29:58
do java support call by name and can call by value result be implemented in java...

Full thread dump

404 byte By erez_hadad at 2007-9-30 16:31:29
Hi,[Linux FC2 / JDK 1.4.2]1. Does anybody know how to generate full thread dump on demand from the code itself? I mean, without sending signals from outside or hitting ctrl-\ , but rather by means of method call.2. How do I redirect the thread dump output to a file instead of the console? ...

StepEvent with main thread

495 byte By xa_l_ix at 2007-9-30 16:35:58
I'm trying to implement the Trace program in the demo jpda,how should I build this stepEvent? Since the constructor is EventRequestManager mgr = vm.eventRequestManager();StepRequest req = mgr.createStepRequest([b]thread[/b],StepRequest.STEP_MIN,StepRequest.STEP_INTO);what shoud the thread be? ...

starting the garbage collector for another process ?

325 byte By sbrugaliScreen at 2007-9-30 16:36:46
Hello,I have a Java process that sometimes has problems when the garbage collector has been executed. I would like to know if there's a way to start the garbage collector of a Java process from a shell command, or a signal, ... ? It will help me a lot to find my problems. Thanks a ...

Peek inside the Garbage Collector?

563 byte By javagreer at 2007-9-30 16:49:03
Hi,Are there any tools that will let me look at the objects in the garbage collector that are queued for collection?I am using Eclipse, can Eclipse do that? or with some kind of plugin?otherwise can some other IDE or tool do this?The reason I want to do this is that I am using some COM objects ...

how a IDE works

344 byte By underplayer at 2007-9-30 17:14:09
Hi All,How does an IDE like Eclipse,NetBeans,WSAD etc. work in showing the java deprecated API usage in java code with the actual deprecated API usage line numbers. Are there any freewares out there that help me showing the deprecated api usage with line numbers if I input a .class file ?Thanks ...

Intellij Idea 4.5 debug broken.

339 byte By evilb69 at 2007-9-30 17:30:14
having now migrated to intellij 4.5, my debug button is greyed out on existing 4.0.4 projects that were working fine. I have attempted to recreate the projects from scratch, but nothing seems to bring back the debug functionality.All of the projects are webapps.Anyone discovered the cause of ...

chainsaw 1.3 error on socket listening (class not found exception)

2979 byte By pypo_lintello at 2007-9-30 17:35:23
Hi,I'm not sure that's the right place to post on this subject, but I can't find a better place on forum's topics.So I've got following problem :I'm using chainsaw 1.3 with java web start. Before september, it was working very well.I'm using a log4j.properties, and that the sample for ...

Setting the Classpath of a VM launched using JDI

262 byte By Alistair_Hutton at 2007-9-30 17:36:44
I using VirtualMachineManager to get a LauchingConnector and fire off a new VM.It seems that there should be some way of me setting the classpath for this new VM.In general I'd like a list of the options that I can put in that argument map.

Reference or else

516 byte By fipilica at 2007-9-30 17:46:07
i'm sorry if this was the wrong forum.i 'm wondering if a function returns an object :public General_Object get_object(){ General_Object temp = new General_Object(); return temp;}it returns in fact a reference to this new object created or makes a copy of it, returns that copy and temp object ...

lack of info with remote debug between Eclipse JDT Win32 & J2SE Linux

677 byte By chrislen at 2007-9-30 17:54:33
I am having some trouble with a remote debug via tcp/ip of a simple Java application, using j2se 1.4.2 on Linux for the app, and Eclipse 2.1.2 JDT on windows on the host side. The app simply prompts for keyboard input, then then reprints that given data. I start the VM with the following ...

how can desing debug tool?

330 byte By is_me at 2007-9-30 17:55:19
I understand load class method, sample : http://www.google.com.tw/search?q=cache:mSauMkxLHqAJ:jguru.com/faq/view.jsp%3FEID%3D463990+VirtualMachine+resume+import&hl=zh-TWhow to design command ~~ like step , show code .... hava any easy sample ,java jpda demo code is too hard for me , Thanks. ...

debugging a program

2667 byte By jesuspunk25 at 2007-9-30 17:58:53
Okay I had to design this program and then figure out why when 18 is input it won't work... anybody have any ideas on how I could debug it or any ideas why it won't work?import java.io.*;import java.math.*;/****************************************************************//* Author: xx*//* ID: ...

Getting no output from java.util.logging.FileHandler

2627 byte By KBaltrinic at 2007-9-30 18:03:00
I am new to Java as is the company I work for, but we have just landed a contract that specifies J2EE as the platform, so here we are. :-) Please bear with me.I have been charged with determining our logging architecture and it looks like what is available in java.util.logging will do well ...

Profiling

1325 byte By mopingkyo at 2007-9-30 18:13:01
I am doing a instrumentation project in scholl so I'm doing some reading and testing abour profilingI did this example: http://java.sun.com/docs/books/faq/src/misc/ProfileExample.html and got this output:count callee caller time100000 java.lang.Math.tan(D)D ...

JProbe memory debugging help.

939 byte By gmoniey at 2007-9-30 18:20:24
Hi,I have a swing application, with some complicated dialogs, with a lot of listeners, and i realized that they are not being gc'd. So i have started using WeakReferences for listeners and inner classes, however, i am still having trouble.I am using JProbe's memory debugger, but i am having ...

Equivalent of PHP's print_r(), var_dump(), or var

208 byte By poisa at 2007-9-30 18:20:27
Does anyone know the Java equivalent of PHP's print_r(), var_dump(), or var_export()?I just started with Java a few days ago and I'm having a really tough time debugging stuff. Thanks!

Problem With Ant

759 byte By AsankaLankeshwara at 2007-9-30 18:22:40
HiANT: I have just downloaded ANT from Apache, and unzipped it to \ant in C:I have set JAVA_HOME, and ANT_HOME variables, and I have placed the ant\bin into the path.On the command line, when I type "ant" I get:Buildfile: build.xml does not exist!Build failedOK, so I dont have a build.xml file ...

debugg down load location

276 byte By 2aussies at 2007-9-30 18:29:28
I have the bug id # 448243 problem which was closed,fixed Release fixed (tiger) but am unable to locate the download to fix my bug problem (Unexcepted exception form Native-fontWrapper. register Fonts(native method) Can anyone tell me how to correct this error message?