java:57: cannot find symbol class _cls2

557 byte By Stusya at 2007-11-27 11:48:12
Due to our loss of a software engineer who started this ongoing project many many moons ago I've come to compile it, but have the following error.I'm using netbeans 5.5 and JKD1.5 U12I've fixed all of the errors apart from this one:-table = new _cls2(model);Now the _cls2 class has not be defined ...

Sometimes a single click is unresponsive with JButton

476 byte By JakeJeckela at 2007-11-27 11:43:31
I'm working on a simulator that can run pretty slow at times due to it's massive size. There have been complaints made that sometimes when a user presses a button on the hmi, nothing seems to happen and they have to press it again. Do you guys have any incite into what could be causing this? ...

pls help me.. i'm very new in java..

7646 byte By poor_princea at 2007-11-27 11:41:35
there is an error error message telling me that nonstatic method cannot be referenced to a context one... pls help me... i'm new in java and i'm still a student... it's my first time in java... thanks a lot... i really want to learn...here are my codes...package com.mybank.domain;public class ...

How to prevent class files from being decompiled

146 byte By prabh13a at 2007-11-27 11:39:39
<p>The class files can be easily decompiled by various java decompilers. Is there anyway to seal or prevent class files from being decompiled.</p>

JDB command equivalent using com.sun.jdi classes

445 byte By anil.samuela at 2007-11-27 11:37:39
Using jdb I am able to stop by "stop at $Oracle.Procedure.DTP.PROCEDURE1:5" as seen below>main[1] stop at $Oracle.Procedure.DTP.PROCEDURE1:5Set breakpoint $Oracle.Procedure.DTP.PROCEDURE1:5main[1] cont>Breakpoint hit: "thread=main", $Oracle.Procedure.DTP.PROCEDURE1.PROCEDURE1(), line=5 bci=5what ...

i ahve a problem

283 byte By PKDemona at 2007-11-27 11:35:57
<p>i am making a game server and i am using java nad when i go to use my compiler to compile every this comes up</p><p>This application has failed to start because jli.dll was not found. Re-install the application may fix this problem</p><p>can someone tell me when i done wrong?</p>

Problem with javadoc bullding and combination with JC 2.2.1 documentation.

972 byte By Ievaa at 2007-11-27 11:32:21
Hi,I am sure that most of us is developing applications using Eclipse and JCOP tools (or without that plug-in) and then come to the API javadoc generation.The problem is, that i am trying to generate my on-card package Javadoc. Everything is fine, but it doesn't find eclipse javadoc for jc221, ...

Out of heap space erorr

899 byte By arijit_dattaa at 2007-11-27 11:22:40
Hi guys, My app is mainly a wordlist crunching program. Its a swing app. There are two flat files about 10 MB each. The first part of the app is supposed to read all that data from the two sperate flatfiles and put them into two seperate Hashtables.The first first file get loaded fine into the ...

Application Problem

341 byte By MikeJR88a at 2007-11-27 11:15:32
I don't know if this deals with my problem but I play a game that uses Java of course but whenever I'm on it, a few minutes later the client will close itself and I have to load it back up and sometimes the problem persists... I'm using the runtime env. 5 update 2 and and env. 6 update 2.... ...

Framemaker?

266 byte By Ievaa at 2007-11-27 11:10:27
<p>Hi,</p><p>I am new to javadoc mif doclet. I have already installed dzbatcher, but it doens't find a framemaker. I read, that versionb 5.5.x or 6.0.x has to be donloaded, but ha couldn't find it.</p><p>Coould you post me a link?</p><p>Best regards,</p><p>Eve</p>

Compound assignment operators for boolean

633 byte By serdioaa at 2007-11-27 10:53:42
Why compound assignment operators for booleans like "&&=" or "||=" are not defined in JLS? Is there any particular reason, or were operators just inherited from C/C++ ?If such operators were defined, they should have the same meaning as compound assignment operators like "+=" or "*=", that ...

Simple exception chaining problem

3072 byte By Meepa at 2007-11-27 10:51:20
The problem is 'throw new ClientException(e.getMessage());' the error message kept stating to be in try/catch but it's already in try bracklet. I tried placing the exception in other bracklet but it defeats the purpose of showing the exception in this specific bracklet. I'm not sure what's the ...

Agent_Onload called twice?

380 byte By Cranberry_Lambica at 2007-11-27 10:43:17
I have a C application which embeds a JVM (of course JNI). I'm trying to do some profiling with JVMTI. Is there any reason Agent_OnLoad would be called twice during the start of the JVM? I'm only calling JNI_CreateJavaVM once in the application I am attempting to profile using JVMTI but the code ...

Trouble with only one website!!!!

1350 byte By tx_vlba at 2007-11-27 10:37:23
I'm having a problem with connecting to www.AmericanGreetings.com without getting the following errors....and I don't know if these errors are Java errors or not....I have not been able to locate where these errors are coming from.....here are the errors I receive: Object doesn't support this ...

-Xlint deprecation error

503 byte By gj89a at 2007-11-27 10:37:00
Dear All,I am trying to build a small chat program that connect two computers on a LAN.As I'm not good with Java, I'm using the programs I found on this site: http://pirate.shu.edu/~wachsmut/Teaching/CSAS2214/Virtual/Lectures/chat-client-server.html Whenever I compile any of the programs, server ...

non-static method areaReturn() cannot be referenced from a static context

2476 byte By beatjunkiea at 2007-11-27 10:36:59
Hello everyone, I am new to this site and I just needed a little help with my code to finish it. Im not sure why I get the error stated above, but here is my code(s) from both classes.public class Triangle{private int base;private int height;private int numOfTriangles = 0;double calc;public void ...

Compiler

299 byte By Harloea at 2007-11-27 10:25:03
<p>Everytime I run Complier i get:</p><p>Note: stream.java uses or overrides a deprecated API.</p><p>Note: Recompile with -Xlint:deprecation for details.</p><p>Press any key to continue . . .</p><p>I'm fairly new to java, any help will do</p><p>Thanks</p><p>Message was edited by: </p><p>Harloe</p>

Mozilla Unable to Locate verify.dll and crashes

730 byte By JavaTheHuta at 2007-11-27 10:24:34
I'm running Mozilla 1.7.11 on Windows NT. In the last few days, Mozilla will crash any time I visit a site that uses certain types of javascript.The error message that pops up before crashing has the title "mozilla.exe - Unable to Locate DLL" and reads " The dynamic link library verify.dll could ...

getting heap info during gc start/stop callbacks

1381 byte By brian.murphya at 2007-11-27 10:23:36
Hi,i want to get the size of the heap before and after each gc.The code is below. However, at run time, I get the followingAttachCurrentThread:0ERROR: JVMTI: 115(Unknown): the first line shows the return value from the attachcurrentthread call, which seems to work ok. the next line is the error ...

JNI Function Interception Documentation Correct?

3616 byte By Cranberry_Lambica at 2007-11-27 10:15:40
I'm looking at the doc located here: http://java.sun.com/javase/6/docs/platform/jvmti/jvmti.html#jniInterceptThe code sample is also a part of the Java 5 JVMTI doc. Is this code correct? It won't compile the way it is, even when the obvious ommissions are coded back in.//JNIEnv ...

getTime function

782 byte By brian.murphya at 2007-11-27 10:13:25
Hi,This is fairly high level question about the use of the above method, and indeed any timers in jvmti. Generally speaking the timers return time in nanoseconds set in jlong, which are signed. This means that the time returned by this method "wraps" every 2.147483647 secs. This is because jlong ...

Changing Compilers

258 byte By yoaxa at 2007-11-27 10:10:17
I am using Netbeans IDE 5.5.1, on XP, and I was wondering if instead of using the javac compiler, I could set it too use the GNU Java compiler, the gcc-java for cygwin. Any help would be appreciated. Thank you.Message was edited by: yoax

Problem with Net Beans

711 byte By niki4koa at 2007-11-27 10:09:32
I have copied my project to oder computer and whet a push RUN i have this exceptionDeploying application in domain failed; Error Flushing ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/Sun/AppServer/domains/domain1\config\domain.xml, ReadOnly=false, ResolvePath=true, LastModified ...

Error NoSuchMethod

602 byte By Java_New_Newcomera at 2007-11-27 10:03:25
Please help me!!! I am new in java and I tried the next programm:import javax.swing.JOptionPane;class My_programm {int a;int b;int S;public static void main( String args[]) {{a = Integer.parseInt(JOptionPane.showInputDialog("First num"));b = Integer.parseInt(JOptionPane.showInputDialog("Second ...

Auto close when entering login page

14306 byte By kvn07a at 2007-11-27 10:01:15
Hi,Whenever i try to enter the login page, it auto close the browser. Pls help. thanks.## An unexpected error has been detected by Java Runtime Environment:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x06c306ca, pid=3700, tid=3408## Java VM: Java HotSpot(TM) Client VM (1.6.0_01-b06 mixed ...

is class name important ?

587 byte By Terry_ba at 2007-11-27 9:54:43
Hi all,I have two simple classes1. 123_test.javaclass 123_test{}2. test_123.javaclass test_123{}I can compile second one successfully. But when I compile first one , the error is 123_test.java:1: <identifier> expectedclass 123_test^1 erroris problem class name starting with a number ...

javac cannot find javax.servlet.*; package

224 byte By cmartin1971a at 2007-11-27 9:54:05
getting an error when I try to compile code that contains the line:import javax.servlet.jsp.*;import javax .servlet.*;Yet, other classes in javax can be seen by the compiler such as javax.swing.*;

Compliation Error: Recompile with -Xlint:unchecked for details

1853 byte By georgiebona at 2007-11-27 9:41:52
I am new to Java and am working through Sams Teach Yourself Java2 book. One of the examples gave me a compilation error. The problem code follows:C:\Java_Work\com\ramyam\ecommerce>java c Storefront.javaNote: Storefront.java uses unchecked or unsafe operations.Note: Recompile with ...

MIF Doclet

2027 byte By Yoela at 2007-11-27 9:38:08
Helllo everybody,I'm trying MIF Doclet to generate a pdf report (I use java 6).I ve this error : Loading source files for package type...Constructing Javadoc information...javadoc: warning - Multiple sources of package comments found for package "type"MIF Doclet version 1.2 beta 2 (build date: ...

Java Application "Killed"

853 byte By Furman82a at 2007-11-27 9:36:09
I wrote an application that opens up a series of large data files, jumps through the files to determine if they are of correct format and output any errors associated with the data contained within the files. To speed up execution of the program, I designed the program to open up each folder as ...

Error - java.lang.OutOfMemoryError: out of memory

564 byte By pkishora at 2007-11-27 9:13:56
Hi We have developed one tool, which conencts to SAP server and extracts data from SAP tables. This tool is working fine, but for some servers we are geting following error. Appreciate you help. Thanks Exception in thread "Thread-2" java.lang.OutOfMemoryError: out of memoryat ...

Java Virtual Machine error?

14287 byte By dragan_bg_88a at 2007-11-27 9:12:46
Hi to all! I made one application in which i can choose stuffs for printing, and maximum number of that stuffs is 15. Problem is that when I click on the button for adding stuffs all Forms have just closed and I got only log file with error. But sometimes I can add all 15 stuffs without error, ...

Unhandled NullPointerException

1865 byte By shamexa at 2007-11-27 9:06:41
I keep getting Unhandled NullPointerException although the loginID is not null.public Secuser[] getBulkUserLoginID(String loginID){ Secuser[] user = null; try {String sql = "SELECT * FROM " + Constant.DB_REPORTCONFIG+ ".secuser s WHERE s.parent_login like '" + loginID + ...

java program stopped running when using JVMPI

3207 byte By dash_huana at 2007-11-27 8:59:28
Hi!I'm writting a very simple profiler using JVMPI. I intended to pause/continue it by sending signal, like kill -SIGUSR2 PID, to it, but whenever I did this, the java program that ran with the profiler stopped running, however the profiler kept running properly.Here's the code of the simple ...

warning: [path] Unexpected file on path:

502 byte By klaasdea at 2007-11-27 8:57:58
HiI try to compile a lott of files with the command:javac -classpath c:\ -sourcepath c:\test\*.javaAnd that gives the following warning:warning: [path] Unexpected file on path: c:\test\AnalyzeAccNum.javaThe result is that that file is not compiled. And if I use javac to compile only that file ...

getLength method

406 byte By gator_811a at 2007-11-27 8:53:52
Hello.I'm very new to programming. I've been reading on methods. I tried to compile a piece of code. I created an object (a rectangle). I have imported the awt library and when i use objectname.getWidth and pass it to a variable and use it, it works correctly; However, when i use ...

an alternative for this code

5474 byte By Exekyela at 2007-11-27 8:50:07
look guys im new on this of JAVA im starting a career on this but i have a lot of questions, the only one who can resolve this is somebody and not a manual xDis simple i just need an alternative(im sorry for my english but i cannot speak much english)the code have comments in spanish dont read ...

Handling exception from method

351 byte By hetal_giria at 2007-11-27 8:47:10
Hi,Can anyone let me know how can i handle exception tht r thrown from the method.With try and catch i dont have any problem but when i try to use errorpage and comment all try catch blocks in the page the block of code into method declaration throws exception which i m not able to ...

newbie compiling question.

619 byte By klaasdea at 2007-11-27 8:42:19
Hi I'm trying to compile my program but I get the following error:C:\Program Files\Java\jdk1.6.0_01\bin>javac -classpath c:\test -sourcepath c:\test\*.javac:\test\ProcessStatementLine.java:22: cannot find symbolsymbol : class AnalyzeAccNumlocation: class test.ProcessStatementLinestatic ...

getting 3d to work

824 byte By Hunter78a at 2007-11-27 8:37:52
I will start learning 3d in java and thought I should leave bluej and go for NetBeans. But it always takes days to make something new to work..... This is what I have downloaded and installed:- NetBeans IDE 5.5.1- java3d-1_5_0- java SE Development Kit Version 6 Update 1But I磎 getting: "package ...

Yet Another '1.x on 1.4' question... but wait! This one's different!

1957 byte By CodeMonkey9358a at 2007-11-27 8:37:19
So, after faithfully using Jikes (Best. Compiler. Ever. RIP) for many years, I've decided I'm too far behind the times, and I've moving back to javac for 1.5 and 1.6.However, the applications I'm writing must have the biggest reasonable userbase (usually in situations where the users are ...

Can't use the same JVMPI min=max heap setting for JVMTI

436 byte By bspikea at 2007-11-27 8:25:54
I have a DLL that serves as both PI and TI library. When using PI, I can specify -XmsNNNNm -XmxNNNNm but the same setting would not work when switching to TI. I must lower the heap setting by as much as 725M on a Windows box. On UNIX, I only need to lower it by 5-20M depending on machines. It ...

Can any one help me to solve my prblem

12034 byte By kandilxa at 2007-11-27 8:20:20
exception java.io.IOException is never thrown in body of corresponding try statementimport java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.text.*;import java.util.Date;import java.io.*; public class SampleIO2 {int[] u= new int[27];JFrame f;String s1,s2;int ...

generics not included in javadocs

1401 byte By Chadhaa at 2007-11-27 7:44:50
I am using jdk1.5.0_06's version of tools.jar. I have attached the code that I am using in a custom doclet but still I am not able to view generics.The output is java.util.List instead of the complete type. Am I missing something? public static boolean start(RootDoc root) throws ...

Tool for Reversing (.class to .java classes)

94 byte By java2007jeea at 2007-11-27 7:40:48
Can somebody tell me about an open soft tool for reverting code.Thanks.FS

Help on printing error messages to a log file

111 byte By noobboya at 2007-11-27 7:40:16
Hi, may I know whether is there any way to print the error messages to a log file? Thanks for your help!

Help detecting interface declarations using Sun Compiler Tree API

703 byte By cowwoca at 2007-11-27 7:37:51
Hi,I have an instance of com.sun.source.tree.ModifiersTree when parsing a Java source-code file. Invoking toString() on the ModifiersTree clearly shows the "interface" modifier yet when I try using the public getModifiers() method it does not return this modifier. The actual Modifier.java ...

Class Expected error - HELP

1046 byte By simonkf2002a at 2007-11-27 7:29:13
Hi I've been workin on a project, and it seems something is wrong with this code... i honestly cannot figure it out...here it is :Uses the following methods:public static boolean areEquivalent (String word1, String word2)This method reutrns true or false depending on whether the two input ...

verify digital signature mobile 5.0

399 byte By ddrake2196@aol.coma at 2007-11-27 7:28:14
i have a jad file d2link and i get this error msg [unable to verify digital signature ] can any one help its on a 8525 phone with wm5 on it with the java program 6.1 i have downloaded opera it seem to work fine plus the golf tracker and gmail and them seem to work fine or is there any way to ...

How to call to javac from a class?

961 byte By DaleGroa at 2007-11-27 6:56:44
Hi folksI need to compile a file .java from a program java written by my in java.the first form that uses went calling to a process this way:String cmd = new String[] {"javac","\\temJava\\*.java"};p = Runtime.getRuntime().exec(cmd);this works well but single for windows, and I need to work in ...