Hi there!Im new to this forum, so I dont know if i'm doing this correctly.I've searcher the forum, but couldnt find this problem (probably not the right search-words :P)This is my codeimport java.awt.*;import java.awt.event.*;import java.util.*;import java.io.*;//classpublic class database ...
527 byte By
donboia at 2007-10-2 10:00:40
I have no business being in this forum because I'm not even a developer, but I've exhausted all other avenues. Maybe someone can help me get Java (or javascript) working properly with firefox 1.5. I don't wan't to go back to IE.I have the latest version of java installed, it works fine ...
can't install sun java virtual machine because microsoft vitualmachine is in program files. how do I delete the microsoft one?gardener1951
232 byte By
nullera at 2007-10-2 10:01:15
i'm interested in tuning up my code for performancewhat are some compiler options for me to generate JIT codes?or JIT is already turn-on by default or do i still need to use "java -server" when i run it?
Hello everyoneI've got this problem:Int he API i read that linkedlist.get(int) returns the object located at the index of int. With that I tried to see what kind of object I was dealing with:System.out.println(linkedlist.get(1).getClass())It printed: class userWhen I tried the following:user ...
590 byte By
ben_06a at 2007-10-2 10:06:08
Hi, my problem is simple :File f = new File("..", "myFile");f.exists(); // returns false, whereas the file exists!!!But...File f = new File("..", "myFile");File fBis = new File(f.getCanonicalPath());fBis.exists(); // returns true...Someone has an ...
3250 byte By
KRiveraa at 2007-10-2 10:08:05
Hi ,I am using MySql 5 as the database and this is the error I am getting when I am trying to run my program on WSAD .I did set the classpath right .Both to j2se1.4 as well as MySqlJ Connector .It is loading the driver but its not gettting through to ConnectionCan anyone tell me what the ...
i'm newbie in java fieldi encounter the problem in my problem when i do the compilation. here are my error:sendMail.java:14: <identifier> expectedprops.put("mail.smtp.host", host);^sendMail.java:21: <identifier> expectedmessage.setFrom(new InternetAddress(from));^sendMail.java:22: ...
1939 byte By
Angiea at 2007-10-2 10:09:32
Hi I am trying to run a file through the Java Packager in jre 1.2.2 using the following command:C:\Program Files\JavaSoft\JRE\1.2>bin\java.exe -cp lib\rt.jar;lib\swingall.jar;lib\jaws.jar sun.beans.ole.Packagerand I keep getting the following error message:Exception occurred during event ...
Hello, (sorry for my bad english) i cant generate the .class files. I have this structure of folders:src/+Main.java+Folder1/+archivos.java+Folder2/+ archivos.java........What i'm tying is::>cd src >dir *.java /s /b> ..\\files>cd ..>c:\\j2sdk1.4.2_01\\bin\\javac.exe -g -classpath ...
1488 byte By
Cobbweba at 2007-10-2 10:14:37
I'm working on a project right now and need to list 3 parellel arrays. This is what my compiler error looks like. [quote] '.class' expected ')' expected [/quote]It's really bugging be, so here are the two methods. This is the code that my info is being sent to. This method is in a class ...
hello, I can compile without errors when i try "javac *.java"but when i just compile a single file like "Agents.java", the compiler cannot resolve the interface implemented. Is it normal or sth wrong with my java setting or any other things else?Thanks so much.Here is the compilation ...
504 byte By
Tembokea at 2007-10-2 10:15:52
I followed a tutorial to learn more about packages. At the end of this tutorial is an exercise (1b) which I am not able to compile. http://java.sun.com/docs/books/tutorial/java/interpack/QandE/packages-answers.htmlI don't understand whyc:\>javac \mygame\shared\Utilities.java --> works ...
The Doclet API was extended in Java 5 for getting information in generics, but I have been unable to get it to work. For example, calling ClassDoc.typeParameters and typeParamTags always returns an empty array./** * @param <X> The X */public class Test<X> {}And the Doclet is:import ...
When i try to run this code...class echoline{public static void main(String args[]){System.out.println(DummiesIO.getline());}}it comes up with this error...echoline.java:5:cannot find symbolsymbol : variable DummiesIOlocation : class echolineSystem.out.println(DummiesIO.getline());help ...
I have been having problems with sites that use java. One for example is pogo games. When I try to load a game my screen goes black and I have to reboot. I have uninstalled and reinstalled java 5 update 6 and the same thing keeps happening. I went to java in the control panel and just clicking ...
Hi.......i just d/l sun java.........problem is when i play ionthunder/atlantis2 games the java is downloading and there is a red bar at bottom of it. It only goes half way then stalls......what can I do? thanks
I have a java file called test.java and i compiled it using two different versions of java compiler. Now i want to compare the two class files generated by the respective compilers. How can i go about that? can anyone please suggest an idea for this?Thanks and
There are two apis in Collections framework to convert the Collection elements into an array 1. Object[] toArray()2. Object[] toArray(Object[])Can some one explain me what does the second api - Object[] toArray(Object[]) does ?
898 byte By
amberka at 2007-10-2 10:23:42
I'm using the command "ant ear" and getting this error:bad class file: className.javaclass file has wrong version 49.0, should be 48.0Please remove or make sure it appears in the correct subdirectory of the classpathFrom what I've read online, this specifically happens when you compile ...
485 byte By
Wenxiaoa at 2007-10-2 10:24:40
In my information retrieval project, I have to build a vector space model. So there are three arrays, i.e. a string array IndexTerm, a string array FileName[j], and a double array weight[j]. The total number of the files is about ten thousand, while the number of index terms might be twenty ...
Hey whats up guysIm having a bit of a problem trying to play a video game on the computers at work.If this were a normal computer at home or somewhere else I wouldn't be having this problem. Im just wondering how I can fix this or what I have to go into to allow me to play this game.So when I ...
Hi all, im sarathy from India, im new (at least to this forum) to java. When I try following code my pretty javac got angry and scolded me something like 揗issing return statement? It looks natural that any one of if block or else block will definitely be executed irrespective of my test ...
332 byte By
Jalpaa at 2007-10-2 10:28:39
I have downloaded jTapi 1.4 release.. It does not have any .jar files or class files.all the classes are interdependent on each other. How do i compile the package ?P.S : package hierarchy:javax \ telephony \ some .java files and more packages \ some more .java files and some more ...
224 byte By
Goka at 2007-10-2 10:30:09
Hi,Is there any public source code forsun.tools.javac package.And is it possible to use javac with multiple cpu.Since compiling 4.5 million LOC takes too much time with 1 cpu.Thanks.
147 byte By
Glammya at 2007-10-2 10:32:45
I just found out a perfect decompiler for Java..And a question arose in my mind - Can't something be done against those decompilers?
Ive reinstalled Java and tried the security settings but it seems to slow my pc down when I do that and takes over my internet connection - can anyone assist?Java Plug-in 1.5.0_06Using JRE version 1.5.0_06 Java HotSpot(TM) Client VMUser home directory = C:\Documents and Settings\David-c:clear ...
Hi,i'm trying to migrate from WLS 7 to 8.1.During the compilation process i get always an error concerning the package java.util.logging (at the end of this text).The output of the called command (from ant) is also here.Does anyone has an idea ?Best regards.A.[ejbc] Executing ...
Hello,I have the following problem:When I execute "java main" a window pops up with the following error:Microsoft Visual C++ Debug LibraryDebug Assertion Failed!Program: c:\j2sdk1.4.2_09\bin\java.exeFile: app3ds.cppLine:32 ASSERT(!afxContextIsDLL); // Should only be called by appsIf I press ...
I installed the JDK 5.0 Update 6 with NetBeans 4.1 Bundle onto my windows 2000 machine, created the HelloWorldApp program and compiled it successfully.However, when I rin it, I get the folowing error messages: Exception in thread "main" java.lang.unsupportedclassversionerror(Unsupported ...
anyone help me out with these syntax errors? tell me where my program is messed uppublic class Cube { public static void main(String [] args) { double height = 3.0; \\ inches double cubeVolume = height * height * height; double surfaceArea = 8 * height System.out.print("Volume = " ...
I am trying to finish up and submit a project for class that will take the persons name hours worked and rate and return the gross pay. I realise that its probably not right, and the fun si figuring out how to fix it. I managed to crrect everything except an error in the ButtonListerner can ...
I hope this is the right forum, if not, please move it :)I am currently in the process of learning java. I installed JDK and "Eclipse" on my ubuntu linux computer (debain based. Version 5.10). I am reading the book " Sams Programing with Java in 24 Hours" (www.java24hours.com). I am having ...
767 byte By
vanjaa at 2007-10-2 10:39:16
Hi everyone,i've got this error# An unexpected error has been detected by HotSpot Virtual Machine:## EXCEPTION_FLT_DIVIDE_BY_ZERO (0xc000008e) at pc=0x00bda829, pid=1608, tid=1232when i trying to use variables with type double or float.for example:public class AverageFruit { public static void ...
hi, i am facing some problems working from home here. i'm using textpad to compile and save my work. the strange thing is, there's no problem compiling the file, but when i run the java application, it returnsException in thread "main" java.lang.NoClassDefFoundError : method3as far as i know, ...
Notepad icon appeared on desktop: hs_err_pid19504Help please. Have no idea what to do. an unexpected exception has been detected in native code outside the VM.Unexpected Signal : EXCEPTION_PRIV_INSTRUCTION (0xc0000096) occurred at PC=0x6D2FA457Function=[Unknown.]Library=C:\Program ...
dear authors,please help to solve the problem .When i am compile the program using arraylist to add the strings using add() methos ,it gives the unchecked or unsafe operations errors. is there any solution please send me soonwith regardssathiya
277 byte By
xbox200a at 2007-10-2 10:48:07
when i run javadoc it comes up the error message "javadoc: warning - No source file for package diceGame.javajavadoc: error - no public or protected classes found to document"just wondering what this means and if u's have any advice to solve the problem..
1538 byte By
malslaa at 2007-10-2 10:48:20
I AM GETTING A "; expected" ERROR, AT THE "int calcpriority(timearv) { " LINE. AND THE "int AgeFac()" LINE ^ ^ I AM ASSUMING IT HAS SOMETHING TO DO WITH HOW I CREATED THESE TWO METHODS. (there are two arrows in the error message that point to the 1st bracket of each method)PLEASE HELP.import ...
I previewed the web page I'm makingwith dreamweaver but this error page appeared...type Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionorg.apache.jasper.JasperException: Unable to compile class for ...
Hi people,Is there any way of generating variable names dynamically in java in a loop? i.e.for(int i = 0; i<arrayLength; i++) {ArrayX.add(position, object)X++}Where X is 0,1,2...etc. so i would have Array1 with something in it, Array2 with something in it, Array3 and so on.This is just a ...
Hello, help me please. I packed my program to jar-file, but when i try to start it, i see next (strings "Driver loaded" and "Connection created" i print, when jdbc is Ok):С:\app>java -jar app.jarDriver loaded.Connection created!Uncaught error fetching ...
191 byte By
macgeea at 2007-10-2 10:51:31
i have a problem when i try to down load the new java it says internal error 2203C:WINDOWS\installer\235104.ipi,-214786960can any 1 here tell me what i need to do?
Hi guys,I'm having a bit of trouble with the replace method for my Java assignment. I'm supposed to get the user to enter a card number and suit and have the program print out that card with certain letters changed. But I'm having difficulties figuring out how I'm supposed to replace the ...
I've been working on this program for a few weeks on my iMac, my G5, and my friend's Pentium 4. It's been fine on all of the computers until this evening, when it threw an IOException and brought up the dialog box from the catch block on both my macs. I don't know whether it did the same ...
cant we redirect the output of javac to a file? i've tried 'redirect operator' ( > ) but it didnt worked. is there any alternate...
cant we redirect the output of javac to a file? i've tried 'redirect operator' ( > ) but it didnt worked. is there any alternate...
HiAny one can tell me how the Error Handling portion could be make good ,Because Problem arises in every area of programming .The Concepts which can help much in this condition or any books?Wait for ResponseThanks Kamal Pandey
127 byte By
m_n_suha at 2007-10-2 10:54:38
hi, I wanted to know if there is a way to create an executable file while compiling a java file. Can anyone help me plz?
am just a beginner to Web Services. I was following a tutorial about web services and i am using WSDP. I created two java classes one an interface and the other which implemented that. I complied these two classes. Now I am trying to create a war file of my package. But I am getting a null ...