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.
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 ...
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 ...
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 ...
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 ...
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: ...
[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 ...
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?
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: ...
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
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 ...
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
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
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 '>' .
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 ...
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: ...
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" ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
Please tell me whether I can call the main method in a recursion.
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..
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?
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 ...
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 ...
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 ...
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 ...
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 ...
[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 ...
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(); ...
/*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, ...
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 ...
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?
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 ...
is there any way to find the work flow(pgm flow) in a java pgm.i have netbeans and edit plus.
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 ...
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 ...
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 ...