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.
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
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, ...
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' ...
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 ...
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 ...
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 ...
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 ...
Hi, did you all see this error before?error: unsupported encoding: SJIS_i
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 ...
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 ...
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 ...
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
hi this is surendrawhat is the exact diff b/w throw and throws?if possible give an examplethank usurendra
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 ...
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
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?
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
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
doc does not discuss shorts...
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 . ...
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 ...
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 ...
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 ...
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 ...
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 does javac decide what language it displays? It suddenly starts to display Chinese.
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'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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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
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 = ...
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 ...