Error please help!

225 byte By CompilerCama at 2007-10-2 14:24:12
When trying to run chapter 15 KeyView in the Terminal I get this message: Exception in thread "main" java.lang.Error: Do not use KeyView.setLayout() use KeyView.getContentPane().setLayout() insteadwhaat does this mean.

Fix....help me if you can

1639 byte By jonathan10200102a at 2007-10-2 14:26:28
import java.io.*;//BufferedReader ?InputStreamReader - IOExceptionpublic class Echo {public static void main (String[]args)throws IOException{// must include this, more later// create a text input streamBufferedReader stdin= new BufferedReader(new InputStreamReader(System.in));//input 1st ...

NullPointerException

4319 byte By johnsmith12a at 2007-10-2 14:28:37
Hi guys, got a problem with the following source that compiles but on run-time I get a nullpointerexception. Do some of you guys have any clue about what could be the cause? Thanks.import java.io.*;import java.awt.*;import java.lang.*;import java.util.*;import ...

JVM Crashes due to memory shortage ...

1323 byte By pankajatncsta at 2007-10-2 14:33:45
I have a Java application which runs as a server on my Windows 2000 Server machine having 2GB RAM and virtual memory specified as 2-4GB. I start the application with the options -Xms786m -Xms-786m.I have around 1500 clients that connect to this server and I open 2 dedicated server sockets for ...

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

3333 byte By johnsmith12a at 2007-10-2 14:34:58
Hi guys,the following code is giving me the above exception at run-time and for some reason I cen't run it from the console-another exception NoClassDefFounder or something appear if I try to run it from the console by increasing the heap to the max.I want to run it from my Netbeans5 IDE from ...

Can Someone Please Help Me With This

369 byte By Pillar22a at 2007-10-2 14:38:15
i keep getting booted from a game. It is online and it runs on java. these are the errors in the console.Error: 99205, -1024, 1, -65, java.lang.ArrayIndexOutOfBoundsException: -1024Error: 91456, MAARFNGV@ec4a87, [LXQKSIEVT;@110fe28, MAARFNGV@9e29fb, -72, java.lang.NullPointerExceptionError: ...

doc-files not being copied

4807 byte By mpbaker01a at 2007-10-2 14:39:30
[nobr]My doc-files folders are not being copied to the destination folder. I have an ANT script that selects a fixed set of java files to javadoc. For example, I am trying to generate a javadoc for our external client that only contains the API and DTO classes and not all services, etc. I have ...

Java keeps closing internet

176 byte By Slagara at 2007-10-2 14:42:16
Whenever I try to play a game or visit a site that uses Java, it closes my internet. Every time. I have no idea what is wrong with it. Anyone know what to do about this?

My recursive file search is stuck in loop...

5817 byte By HippieJoea at 2007-10-2 14:42:21
I am running on OS X using Java version 1.4.2_09. I am trying to make a recursive search through the file system to count up all the objects that qualify as files...and eventually perform some function on them that is not yet written. My goal is to create the same output that the unix command: ...

What factors should be taken into account for Custom Exceptions

176 byte By vjoyweba at 2007-10-2 14:44:11
hi,I just want to know that What factors should be taken into account for making Custom Exceptions.any examples will appreciated.regards,vjoy

The Local Variable May Not Have Been Initialized

1418 byte By netsonicca at 2007-10-2 14:44:39
Hi all;There is a problem that i didnt understand..?Java assigns the initial value of defined variables.isnt it?I have a merge sort algorithm below but for C array the error is:The local variable C may not have been initializedin one of if and else statement C[ ] have to get a value...So i ...

Spell Check Doclet

240 byte By hlandera at 2007-10-2 14:45:08
I have created a Doclet which people may find useful. It allows you to spell check your JavaDoc. It is very simple and easy to use. It is available for free, open-source download at http://www.softframeworks.com/download/download.php

illegal start of expression

182 byte By veroknotta at 2007-10-2 14:56:42
HIIm guetting an illegal start of expression with the following double x= (double).parseDouble(s);s is a string , any one has a clue ?Thanks

retrieve digit from token

285 byte By veroknotta at 2007-10-2 15:00:14
StringTokenizer st = new StringTokenizer (input); String s=st.nextToken();while(st.hasMoreTokens()){what would be the expression that allows me to test if the string represents a digit and retrieve itI tried isDigit(), but does not workThanks

Applet Notinited Sometimes, Sometimes Not

668 byte By Kestrel87a at 2007-10-2 15:01:27
Fairly experienced java programmer here, but I'm pretty new to applets.I have created a class that extends JApplet and overrides init(). It works 100% properly when I run it on my computer, or another computer in the house, both running 1.5 update 6 (what it's compiled under). And when I say ...

Exception In thread

3583 byte By metana at 2007-10-2 15:04:06
hello to all.Exception In thread "SyntheticImageGenerator" java.lang.OutOfMemoryError: Java heap spaceI ve two classes. and I am getting the above error.Neccessary code is below:public class MainEngineeringToolFrame extends JFrame implements ActionListener.{//Some Code...public ...

Error encountered stress testing JNI code on MulitProcessor Machine

12115 byte By GaneshMa at 2007-10-2 15:05:55
Hi All,I am getting the following error while testing my JNI code on MultiProcessor Machine using Java HotSpot(TM) Client VM (1.5.0_04-b05) for windows-x86.I went through the C++ Code but did not find anything wrong with it after comparing it with the JNI specifications available online.Can ...

Nullpointer Exception

696 byte By Tesa at 2007-10-2 15:07:36
Hi,think i have missed something at the basic java course :-(A nullpointer exception is a fault that is caused by something pointing to a referance that is null. Is this correct?I磎 making a program that is to manage my cd磗. I use a gui as a user inteface. The problem is that i get a nullpointer ...

Java programs do not work correctly in my computer.

460 byte By Rancheroa at 2007-10-2 15:09:33
This is very simple. Every java program I have, such as the Java Control Panel or the LimeWire (downloads program) can't work correctly, meaning the program's window appears but not its content; showing a blank window instead of showing me the program. I have reinstalled the complete java ...

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d779c9d, pid=3964, tid=37

8650 byte By dora_kla at 2007-10-2 15:10:43
hello,i had this problem....when running my java application....can somebody help me?....what it's mean?## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d779c9d, pid=3964, tid=3760## Java VM: Java HotSpot(TM) Client VM ...

Problem running applet with Internet Explorer (Microsoft VM)

689 byte By mm0000a at 2007-10-2 15:14:05
I am writing an applet using JDK 1.5, and the applet works fine with Netscape, and Internet Explorer with the Sun Java plugin. However, I need to make the applet work using Microosoft VM. The error I get is:Error loading class: ...

Cannot find symbol error

1801 byte By wookie19a at 2007-10-2 15:15:20
First of all I want to say I am a complete nub to this so sorry if it's some dumb mistake, right now I am trying to make a small applet to check for keyboard input, I have been following the tutorial but it seems to think that i already know how to begin and end the applet because it just gave ...

Syntax error in collection

237 byte By youngswaa at 2007-10-2 15:15:54
the problem arise when i try to compile the following codeArrayList<Integer>=new ArrayList<Integer>();the errors are in following tokens '<' &'>'.the compiler wants argument after '>' .

Nullpointer exception... any help would be appreciated

7350 byte By mann_jess@yahoo.coma at 2007-10-2 15:18:08
In advance, I apologize for any ignorance which I may obviously have... I'm in the process of learning Java, and am used to C/C++... In any case, I'm running into a nullpointer exception while 'compiling', which I'm having trouble figuring out... I'll list everything below, but this ...

NameAlreadyBoundException...

633 byte By Comagea at 2007-10-2 15:18:46
Hello folks,I am using the J2ee deploytool to deploy one of my programs when I got this error:Exception in creating EJB container javax.naming.NameAlreadyBoundException [Root exception is org.omg.CosNaming.NamingContextPackage.AlreadyBound: ...

struts No action instance for path could be created

1231 byte By sevenofninea at 2007-10-2 15:22:04
Hi,I get the following error message: No action instance for path /bookList could be createdmy struts-config file looks like:<form-beans><form-bean name="bookListForm" type="strutsform.BookListForm" ...

Java Applet Problem

27939 byte By Mellingy2ma at 2007-10-2 15:24:59
I have recently been creating an applet with 2 main parts. Firstly, to aid as a text editor and to, secondly, query an SQL database (Eventually).I am currently having a problem running the Applet in Appletviewer and internet explorer. I have, in part, used Jbuilder to create the UI and it is ...

Java Applet Problem **Ignore Previous Post**

45680 byte By Mellingy2ma at 2007-10-2 15:25:01
have recently been creating an applet with 2 main parts. Firstly, to aid as a text editor and to, secondly, query an SQL database (Eventually). I am currently having a problem running the Applet in Appletviewer and internet explorer. I have, in part, used Jbuilder to create the UI and it is ...

Exception in thread "main" java.lang.NumberFormatException:For input String

4849 byte By shuca at 2007-10-2 15:28:32
this is a code about arrylist. but when I debug it.it metion:Exception in thread "main" java.lang.NumberFormatException:For input String at java.lang.NumberFormatException.forInputString(numberFomatExceptionio java:48)at java.lang.Integer.parseInt(integer.java:468)at ...

java.sql.SQLException: (Connection is busy with results for another hstmt )

321 byte By 241a at 2007-10-2 15:35:12
HI,I have one error in jsp-jdbc connection.I have 2 queries ,1 is select query and another one is update query.The error isjava.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmtAnyone can yoe help me .Urgently i need.Thank ...

java.lang.NoClassDefFoundError: com.ibm.CORBA.iiop.GlobalORBFactory

3199 byte By tanskia at 2007-10-2 15:44:38
Hi,I'm really having a hard time on the problem I encountered on WSAD. Can anybody help me or give me an idea on how to solve this problem since I've been working this problem for 4 days now.Here is my simple code and the error I encountered: WebSphere Studio Application Developer Integration ...

Arrays- Showing the populated array.

1232 byte By HaloPolicea at 2007-10-2 15:48:12
Hey, this is my first semester of Java, so it is all news to me.My question Im sure isnt difficult to answer. "Write a program that prompts the user for a value and creates an integer array of that size. Prompt for initial values to populate the array."This is what I have so far:import ...

Recursion

72 byte By Shesa158643a at 2007-10-2 15:48:36
Please tell me whether I can call the main method in a recursion.

rmic error

187 byte By youngswaa at 2007-10-2 15:50:26
i face this problem when i try to accass a resultset from a remote machine.Unmarshalling Exceptionpls send me a piece of code how can i get a resultset from remote machine..

try to create documentation with javadoc but it could not be launched

247 byte By blabla111a at 2007-10-2 15:51:17
help me please,when i try to generate javadoc i get a bug:could not launch javadoc commanderror=193i don't know why. maybe because i have no packagelist in the doc folderbut how do i create a packagelist?

logging more fine for a paricular logger ?

657 byte By john_ma at 2007-10-2 15:54:37
Hello,(i also posted this to another forum, but maybe this one is more appropriate)Does anyone know about changing logging level for one particular logger? Can we get a more fine level for one particular logger? It only seems to allow us have less fine.Right now, we only have default setting ...

why i have this Exception?

2798 byte By student14a at 2007-10-2 15:55:58
package Elevator;import java.util.*; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; public class myHashtable{ private static Hashtable hash; public myHashtable(int Capacity){ hash=new Hashtable(Capacity); if ...

Simplest servlet possible...what am I doing wrong

1197 byte By Biggie_maca at 2007-10-2 15:56:21
Take this simple servlet:import java.io.*;import javax.servlet.*;import javax.servlet.http.*;public class SimpleCounter extends HttpServlet {int count = 0;public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException ...

How do you output integers only?

323 byte By HaloPolicea at 2007-10-2 15:56:22
Hey,im writting a program where a user must enter the size of an array, and then enter the integers for that array. Everything works fine but now I want to show an error message if the user enters a character or a symbol. How do I go about this ?Any feedback would be ...

What's the mean of the error message?

935 byte By Sonecaa at 2007-10-2 15:57:00
I have done a simple code to send an emailfro the command line, i've done the same using servlet and it was successful, so now when i run a class to send an email i get this message, what's wrong ? i have set the debug.The lines of the EnviaEmail.java:36 is 35session.setDebug(true);36Message ...

javax.servlet.ServletException

2750 byte By jwstudenta at 2007-10-2 15:58:48
[nobr]Can someone help me out. I am new to JSPsI trying to learn how to use javaBeans and JSPs and get the following errors (they alternate when I refresh the page)javax.servlet.ServletException: sample/UserData (wrong name: UserData)root cause java.lang.NoClassDefFoundError: sample/UserData ...

Question mark "?" appears in output

949 byte By firstnerda at 2007-10-2 15:59:10
Output:No. of quarters: 4No. of dimes: ? 10No. of nicks: ? 20No. of pennies: ? 100Total amount is $4.0.Codepublic class CountChange {public static void main(String [] args) {int qrtrs, dimes, nicks, penns; double total;System.out.print("\nNo. of quarters: ");qrtrs = TextIO.getInt(); ...

Help with a java.io.IOException

1847 byte By sadman64a at 2007-10-2 15:59:24
/*input : MemoryAccess - to load process into the diskoutput : true if file opened, flase if failspurpose : to open a file and read in the processes code sourse: http://javaalmanac.com/egs/java.io/ReadLinesFromFile.html*/public boolean openFile(MemoryAccess ma){Process p;String file, ...

hiii

1107 byte By sabretootha at 2007-10-2 16:00:33
hii guys. my name is ram. iam new to this forum and an obsolute beginer with java. iam reading java HTP(deitel). my doubt is import javax.swing.JApplet;import java.awt.Graphics; public class welcomeapplet extends JApplet{public void paint(Graphics g) {g.drawString("welcome to java ...

getting an error code off my computer....

135 byte By shellya at 2007-10-2 16:04:30
I keep getting " please download and install a newer version of java"- and I want that error code to go away....can anyone help?

JUnit Test, a question....?

1696 byte By Keva at 2007-10-2 16:04:42
Hello,I'm new to Java and i am currently working on the tutorial's that came with the NetBeans IDE 5.0. Now the problem is on the 'NetBeans IDE 5.0 Quick Start Guide' under the module of creating a JUnit Test the step explain's about this process (see below)"In LibClassTest.java, delete ...

work flow in pgms

107 byte By sabretootha at 2007-10-2 16:06:58
is there any way to find the work flow(pgm flow) in a java pgm.i have netbeans and edit plus.

Javadoc comments help

3644 byte By John4938a at 2007-10-2 16:10:20
Hello, this code is one method in my application. Could someone please check that the Javadoc comments look right and the general comments are the right format i.e. should it be like // Text or /* Text */.Ive looked at the Javadoc tutorial and have used it to write what I have so far. If there ...

Unsupported major.minor version 48.0

1682 byte By neo.anersona at 2007-10-2 16:12:54
hi all, I'm new to java programming and trying fix jedit in my ubuntu box, but it seems my efforts are going ... fultile.First my config -neo@tathagata:~$ java -versionjava version "1.5.0_06"Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)Java HotSpot(TM) Client VM (build ...

Installed JS2E which no longer works

309 byte By Belizea at 2007-10-2 16:13:32
Help PLEEEEZEI recently up-graded JAVA to JS2E, which will no longer work. running a 32 bit system, WIN2K Pro & Firefox 1.5.0.1I did see a file somewhere, that listed a line to replace in the registry, but I've never been able to find it again. Appreciate any ...