bad class file error!!!Please help me

2538 byte By beckham12a18a at 2007-10-1 18:29:18
I got a problem that is very strange. I have two source files saved in the same directory: E:\Java ProgrammesFirst one: A.javapackage util;public class A {public int add(int x, int y){return (x + y);}}Second one: B.javaimport util.*;public class B {public static void main(String args[]){A a = ...

Hardware Question

1214 byte By Peelman126a at 2007-10-1 18:30:51
I'm looking to build a new PC strictly for my programming and was wondering which hardware I need to focus on. I'm only a novice programmer but it is a fun hobby to have.Anyway, when compiling and running java programs where are the main instructions being carried out? I mainly do detailed ...

remove empty methods

184 byte By cispasoiua at 2007-10-1 18:31:20
i have empty methods in my code; can i compile it so that an optimisation can be made to remove the empty methods and the reference to those methods?thanks,catalin

RandomAccessFiles Removing Record?

75 byte By Shageya at 2007-10-1 18:35:15
Is it possible to remove records completely from a randomaccessfile?

Java Error message- please help!

10156 byte By Yvonneh21a at 2007-10-1 18:37:54
I am recieving the following message, along with being booted from iexplorer. Please help!hs_err_pid2400An unexpected exception has been detected in native code outside the VM.Unexpected Signal : unknown exception code occurred at ...

j2se api

126 byte By willesdena at 2007-10-1 18:38:01
hiHow can i download the api for j2se. Checked the download section and i can't seem to find how to download it

Annoying DING Sound!

430 byte By SonicRunea at 2007-10-1 18:39:15
Whenever I go into ANY Java program, it runs fine, but then whenever I type a key on my keyboard, I hear a DING from the speakers and a click from the harddrive....it is REALLY frustrating,, i'm playing the famous Java online game Runescape and cant even chat away with friends without being ...

Java wont work

107 byte By javalifea at 2007-10-1 18:41:54
i open up java and it opens up but its totally blank all i see is a white screen whats causing this?

Renaming FooBAR$1.class

221 byte By DenverRapSucksa at 2007-10-1 18:42:27
k so i compile fine, but get fubar$1.class and fubar$2.class. which is mostly fine by me, but the ftp server i try to upload to doesn't like the $ in the file names. So how do i get it to compile without the $'s.

Application Connection with MSSQL problem

751 byte By Ingudama at 2007-10-1 18:43:32
Hi, About 20 instances of my application is connecting to a single DB (MSSQL Standard 8.0 ). Earlier all the instances could connect, but after sometime, I am getting the following error.It would be great if anyone facing such problem earlier and resolved could help.SQL connection get returned ...

How do I combine multiple taglets?

229 byte By Miikee_a at 2007-10-1 18:44:43
Hello!I have written 8 taglets. Is it possible to combine them into or with one class?I am asking because I do not want to write a "-taglet" command line argumentfor every single class.Thanks...

Problem when working with package?Please, help me!!!

1804 byte By beckham12a18a at 2007-10-1 18:48:27
I got 3 .java files from one Java tutorial as follow:Server.java (in package mygame.server)Utilities.java (in package mygame.shared)Client.java (in package mygame.client)All the above files are placed in "E:\Java Programmes\source"After compiling, i got correspponding .class files:Server.class ...

add jar to classpath at runtime

218 byte By AakashAtPSPLa at 2007-10-1 18:49:11
I want to add a jar file to the classpath for my program only(don't want ot set the global classpath) and that too from within the program. Can you please help me with it? thanks in advance

... uses unchecked or unsafe operations ?

577 byte By RGARNER04a at 2007-10-1 18:52:22
Hello,I am using a Vector to store data of type int and keep getting these warnings at runtime ..Note: C:\Java\prog1.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.Recompiling as specified above yields:warning: [unchecked] unchecked call to add(int,E) ...

An unexpected error has been detected by HotSpot Virtual Machine

14321 byte By UMITa at 2007-10-1 18:52:32
I try to connect to a chat room but the browser closes abruptly and leaves an error log on your desktop## An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77f75696, pid=4092, tid=2024## Java VM: Java HotSpot(TM) Client VM ...

Problem when running outside of the IDE

843 byte By buk110a at 2007-10-1 18:56:32
Hello, hopefully someone with more knowledge in Java can assist me with this issue. I am currently using NetBeans for my developer tool and have written a program that takes advantage of the PDFBox libraries.The file will run properly within NetBeans; however, when I goto clean and build the ...

Disable c style comment javadoc generation

235 byte By manveena at 2007-10-1 18:58:24
How do I omit producing javadocs for all methods that do not have a /** */ javadoc style comment. i.e. I don't want javadocs generated for methods that have no comments or have c style comments? /* */thanksManveen

Java opens and closes instantly

460 byte By dodobirda at 2007-10-1 18:59:09
When I try to open Java, it appears for a second and then closes. Sometime, when I keep clicking eventually it stays open, but that is rather rare. This happens when i try to open Yahoo slideshows, calendars when booking airline trip and more.. I have latest version, recently reinstalled ( ...

need Some help Here

1860 byte By java_coder850a at 2007-10-1 19:03:29
ok hres my problem.i have a box in my program and the box which is codedla.gfe(295, l, 75, 35); dla.gfd(295, l - 6, "FoodID:", 4, false); FoodBox = dla.gfj(295, l + 5, 75, 40, 4, 12, false, false);ok now i also did this...String f = dla.ggd(FoodBox);SetFood(Integer.parseInt(f));now to do that i ...

Package does not exist

421 byte By kannan_rajua at 2007-10-1 19:13:38
HiI have a java program called "BeerSelect.java" in c:\myprojects\beerv1\src\com\example\web directory.I have another program called "BeerExpert.java" inc:\myprojects\beerv1\src\com\example\modelIn BeerSelect.java, I have a code import com.example.model.*;at this lne, it gives package does not ...

java.rmi.ConnectException: Connection refused to host

1819 byte By NBGa at 2007-10-1 19:14:08
Hi, I am trying to get a RMI server running. I am using a windows 2000 client. I started with "start rmiserver". When I am trying to run my service by calling "java AccountServerImpl", I am getting the following exceptioion. Can someone help me find where I am missing ...

WinXP Explorer blocks Javadocs, security warning on Active X or script.

547 byte By BillBlalocka at 2007-10-1 19:17:10
Hi all:A new infestation of WinXP (probably service pack 2) is giving a security warning every time I open Javadocs.A bar appears at the top of the Explorer pane, that has to be clicked. Select enable and say okay to warning.This is really annoying. Can anyone tell me how to get rid of it?These ...

Im lost and cant compile anything, keep getting an error!

324 byte By mashackalacaa at 2007-10-1 19:17:48
all i want to do is to be able to compile my simple HelloWorld program but when i tell it to compile in the command prompt:C:\Documents and Settings\Mashackalaca>javac HelloWorld.javaerror: cannot read: HelloWorld.java1 errorWhat am i doing wrong?Any help is greatly ...

Need help on creating a method.

1468 byte By Yoan_Chiniquea at 2007-10-1 19:19:43
I need help on creating a method that calculates the Greatest Common Divisor of two numbers x and y, then returns the greatest common divisor d. So, I created this...public static _gcd (long x, long y) { int j = 1;do { // loops to find the GCFlong[] mod_num_array; mod_num_array[0] = y % ...

need help with Java always get error

616 byte By 49ers11a at 2007-10-1 19:20:31
hey guys need helpthis the problem i get :I go to certain websites and I get this error with firefox.This Site requires that JavaScript be enabled.It is enabled.This is the one of the errors in java script console with firefox.Error: [Exception... "'Component does not have requested ...

Checking the String for the numerics

347 byte By LavanyaPina at 2007-10-1 19:20:52
Hi all, need small helpI've one string with me. I want to check whether i t contains all digits or not.that is... whether the string contains numeric value or String value.Is there any util method to do this?or do we need to write our metods to do this?Thanks in advanceLavanya ...

My result about javadoc

2133 byte By mygogoa at 2007-10-1 19:20:59
^2G1<1Q1?1|TQ1,1w2!p1c1_2KN2'2l1CVfuLJI2j2&1K1l1S1?L|1n2MX162ME1.2<2h2ku2R1IR<$C1{R2IT1r1]1@^Z^2J1v42Pz1jU2X1&1y2Y1z_;g102,1zI2)151+U2Z2g2>26h2au1N2Dk1j25-1B2E2Qf2N<1U1;D1Ux2Q1v2et2aE2-1(151iR1v1;m2GG2X1i(2m1-1'1@1e1Fv1yi1=D1M1(2F2SW2VyY1,2Q-2DG{Q1_2"D1[[2#2.{Fye2[D41*1W...

Copying Oracle BLOB data from one database to another

3612 byte By Buddhadeba at 2007-10-1 19:26:38
Hi,My application inserts record consisting of a BLOB data into the following table in a Oracle database, say, DB1.Table name : DB1_Table1Columns: DB1_Table1_Id NUMBER(15) NOT NULLDB1_Table1_Blob BLOBAfter the record has been successfully in DB1_Table1, I read the data from it and insert into ...

I have aquestion

249 byte By Malenaa at 2007-10-1 19:29:32
I'm not too sure if I'm in the correct forum but I need help!!!I have a client that is getting this error when upload some pictures online "java script error line 16". Why is the person gettign the error and how I help to resolve it?

Why is this Error?

195 byte By krishan115a at 2007-10-1 19:32:46
HotSpot Virtual Machine Error, EXCEPTION_FLT_DIVIDE_BY_ZEROError ID: 4F533F57494E13120E43505002D4This application has requested the Runtime to terminate it in an unusual way.

Java Errors

648 byte By rskidorz@hotmail.coma at 2007-10-1 19:33:03
Hi thereI am a student in the UK trying to pick up Java from Sams 21 Days Java 2.0 book. I am copying the examples from the book but receive errors when running them, however if I copy the java file from the cd-rom (which appears identical) there are no errors and it works perfectly! I am ...

Failed to Load Servlet

2715 byte By atp2bdba at 2007-10-1 19:34:33
I am tring to run a server in WSAD 5.0.1, but when I start the server it errors and doesn't allow the servlet to load. Here is the error message:[7/28/05 7:20:55:619 EDT] 5cd5c78b WebGroupE SRVE0020E: [Servlet Error]-[log4webservlet]: Failed to load servlet: java.lang.ClassCastException: ...

Java VM crash

1267 byte By BGFuel1086a at 2007-10-1 19:35:11
Hello,My name is Brett Gottlieb and I'm 18 yrs old currently a sophomore at Penn State University.My knowledge base of Java is very, very limited (none). The other day I was working with an S-Video cable fooling around with some settings, nothing crazy, when my wireless completely goes down. ...

Newbie Javadoc Questions

573 byte By dartman130a at 2007-10-1 19:35:19
I am a relative newbie at using the Javadoc tool. I have two questions:1. When I comment my code with @version, the docs say to use %I%, %G%, which I understand is supposed to be replaced with the Java version that the code uses. However, the generated docs still say "Version: %I% %G%. What am ...

Problem with StringTokenizer and String.split()

5246 byte By sdhafjasdfa at 2007-10-1 19:37:20
I have this class for a golf game I'm writing:import java.io.*;import java.util.StringTokenizer;public class CourseListReader{public static Course[] getCourseList(){try{BufferedReader courseReader = new BufferedReader(new FileReader("courses\\courses.dat"));Course[] courses = new ...

XPATH problems

261 byte By atp2bdba at 2007-10-1 19:37:34
I use xpath to filter a xml document. When I use the xpath expressions from a main method everything works fine. But when I try to run my classes on through a servlet, the xpath returns nothing. I am using WSAD 5.0.1. Why would it not work on the server?

New to java.

714 byte By max100001a at 2007-10-1 19:38:04
I just got a new job as a java programmer in a small tech school. The school has a web page written in jsp and jakarta strut with various functions. My job basically is to pick up where the last guy that was working there left off. All they have is a server machine with all the files. I need to ...

Weblogic81+Eclipse3.1+myEclipse3.64. ... class ... could not be loaded. ...

1554 byte By Javabca at 2007-10-1 19:38:32
I am using Weblogic81+Eclipse3.1+myEclipse3.64+J2SE142_08 to test a very simple web app with only one java file DVDManager.java and one index.jsp file. I imported java class and tried to it in jsp: ...<jsp:useBean id="dvdmanager" scope="session" class="DVDManager" />...then I built the ...

pogo games

225 byte By justportera at 2007-10-1 19:44:37
i seem to be having the same problem as everyone else--i can get pogo to load but i can not access any game that gives tokens or has a money jackpot connected to it :( i have emailed pogo--but i have gotten no response

Java recompilation with 1.5, perfomance improvements?

461 byte By vladmihaisimaa at 2007-10-1 19:47:27
Hello all,I'm looking for the differences in the class output between compilation with older java and java 1.5 of the same java class. Specifically, besides different version number are there possible performance improvements ? For example I compile a class x with target 1.4 and with target ...

Problem keeping a JMenu on top

415 byte By Fukurokujua at 2007-10-1 19:47:49
I am pretty sure there is a simple way to solve this problem but I am tired of beating my head into the wall. What I am trying to do is keep my JMenu on top of the other graphical elements. I have a JPanel that is periodically updated and repainted, everytime this happens the graphics in the ...

New To Command Prompt

583 byte By JDCAcea at 2007-10-1 19:48:40
Hi.I've been using NetBeans for as long as I can remember, so I've never really need to do the whole javac filename.java in the command prompt. Well, now I'm trying to do an applet, and nothing I do works.1.) I compiled WelcomeApplet.java using NetBeans, so I have a WelcomeApplet.class. I ...

OLD version of jdk

108 byte By swaco1a at 2007-10-1 19:49:46
ANyone got the link to old version of the JDK? i am looking for something lower than 1.2Thanks

Finding out what version of java a class was compiled with

636 byte By MRPRANKSTAa at 2007-10-1 19:52:07
Hi, I have a question that might be answered rather quickly. Is there anyway when given a java class file to find out what version of java was used to compile the original source code? I have an abundance of java class files and I do not want to have to recompile all of the code associated with ...

java.net.SocketPermission 127.0.0.1:1099 connect.resolve

1124 byte By jtraw2000a at 2007-10-1 19:53:06
I have installed our properitary softrware hundreds of times and have gotten this error twice. The first time I had to wipe the machine and re-install Windows XP in order to get around this error. I thought maybe there could be another solution besides taking such a drastic step. Please Help if ...

java error

4831 byte By goldeyea at 2007-10-1 19:53:19
Hi,we are trying to add new virtual class in the iplanet web admin console. When clicking the Virtual Server Class tab in the UI, we see HTTP 500 - Internal server error, and in the errors log file, the messages are:[01/Aug/2005:13:15:01] failure (12991): Internal error: Unexpected error ...

jvm.dll error; Java will not open from control panel

369 byte By shreda at 2007-10-1 19:54:52
Hi,I am not too familiar with Java so bear with me. When loading some pages in I.E., they crash and I get an error message asking to send the error info to Microsoft. It mentions jvm.dll...also, I tried to open Java icon in control panel, but it will not open. I tried going to Sun home page, ...

NoClassDefFoundError for the DocumentRange class

515 byte By marie5210a at 2007-10-1 19:57:49
Hi, I am trying to launch the ireport application, which uses the xerces.jar, xmlParserAPIs.jar and xalan.jar. All these 3 jars are in the classpath, I checked it. But I still get a Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRangeI tried to put these ...

Encryption and class question

3207 byte By DancingFighterGa at 2007-10-1 19:59:31
Hello, I'm tyring to some encryption which will allow me to take charactes, put them in ascii, do some calucations, then decrypt them back to there orginal word. I have the algorithm that I want to use but I having some problems on a couple of things:1. I'm trying to read a line from a file ...

Serial version UID

1208 byte By mr47a at 2007-10-1 20:01:25
Hello everybody!Yesterday I have installed JDK 5.0. Before I was using JDK 1.4.2. Now with the new distribution, I cant compile one of my program which goes fine with JDK 1.4.2. Whereas in JDK 5.0, when try I compile it using javac command, It gives me the following message:Note: ...