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 = ...
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 ...
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
75 byte By
Shageya at 2007-10-1 18:35:15
Is it possible to remove records completely from a randomaccessfile?
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 ...
hiHow can i download the api for j2se. Checked the download section and i can't seem to find how to download it
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 ...
i open up java and it opens up but its totally blank all i see is a white screen whats causing this?
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.
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 ...
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...
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 ...
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
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) ...
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 ...
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 ...
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
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 ( ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 % ...
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 ...
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 ...
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...
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 ...
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?
HotSpot Virtual Machine Error, EXCEPTION_FLT_DIVIDE_BY_ZEROError ID: 4F533F57494E13120E43505002D4This application has requested the Runtime to terminate it in an unusual way.
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 ...
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: ...
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. ...
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 ...
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 ...
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?
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 ...
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 ...
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
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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: ...