Getting in Resultset while connecting to Database.
I get this error when I try to run my code.C:\Documents and Settings\Jason\My Documents\TSM\MyArrayList.java:89: cannot find symbolsymbol : method newCity(java.lang.String,double)location: class MyArrayList<T>newCity(name, distance);^1 errorThis is where it happens.int size = ...
858 byte By
falc1a at 2007-11-26 18:43:44
I'm on windows xp running DocCheck from a bat file. I specify the sourcepath as follows:-sourcepath .\com\SteveSystems\People\*.javaThere are two classes (.java files) in the People directory and both have missing Javadoc tags. However, DocCheck only reports errors in one class. Am I using the ...
1015 byte By
falc1a at 2007-11-26 18:43:50
I'm on windows XP and I've run DocCheck on a package, however everywhere in the output I would expect to see the package name, DocCheck inserts "anonymous." Examples:API Specification ErrorsErrors in Class: (anonymous).PersonandAPI Specification ErrorsErrors in Package: (anonymous)My source ...
363 byte By
asmainfa at 2007-11-26 18:44:03
Hello,JPDA provide several interfaces in tools.jar lib for developing debugger applications.Is it possible to launch an application by launching connector without using jdb, and without using java command line explicitly?Is there any method help me to launch any application by my personal ...
When you specify an @see or {@link} tag to look at, let's say java.util.Properties, do I have to specify the url to that Javadoc page using an HTML anchor element? In the article How to Write Doc Comments for the Javadoc Tool they just specified the class name and it came back as a link in the ...
Hello, I have been browsing web for a while but haven't found any solution of my problem (or any similar problem at all :( ). Imagine following classes in "Experiment.java" file:public class Experiment {public static void main(String[] args) {A a = new A();}}class A {public A(int... a) ...
what is difference between exception and error..?
2613 byte By
jettimona at 2007-11-26 19:06:13
Hi,I am a newbie to Java and need some help finding an error.I run a testing and support website which has been handed over to me with little java training and knowlegde.Anyway the problem is that there a section where you can attach files, this works fine when saving an issue the first time, ...
2231 byte By
Sashi12aa at 2007-11-26 19:10:49
hi when im running the functionpublic boolean getRptIds(String condStr, Vector resultVec) throws SQLException{String queryStr = "SELECT rpt_ids FROM " + viewName + "\n";if ( condStr.length() != 0 )// for totalqueryStr += "WHERE " + condStr;System.out.println("getSubsetRptIds ...
Is tools.jar portable across different platforms or is each tools.jar specific to an OS and architecture?Thanks!
## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77f52b6a, pid=2552, tid=2236## Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)# Problematic frame:# C [ntdll.dll+0x2b6a]# T H R E A D Current thread (0x0ac6a2e0): ...
Hi Iam a beginner working with ant...When I run the script I get the following error...let me know if you have any suggestions....build:[javac] Compiling 28 source files to C:\finaltrial\classes[javac] Note: Some input files use unchecked or unsafe operations.[javac] Note: Recompile with ...
779 byte By
03kJq14a at 2007-11-26 19:29:28
I don't know in which forum topic I'm supposed to post this but you guys can tell me.okay, here's the problem. I use Eclipse to program java applications.Where all of the buttons are supposed to be on the screen there are black squares. The buttons still work, they just look like black ...
Hi fellows. Recently I formatted my system & installed 'JDK 5.0 Update 11'. I suppose that is a full JDK, not just an update? Anyway, I'm using a program called DrJava to write some small programs, & using this new JDK, DrJava can't find the compiler! I suppose it is a file named ...
while opening executable jar files i get error: Failed to load Main-Class attribute from (Filepath)The application runs fine on my cellphonei have the latest version of Java runtime environmenti use windows xp home sp-2
995 byte By
adamcuza at 2007-11-26 19:52:31
helloIm in the middle of writing code to generate a java class file containing the bytecode etc from the result of compiling a small programming language I created for a project, with the intent on getting the JVM to execute the generated class file. I've already created all the necessary data ...
I'm trying to write a relatively simple debugger in java, but I'm having some trouble with StackFrame.visibleVariables(). It always throws an AbsentInformationException, yet I cannot see why. Can anybody explain why this happens?I've tried searching for hints as to what is wrong, but there ...
522 byte By
BCBCBCa at 2007-11-26 20:08:42
hi all,i edit a jar file full of java applets for several years with jbuilder 5, the jdk path is still on jdk 1.3...a few days ago, i compiled the applets with eclipse and exported them as an jar file - eclipse jdk path is 1.5....the problem is:the with jbuilder (jdk 1.3) builded classes / jar ...
846 byte By
HMMa at 2007-11-26 20:14:58
We have Sun App Server 7 and using JAVA 1.4.2 version based application developed using struts framwork. When we deploy EAR file after doing the build and execute the application it works fine. Problem starts when trying to debug application by starting application instance in debug mode in app ...
I have already tried to find some solution on Java Essential forum, not much success there. I hope someone might suggest something here.Design: one big file, split into chunks, recombined according to some order, feeded to some exe file, and finally compilation of results.Problem: I can run ...
1373 byte By
adamcuza at 2007-11-26 20:17:13
Hello,I'm in the process of writing the bytes to generate a class file for a small programming language Ive developed for a project.I'm putting all the data from the various structures storing the class file data into a ByteBuffer, in the order specified in the Class File Format ...
502 byte By
pet_a at 2007-11-26 20:19:22
Hi all!I have a question. I'd like to store in a map the jmethodID that I get from the methodentry jvmti event. And when I get another methodentry event I'd like to decide if the recieved jmethodID is new or I saw that before. But I don't know that jmethodID that I recieve remains the same ...
Hi all, My apologies, I did not know about this forum and previously posted this query in java programming forum too but had no replies and thus posting here.There are tons of java classes in my current project that have zero documentation at class and method level. I tried using javadoc tool ...
492 byte By
keesa at 2007-11-26 20:32:13
When I try to get a list of declared variables in a method, using variables() from class Method, I sometimes get two variables with the same name, although there is one declared. Is this a known bug? Example: the following method gives *two* local variables, both named mx. int ...
76 byte By
MCA134a at 2007-11-26 20:43:10
Hello friends,Can any one list down the eclipse shout cut keys
This code creates a "missile" by mouse clicks:public boolean mouseDown(Event e, int x, int y){missiles[mc].reset(x,y);enemyMissiles[emc].reset();if (mc < missiles.length-1)mc++;elsemc = 0;if (emc < enemyMissiles.length-1)emc++;elseemc = 0;repaint();return true;}Missile Class:This is where ...
I'm new to java, obviously. I downloaded the environment and the SDK. Now how do I compile and then run my work.
2281 byte By
KoTurka at 2007-11-26 21:18:30
Dear all,I am developing an application but I get the next error.Does anybody know this error?java.lang.NoSuchMethodError: mainException in thread "main" <CODE>import javax.swing.*; import java.awt.*;import java.awt.event.*;import javax.microedition.io.*;import java.io.*;import ...
I ran this program and the slider should produce color at the bottom of the frame but it doesn't please help.import javax.swing.*;import javax.swing.event.*;import java.awt.*;/** * Title: * * Description: * * Copyright: Copyright (c) 2007 * * Company: * * @author not attributable * @version ...
I would like to use the javax.tools API in jdk 6.0 to obtain the AST from a Java source file and then visit the AST. I'm pretty sure the class JavaCompiler and ClassTree can help me, but I have not been able to find any information (or examples) on how to do this, or work it out myself.If ...
4471 byte By
cstork9a at 2007-11-26 21:45:25
Like most C++ compilers, Java is not able to take full advantage of the SSE capabilities on the Intel/AMD CPUs. Other CPUs (PowerPC, Cell) have similar features. Future CPUs are likely to take advantage of these special instructions even more. The current difference in floating point ...
1569 byte By
JaMeSa at 2007-11-26 21:57:49
I'm implementing an agent using jvmti. I'm using the jdwp protocol to send and receive packets to and from a client. Many jdwp commands (see example below) utilize referenceTypeId (as well as objectId, methodId, etc). My question is this: Is there a way to get a referenceTypeId from the jvm ...
307 byte By
JaMeSa at 2007-11-26 21:57:53
Is is possible to obtain a jobject directly from jvmti (without involving any java class) and then calljvmtiErrorSetTag(jvmtiEnv* env,jobject object,jlong tag)If so, how do you obtain a jobject via jvmti? --Or must the jobject be passed in from a java call via ...
642 byte By
danvora at 2007-11-26 22:01:34
To get objects allocated during runtime, I use byecode intrumentation, JNI function interception, and VM Object Allocation Event of TI. But I still miss the allocation of many objects, about 15% of all the heap objects. why this happens, the objects missed are "[I", ...
23901 byte By
js04a at 2007-11-26 22:04:22
Hi, not sure what is wrong with my codes....this is how i want it to work:--the user enters their details and item details--when the user clicks on "FindCustomerAndPlaceBid" button, the users details and item details should be displayed.the error: NullPointerException ItemPD.javaimport ...
643 byte By
JanDa at 2007-11-26 22:21:19
Hey guys I'm using Java JDK v1.6.0 or dr Java(not really sure since I just downloaded it). I have a school assignment to do and I can't figure out what to do about this error. 1 error found:File: (no associated file) [line: (no source location)]Error: Compile exception: ...
342 byte By
JRubioa at 2007-11-26 22:27:43
Hi,How can I write html code without be interpreted. I want to write a header like: /** * * @param html A text like <div>hello</div> * **/and I want that JavaDoc doen't interprets <div> as HTML.How can I do it?Thanks a lot for helping me ...
332 byte By
chapara at 2007-11-26 22:29:18
Hello,I am not a Java expert but my application is using java to generate some reports. I am getting the above error when I try to generate some graphical reports. I am not sure where to start looking at this problem, can someone provide me with some insight...I am running Sun OS 9.0Database - ...
In order to make a jar file you have to run a command in the "jar utility." Which it sounded like was just the command prompt. Yeah it's not. if you try the command prompt will just say "jar" is not recognized as an internal or external command. I thought it was gonna say that but it was worth ...
1382 byte By
Grubbsya at 2007-11-26 22:43:00
We have an internal controller for our HVAC systems. Members of our maintenance dept can access the controller through a web portal. When we try to access the site, we get the following error:load: class com.jci.metasys.ui.applet.MetasysApplet.class not found.java.lang.ClassNotFoundException: ...
It Just will not Compile!!! All of the files necessary to run my program are in the folder C:\Vocab\ and if i run this in the command prompt:java -cp C:\Vocab\MyJar.jar VocabMy application will run just fine but i guess when Excelsior Jet runs the EXACT same command (and when i say exact i mean ...
212 byte By
Del2a at 2007-11-26 22:49:56
What I need for generation javadoc in eclipse, maybe I must download some tools ? I press project / generate javadoc..and dialog say that I must enter Javadoc Command ? "Specify the Javadoc command"
Dears,I'm deploying my target application on HP non-stop Tandem server which is using 1.4.1_5 and I can't upgrade for some technical issues and other application using this specific version.My development environment, I'm using jdk 1.4.2_12 on Windows.My question -as I couldn't find any ...
Hi,I have converted my DELPHI 5 program (which copies data from Lotus Notesdatabases into Oracle tables) into a Java program, developed in Eclipse 3.1.I am TOTALLY new to Java, but the program is now running inside of Eclipse.The PROBLEM IS that my DELPHI program can read a Lotus Notes dbof ...
716 byte By
pelakha at 2007-11-26 23:24:11
I have a method that logs on entry (based on a flag), and I would liketo be able to identify the caller in the trace. Now, I can useThread.getStackTrace() to get the static thread stack, from which Ican get the invoking class and method. However, I would like to gethold of the 'this' object ...
536 byte By
pmarcha at 2007-11-26 23:37:10
I am generating the content of a .java file ( as a String ). I have been successful in using an extension of SimpleJavaFileObject to pass this String to the JavaCompiler.getTask() method. Playing with the options, I am able to control the compiler behavior, too. What I really want, though, is ...
Hi, I'm fairly new to java...was wondering if anyone could tell me why i'm getting a null pointer exception on the length = list.length; line...list is an array that has both been declared and initialized:public String toString(){length= 0;index=0;length = ...
435 byte By
byte008a at 2007-11-26 23:37:59
Dependency-checking works fine with javac (e.g. you only need to specify x.java as the argument and y.java, if referenced by x.java, is automatically compiled).However, when y.java is updated and there is already a file called y.class, y.java is not recompiled.Why is that? Wouldn't it be ...
when I generate my javadocs im having a problem in that the return and parameter Objects are not links. It will list the name of the class but its plain text only.This is an example what im talking about http://java.sun.com/j2se/1.4.2/docs/api/java/util/Observer.htmlThe 2 parameters for the ...