Neatbeans IDE Question

281 byte By JohnCovera at 2007-10-3 7:53:13
I'm trying to Install Neatbeans IDE on my school network. The problem I'm running into is the IDE is looking for the JDK in the local DIR "C:\program files\Java\(JDK version)".I was wondering if there's a way I can tell Neatbeans to look in the correct DIR.

Exception in thread "main" java.lang.NoSuchMethodError: main

193 byte By javanuba at 2007-10-3 7:55:24
This is probably a simple error, but I have been working on what I did wrong for several days. If anyone knows what this is trying to tell me, please let me know.Thanks in advance

memory management dude in java se 6

1810 byte By developerstudenta at 2007-10-3 7:58:32
Hi all!I don't know if that question involves that forum. I'm developing an application. I execute code like this in java se 6 beta version:public class MyApplication{public static void main(String Args[]){MyMatrix foo;for(int i = 100; i <100000; i += 100){foo = new MyMatrix(i, ...

Struts Error / Cannot retrieve definition for form bean null on action

9026 byte By Marty77a at 2007-10-3 8:03:57
Hello,have the problem that apparently no FormBean of my ActionForm class can be found /instantiated..Tried very hard to find the error but I failed. Hope somebody can help me out. Many Thanks in advance!Code as follows:ArtikelErfassung.jsp:<%@ taglib uri='/struts-html' prefix='html' ...

compiling error <identifier> expected

1740 byte By Ken@Javaa at 2007-10-3 8:04:27
Hello I am new to JavaWhen I compile my codes I have the following errorCould someone please help me out?Thanks<identifier> expected public FamilyTree(int numPerson, numChild, numParents)Here are my codesimport java.io.*;public class FamilyTree implements Serializable{private static final ...

"javax" packages do not exist.

864 byte By What_Da_Heoa at 2007-10-3 8:09:27
Hello,I am learning to write servlet using J2EE 5SDK. But for some reason, the compiler (javac) keeps telling me that the following packages do not exist:javax.servletjavax.servelet.httpWithout the "javax" packages, the codes get compiled. I did everything in the instruction on how to set the ...

Problem with running a java program

444 byte By babychickena at 2007-10-3 8:13:14
Hi, I can compile a java program as javac -classpath C:\mets.jar test.javawithout any problem. However, when I try to run the program as java -classpath C:\mets.jar test. I got the error message as "Exception in thread "main" java.lang.NoClassDefFoundError. I checked my classpath and path, and ...

Please tell Why m I getting this Error msg

380 byte By nakul.hotjavaa at 2007-10-3 8:14:38
I am new to java programming so please help me out with thisMy java program is getting compiled but its not running.Everytime i run any program on my machine the same message appears-->Exception in thread "main" java.lang.NoClassDefFoundError : classnameThe same programs are running on other ...

Doja 4.1 compiler display error when compiling!!!

87 byte By Winner_The_Poha at 2007-10-3 8:16:30
Hi, did you all see this error before?error: unsupported encoding: SJIS_i

Logging throwing IOException

1066 byte By kothasa at 2007-10-3 8:17:48
HiMy application uses java.util.loggingand i am getting this exception. java.io.IOException: The handle is invalid at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:260) at ...

unreachable statement

2209 byte By NoneBoy123a at 2007-10-3 8:19:45
Hi there everyone. I have coded a problem in order to solve this question What is the smallest int x > 2006 so that x^7 and x terminate in teh same five digits?When I compile this program, I get the following error C:\Documents and Settings\7531student\Desktop\Number21.java:41: unreachable ...

Java Not Working

2682 byte By NoneBoy123a at 2007-10-3 8:22:24
Okay, I am trying to solve an answer to a question. The question is What is the smallest integer x >2006, such that x^7 and x terminate in the same five digits? I came up with this program for some reason its not working. I think I am getting a problem with the long long npow. I am not reall ...

generate javadoc for files in folders

215 byte By himaa at 2007-10-3 8:23:01
Hiusing javadoc i was able to generate javadoc for the java files in one folderBut how to do tht if they r in many folders, and inside another folders recursively.Thanks in advHima

Difference b/w throw and throws

140 byte By surendra.medaa at 2007-10-3 8:28:45
hi this is surendrawhat is the exact diff b/w throw and throws?if possible give an examplethank usurendra

0 src error message

346 byte By glenngal05753a at 2007-10-3 8:36:02
I get an error: 0 src is null or not an objectcode 0line :291char: 341this pops up when i go into yahoo games and click on screen shots. I have updated my java and it stills does this, how can i get this to work I dont want to download a game that i can not use.i have xp windows sp2 and my java ...

Stop VM Log File from Appearing on Desktop

191 byte By tarajm9a at 2007-10-3 8:38:54
How do you stop the Java VM Error Log file from appearing on the desktop. Is there anyway to get it to save somewhere else or just stop it from happening all together..Thank you

out of swap space?

172 byte By riyasiyaa at 2007-10-3 8:39:20
Exception java.lang.OutOfMemoryError: requested 16000 bytes for GrET* in /BUILD_AREA/jdk1.5.0_06/hotspot/src/share/vm/utilities/growableArray.cpp. Out of swap space?

cheked exceptions

192 byte By surendra.medaa at 2007-10-3 8:45:36
Hi.....This is suri,,What is the cheked exceptions in java,,and give me some cheked exceptions, i would be very thankful to give this answerThank youSurendra

IterateOverReachableObjects and soft/weak/phantom references

387 byte By lldaedaluslla at 2007-10-3 8:45:52
Hi,what are soft/weak/phantom references for the JVM TI call IterateOverReachableObjects? Are those reference-objects1. ... "normal" objects having references and beeing traversed by this function(OR)2. ... interpreted as references with hiding the object nature(OR)3. ... ignored as they are ...

heap profiling using FollowReference

631 byte By toby.kima at 2007-10-3 8:46:45
Hello,I wrote an agent to get the sum of all reachable objects using JVM TI.After every 100KB of allocation, FollowReferences() is called and get the sum of all reachable objects. (Of course, it tags visited objects not to count the same object twice.) I can get a heap occupancy graph using ...

Exception in thread "main" java.lang.NoClassDefFoundError: shoogle/services

8860 byte By Shamz84a at 2007-10-3 8:47:26
Hii'm having a problem with this and am not sure why i'm getting this error,here my code/* * XMLCache.java * * Created on 21 April 2006, 16:47 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package shoogle.services;/** * * @author gerard ...

javac under linux

398 byte By Triplexhfda at 2007-10-3 8:51:20
hi,i use linux and i have to compile my project with shell files... the compiler read my file (Applet1.java) but there is one error.... i don't know which one but i can't make the class file.where is the problem?/Applet1.java read: . 1 error ==> is the error messagemy file has all rights ...

Stack trace

157 byte By neoworlda at 2007-10-3 8:52:40
I am wondering if the JVMTI can give me all the stack backtrace of all the Java method (user-level) even the method is jitted?Thanks,Neo

how to filter HTML javadoc output ?

778 byte By pemeriaua at 2007-10-3 8:54:00
Hi all,I would like to create a specific HTML javadoc output for a given source code tree. Each class or method to be displayed is tagged with a specific (proprietary) tag, and I would like to create a Javadoc HTML tree with ONLY these classes and methods. The other ones should not be available ...

NoClassDefFoundError

507 byte By _edoA_a at 2007-10-3 8:58:39
Hi,this is my problem.I have an EAR which is deployed on an App-Server. This EAR have som jars. Now I call a Bean which is in one of this jar and in the bean i instantiate a POJO with new, wherby the POJO-class is in the sam jar as the bean is.On the code line where i instantiate the POJO I get ...

GetLocalInt - can it get the value of a short too?

37 byte By kotsikonasa at 2007-10-3 8:58:40
doc does not discuss shorts...

Problem in connecting with SQL Server 2000

1330 byte By invincibleBoona at 2007-10-3 9:14:41
Hi everybody.I m new 2 this forum. I am a facing a problem while I am trying to connect my Java Application with SQL Server 2000 installed in my system. I made a JSP in which I wrote the same code as the following codes to connect with SQL Server 2000 database and it is running successfully . ...

Cannot find symbol error

2199 byte By bmzra at 2007-10-3 9:20:29
With the following code:/** * TestActor is a console class that is used to test the Actor class. * * The initial version of TestActor instantiates an instance of Actor using * the 'four parameter constructor' and then determines the Title of the * actor's latest film. * * It is envisaged ...

Compiler Error with javac

1252 byte By DannyKa at 2007-10-3 9:22:05
Hello,I have a problem with my compiler.I have installed jdk-1_5_0_09-windows-i586-p-iftw.exe I have set the Path to the bin directory.But if I do javac Test.java in the cmd I get the following error msgThe programm code is ok I have tested it on an other PC with Java.An exception has occurred ...

run using cmd

348 byte By darksssa at 2007-10-3 9:22:43
when i run a .java program using cmd, it seems I can only run it if there is a .class with the file.How do i create that .class file which corresponds with the .java program, without using jcreator which automatically creates it for me?Also whats the difference between typing:java *.javajavac ...

Gui Buttons, PRoblem with passing Strings through a Integer

7893 byte By SHIFTERa at 2007-10-3 9:22:52
Hi i have created a calculator and i am trying to add buttons like 1,2,3,4,5,6,7,8,9,0 like the microsoft calculator. The problem i am having is when adding a number in for example button one. If i press it more than once it will simply add it up.if i press btn1 four times total would be 4. I ...

Error regarding import statements...

678 byte By belur_1da at 2007-10-3 9:23:34
HiThis seemed a bit wierd to me.The first code snippet makes sense but not the second one...This code snippet doesnt compile because of error "single-type import"import java.util.Iterator;import java.util.Vector; import mypkg.Vector;class t12 {}[t12.java: java.util.Vector is already defined in ...

How to force javac display English?

94 byte By BlueWanderera at 2007-10-3 9:24:03
How does javac decide what language it displays? It suddenly starts to display Chinese.

java.lang.nosuchmethoderror

398 byte By Ravillaa at 2007-10-3 9:26:28
Hi,I'm trying to call a method in class X from a jsp.I'm using weblogic. i.e jsp is deployed in weblogic.some methods in the class X are working fine, but some methods are throwing the error java.lang.nosuchmethoderror.kindly suggest some solution. regards,RVMessage was edited by: ...

I have a question about this...

2143 byte By GaaraMonstera at 2007-10-3 9:28:44
I'm learning Java by myself using a book by Deitel and Deitel.I was doing this one://programa de sumaimport java.awt.*; //importar paquete java.awtimport java.applet.Applet;public class Addition extends java.applet.Applet {Label prompt; //solicta entrada al usuarioTextField input; //introducir ...

java.lang.NoSuchMethod: main - Help pls

3456 byte By gracenaleca at 2007-10-3 9:35:44
This is the code i got off a book but it seems like it's not working. I got an error which says 'java.lang.NoSuchMethod: main' Help pls...import java.io.*;import java.util.*;class PostfixInterpreter {private String postfixString, outputString;/*-*/private boolean isOperator(char c) {return ...

Generation count for classes in heap

757 byte By billynillya at 2007-10-3 9:37:10
HiI am trying to create a memory profiler, and one feature that I would like it to have is when you request a heap dump, it will be able to give you a generation count for each type of class. By the generation count, I mean the number of different ages of all objects of that class. Do you have ...

Running the heapTracker example

465 byte By SajidTendulkara at 2007-10-3 9:38:55
Hi thereI am trying to run the heapTracker example that is in the demo/jvmti directory, and I am having problems with it. When I try to run it with what it says in the readme file (java -Xbootclasspath/a:heapTracker.jar), I get the following error message:ERROR: JNI: Cannot find heapTracker ...

how to hide few method names to be hidden in the javadoc

575 byte By cbalarama at 2007-10-3 9:41:48
Have few set of APIs (methods ) and have javadoc comments included for all the methods.Requirement is to generate the javadoc for few methods among the whole set.So how to get those methods alone hidden in the javadoc generation?Used ( // ) and commented out the javadoc comments, but still the ...

package TurtleGraphics does not exist.

340 byte By brad13a at 2007-10-3 9:51:17
import TurtleGraphics.StandardPen;public class test {public static void main(String args[]) {Standard pen=new StandardPen();pen.up();pen.move(25);pen.turn(90); pen.move(25);pen.down();}}IT SAYS THE FOLLOWING:package TurtleGraphic does not ...

package TurtleGraphics does not exist.

424 byte By brad13a at 2007-10-3 9:51:20
import TurtleGraphics.StandardPen;public class test {public static void main(String args[]) {Standard pen=new StandardPen();pen.up();pen.move(25);pen.turn(90); pen.move(25);pen.down();}}IT SAYS THE FOLLOWING:package TurtleGraphics does not exist.*Someone please help me, i have to do homework, ...

How to run a class file in MAC os, compiled in XP.

507 byte By vinoth_da at 2007-10-3 9:55:19
Hi all,i am compiling a java program in windows using JDK 1.5 and i am copying this file to MAC os (Panther). In Mac i am running this class file using JDK 1.4.i am getting the following exception,Exception in thread "main" java.lang.UnsupportedClassversion error.This is understandable, but is ...

How to use SuppressWarnings for unused method parameters (only)

1325 byte By asefa at 2007-10-3 9:56:58
I have a method in a JSF backing bean that looks something like this: public void clickButton(ActionEvent ae) {// do the same thing every time } and since "ae" is not used, I get a warning from javac to that effect.I realize that I can do this: @SuppressWarnings("unused") public void ...

about webservices

323 byte By bondada.radhikaa at 2007-10-3 10:01:10
hi ,I implement the code to update the data using webservices in java.but values are not stored in the database because i got an error like javax.persistence.TransactionRequiredExceptionif any idea send the reply as early as possiblemy email id ...

500 Internal Server Error - Null Pointer Exception

3813 byte By archnaa at 2007-10-3 10:02:45
Hi,I am using a Struts application. I get the following error while clicking a button in a JSP page. The mapping has been provided in the struts config.xml file. What could be the possible cause? java.lang.NullPointerExceptionat ...

How to put the ".class" file in Memory with Javac?

788 byte By CoffeeAndPufa at 2007-10-3 10:10:08
The J2SE 6 RC have an tool : javax.tools.JavaComplier. I can use it to compile the source code in memory( I implemented an JavaFileObject).But the compiler aways put the output file(.class) to file system. It;s not my want to do . I am writing an IDE ,I use javac to determine the code error ...

eclipse api doc.

226 byte By Nabila at 2007-10-3 10:10:51
i'm a beginner ,i want my eclipse to show the api's documentation in a small window whenever i type a class namethis option is available by default in NetBeans , but i don't know how to make it work in eclipse

Eclipse annoyance

233 byte By MacPCa at 2007-10-3 10:15:16
I am new to Eclipse, I found it very annoying that when I type the name of a method. a pop up will give me a list of all methods and it slows down my typing. I tried to turn this feature but where do I turn it off?MacPC

java.lang.NoSuchMethodError: main

1177 byte By Daleusa at 2007-10-3 10:15:30
What should i do, when this replies as my outputHere is my code:This is the bicycle classpackage bicycle;class Bicycle {int cadence=0;int speed=0;int gear=1; void changeCadence(int newValue){cadence= newValue; } void changeGear(int newValue){gear= newValue; } void speedUp(int increment){speed = ...

<identifier> expected error, some one help me

1808 byte By asleepyheada at 2007-10-3 10:15:56
I'm new in Java, and I encountered a problemThe codes are belowimport javax.mail.*;import alertregister.*;import arutility.*;public class GetConnection{public final String STRMAILSERVER = "www.hi.com";public final String STRUSERNAME = "abc";public final String STRPASSWORD = "abc";private int ...