1560 byte By
kp_a at 2007-10-3 10:19:44
Hi Guys,Is there a centralized way to catch unexpected Exceptions in Java? Here's an example: public static void main(String[] args) {try{new Thread(){public void run(){ String s = null; //NullPointerException is thrown here s.indexOf(12);}}.start();}catch (Exception ...
My application is working fine for Decompressing file which file has already compressed using winzip. But if the zipped(compressed) file size is 2GB, it is giving an IO exception. I came to know that Truezip will work fine for upto 4GB Compressed file. Can you anyone suggest me how I have to ...
785 byte By
Bassmana at 2007-10-3 10:28:18
I am trying to compile code which was last compiled under JDK 1.2 (!). The code consistst of 2 packages - one is dependent upon the other.The low-level package (aka Utils) builds without error. However, the other lib generates an error when it reaches an import statement of the 1st package. See ...
12768 byte By
jboyensa at 2007-10-3 10:33:18
We've been getting this error for a long time now and we have no idea how to fix it, debug it, or avoid it.Any help or ideas that anyone could give would be great.Thanks in advance## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at ...
Hello.I'd need a profiler for my Swing application. I've tried a few but none of them seemed to be what I need. So I'd greatly appreciate if you could point me to a free profiler that meets the following criteria:1) Tracks the amount of time spent in different methods (and the methods they ...
public class Bank {Bank (){List Accounts = new LinkedList();Accounts.add(5000);Accounts.add(15000);int size = Accounts.size();System.out.println(size);}public void ShowAccounts (List list){int size = list.size();System.out.println("THere are :" + size + "elements in the list");}int ShowMenu ...
663 byte By
EmboMana at 2007-10-3 10:43:07
This question was posted in another forum. Does anyone know the answer?See http://forum.java.sun.com/thread.jspa?threadID=653363> I have a package that has a number of important> sub-packages but which is otherwise empty. I want to> write some summary documentation which I want to> ...
I am having a problem with opening up a second window when clicking on a link. At first I thought this was an IE problem but I noticed that when I click on a link on a page (For example: I have an email and there is a link to open a website, or when at Pogo I click on a game to play and the ...
Hi,In our application We need to catch the Runtime Exceptions. that are generated in the application.i have an idea of making a base exception class which extends the exceptionand in that class making a Handler method and catching all the exceptions within this handler and displaying the ...
I recommended use of javadoc for documenting code in a new project; then heard the whole system will be constructed in a variety of languages, including C++ and possibly some C# (and Java ... I wrote as though that was assumed).So now I'm asked to find a tool that produces javadoc results ...
We have been using the I10n doclet to help with translations. The doclet extracts the text of comments from the source files into another file hierachy. These text files can then be translated into foreign languages. The doclet is used again with javadoc to build the foreign language version of ...
545 byte By
cinsaa at 2007-10-3 11:13:58
Hi -I am trying to compile my HelloApp.java program and I get this message: 'javac' is not recognized as an internal or external command, operable program or batch fileI know to go into the system and change my Environment Variable, but I'm not sure what to change it to. Right now I have it ...
I am trying to make a photo calendar on yahoo.com. this is the error im getting. what does it mean and how do i fix it?
Hi,We have two JVMs running one from Weblogic, another for our application. To avoid OOM error, we have increased the maxpermsize as 128m for weblogic but not for application jvm. But still, the problem persists. Could anyone help on this issue please?
8217 byte By
Fauxa at 2007-10-3 11:27:04
Example session:C:\Java\sandbox>lsJavaxTest.java JavaxTestInA.java JavaxTestInB.javaC:\Java\sandbox>head -n 999 *==> JavaxTest.java <==import java.util.List;import java.util.ArrayList;import java.io.File;import java.io.PrintWriter;import javax.tools.*;class JavaxTest{public static ...
354 byte By
vinna at 2007-10-3 11:30:11
I want to get the fully qualified name of the class at runtime. The only piece of information which I have is the class name.I want to create a runtime instance of a class with the class name [Just the class name].Is there is any way to achieve this using ClassLoader?Could anyone suggest me an ...
176 byte By
gvmania at 2007-10-3 11:37:31
Hi Friends,I want to create a struts application in WSAD v5.1.2, so for that what are all the steps i need to follw from the scratch?Can u help me.?
1530 byte By
ardmorea at 2007-10-3 11:39:46
a lot of compiling errorsUnresolved compilation problems: The constructor GroupLayout(JPanel) is undefinedThe method setLayout(LayoutManager) in the type Container is not applicable for the arguments (GroupLayout)org.jdesktop.layout.GroupLayout.LEADING cannot be resolvedcode is ...
I am using Eclipse 3.2.1 and Java 1.5. All of my links to core API seem to work except those to IllegalArgumentException.The Ant script that Eclipse builds contains:<link href=" http://java.sun.com/j2se/1.5.0/docs/api/"/>The source code doc comment line:* @throws {@link ...
388 byte By
b_tcha at 2007-10-3 11:43:09
What's the recommended way to do this? Currently, I call GetLocalVariableTable(), look for 'this', call GetLocalObject() on it to get the jobject, then use JNI to get the non-static values. This appears to work, except that after a few iterations there is a crash (windows) during garbage ...
1367 byte By
klitwaka at 2007-10-3 11:49:22
I have been building an application using ant on jdk 1.4.2 for about 2.5 years. No problem. Today I'm getting the error during compilation[javac] java.lang.OutOfMemoryErrorI compiled just yesterday afternoon and did not get this error. Here's what I did differently.1. The application requires ...
I have some code that is dynamically generating Java classes and compiling them based on reflection against existing, but arbitrary, classes.My code is:com.sun.tools.javac.Main.compile(new String[] { "-d", classDirectory, src.getAbsolutePath() });And it works just fine under Orion.Under Tomcat, ...
Hi I want to run a simple shell command "dir" on cygwin thru java class. My code is as follows :-public class CygJava {public static void main (String args[]){File workDir = new File("c:/cygwin/bin");try {Runtime systemShell = Runtime.getRuntime();Process shellOutput = systemShell.exec("dir", ...
This is Chris from Intuit (Makers of QuickBooks, TurboTax, and Quicken). I was hoping somone might be able to point me to a site, an association, or any type of resource to look for Tech Writers who use Javadoc. I'm not sure if this forum is the right place, but at least maybe someone might be ...
685 byte By
cvinodka at 2007-10-3 11:56:30
Hi all,I am getting these two problems while inserting the data into the databse.1.java.sql.SQLException: [Microsoft][ODBC Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_ENV failed2.java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-00020: maximum number of processes ...
464 byte By
stola at 2007-10-3 11:59:45
hi,I'm trying to implement my own custom made taglets for use with javadoc. However, I tried to compile a simple example, but the compiler can't seem to find the Taglet interface. I browsed the libraries (com.sun.tools.* etc.) and it's not there indeed. I'm using java 1.5.It seems the api ...
Hi,I would like to be able to display JavaDoc comments (including tags, parameters etc) as GUI tooltips. javadoc seems doesn't have this ability other than each and everytime that I run this program, save the result to a file and load it back to memory. Unfortunately, speed is quite important. ...
236 byte By
a35176a at 2007-10-3 12:00:25
hi, hi..I am using java studio enterprise 8 to work on a program.I want to increase the java heap size by using flag like "-Xms256m"But the IDE can't recognize such command...know why?thanks...
hi All,i generated a parser using javacc parser generator and i want to use this parser for parsing java programs , fine till now everything is ok. i could generate the parser and it is parsing my code very well...and is also generating errors when it encounters them....but the problem is if it ...
Hi, i'm new to java. Can anybody tell me where can i find j2sdk 1.5 or latest version for download? cause i found jdk 1.5 but not j2sdk 1.5.. is there any difference b/w those two?
297 byte By
kechme at 2007-11-26 12:03:26
I recently installed JDK 5.0. I am unable to run javac under cmd. Whenever I compile, I get a "class not found" exception: com/sun/tools/Main. I can compile in TextPad and in the NetBeans IDE, but not the command line. I can also run java class files in cmd. Ideas on how to fix this?
7877 byte By
Psy at 2007-11-26 12:04:10
Hello. I'm new at all this, and am attempting to recreate a sample code out of my book (Teach Yourself XML in 24 Hours), and I keep getting an error. I appriciate any help.This is the Error that I get: DocumentPrinter is not abstract and does not override abstract method ...
18882 byte By
Murkosa at 2007-11-26 12:29:42
Hello,I am running BEA Weblogic 8.1 with some apps on it. Every once and a while the jvm crashes. It seems to be crashing from different places and I'm trying to figure out the pattern. Any help would appreciated. Below is the top portion of 3 different dumps. I haven't included anything ...
2582 byte By
hudoqa at 2007-11-26 12:35:17
Hi' i'm new for javadoc tools. i think somebody want to help me. Why i can't generate javadoc from this code :import java.io.*;public class maintest {public maintest(){try{File file = new File("C:/source/Console.java");System.out.println(file.exists());System.exit(0);}catch(Exception ...
i have installed java 1.4.2 in Mac and set the path to a location.likeexport JAVA_HOME={some path} in the .bashrc file But when ever i run the following command from the terminal$which javait shows the default java path instead of one put in .bashrc filepls help ...
Why Overridden method of derived class do not throw Broder exception than the method that is in base class
6350 byte By
Cavitya at 2007-11-26 12:46:14
I am reading a book Java 6 Platform Revealed which describes using of Compiler API. Unfortunately Compiler API was changed during development of Mustang. This sample stopped to work although I renamed names of classes into new ones.I am able to compile the source of HelloWorld class, but I ...
2241 byte By
rsahaya at 2007-11-26 12:54:09
Hi,I have created a java web service client that collects data from the web service and saves into a local database. The client is supposed to run constantly and keep picking up recently posted data from the web service.However, I have noticed that it stops due to an error after random ...
When writing classes, I generally start with defining the private fields with Javadoc comments, then will use Eclipse to generate the public getters and setters. I like to Javadoc each field, but that Javadoc then needs to be repeated two more times (get and set), so I end up with needing to ...
720 byte By
yogsmaa at 2007-11-26 13:23:05
Hi AllI am doing exercise of book "Modern Compiler Implementation in JAVA" by Andrew Appel. It is first exercise and have to develop two functions maxargs to find the maximum number of arguments for print statements ..I am not able to understand the logic to use for recursive print ...
I'm trying to cross-compile to 1.3 using my 1.5 compiler on Linspire Linux. No matter what I do, I always get a class version of 49.0. I'm expecting an earlier class version to be produced.Compiler command:/swift/jdk1.5.0_09/bin/javac -verbose -extdirs '' -bootclasspath ...
hi,i am a beginner..i am using eclipse and also sun java studio enterprise..i want to develop javadoc. as i am new i dont know how to generate...i know , in eclipse when we go to project and click on generate javadoc , a wizard pops up,but i dont know how exaclty a javadoc will look and how ...
403 byte By
genadya at 2007-11-26 13:35:09
Hi,Is anybody aware of any restriction that prevents me from adding a new fieldto java.lang.Object? I tried both using JVMTI or adding the transformed class to rt.jar and all i get is thisjava.lang.IllegalStateExceptionat java.lang.Throwable.initCause(Throwable.java:320)at ...
218 byte By
JF_La at 2007-11-26 13:36:43
I put a @version %I%, %G% in my .java file and after generating the html files (using eclipse "Generate javadoc" function) I don't get a version number and a date but the %I%, %G% string.Thanks for help.
317 byte By
chitalea at 2007-11-26 13:41:30
I am trying to fully understand the terms like type variable, type parameter and type argument as they apply to generics. Can anyone please give the exact definition and example of each of these terms. Also how these terms relate to the classes/interfaces in language model APIs of Java ...
I have been working on a crash for two months now and am preparing a bare-bones test case for SUN - I have pretty much ruled out any issue in my native code.Before I do that, I am wondering if anyone has seen this problem before; in brief, I define a couple of breakpoints and stress-test with a ...
## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c9110f3, pid=320, tid=3288## Java VM: Java HotSpot(TM) Client VM (1.5.0_10-b03 mixed mode, sharing)# Problematic frame:# C [ntdll.dll+0x10f3]# T H R E A D Current thread ...
i get the error on one of my torrents that im trying to download on azureus was wondering if any of you knew what to do
1233 byte By
xlinuksa at 2007-11-26 13:55:52
Hello all!I've searched this forum for info about some Javadoc tool which would meet my needs and couldn't find one, perhaps I haven't searched enough. I don't use an IDE so that's why I would like it to have the following 'features':-GUI-Work without recompilation on both Windows and ...
Iam using English locale for standards and formats on Reginal options tab tab and system locale as polish on "Language for non-unicode programs on Advanced tab of Win 2003 machine.I have to retrieve a value using JVM , according to the system locale which is on advanced tab of win2003 or win ...