Strange nullPointer ?

1670 byte By Qternocq_a at 2007-10-2 9:55:19
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 ...

Java working with Firefox 1.5

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 ...

msjvm

160 byte By gardener1951a at 2007-10-2 10:00:57
can't install sun java virtual machine because microsoft vitualmachine is in program files. how do I delete the microsoft one?gardener1951

few JIT questions

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?

Incompatible types

3382 byte By Qternocq_a at 2007-10-2 10:05:44
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 ...

File.exists() error?

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 ...

java.lang.NoClassDefFoundError: java/util/LinkedHashMap in WSAD

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 ...

"identifier expected" problem

1661 byte By albert85a at 2007-10-2 10:08:50
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: ...

Java Packager Error

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 ...

I cant compile my project : (

581 byte By elenajspa at 2007-10-2 10:09:33
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 ...

Java '.class' expected, simple but im not seeing it

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 ...

Compile with *.java and a single file

570 byte By c1515973a at 2007-10-2 10:15:39
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 ...

Compiling fails of a project with packages

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 ...

Unable to see Java 5 features from Doclet API

2574 byte By broneill2a at 2007-10-2 10:16:21
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 ...

New at java. 1 compiling error

402 byte By number00100a at 2007-10-2 10:17:00
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 ...

java problem

404 byte By frankzillaa at 2007-10-2 10:17:14
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 ...

help

218 byte By tanya265709a at 2007-10-2 10:18:57
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

comparing class files

298 byte By prasanna_developera at 2007-10-2 10:19:49
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

Can anyone clarify me about the api Object[] toArray(Object[])

255 byte By GeethaRajendrana at 2007-10-2 10:21:16
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 ?

using ant: class file has wrong version 49.0, should be 48.0

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 ...

How to avoid OutOfMemoryError

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 ...

java error blank page with an X

783 byte By charles1a at 2007-10-2 10:24:46
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 ...

Missing return statement!

1178 byte By Sarathy@TCSa at 2007-10-2 10:26:48
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 ...

JTapi Compilation

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 ...

source of java compiler

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.

About decompilers

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?

Error when attempting to load Games via Pogo etc can anyone help?

2930 byte By JonnyBoy1981a at 2007-10-2 10:33:57
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 ...

java.lang.SecurityException: Prohibited package name: java.util.logging

3010 byte By nail_a_hama at 2007-10-2 10:34:56
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 ...

JVM gives a Microsoft Visual C++ Debug Library error!! Help!

1639 byte By el_grecoa at 2007-10-2 10:35:02
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 ...

first compile issues error

407 byte By aronoffsa at 2007-10-2 10:36:42
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 ...

compiling?

475 byte By l2k882001a at 2007-10-2 10:37:00
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 = " ...

<identifier> expected error

5019 byte By NGRU-Kamikaziea at 2007-10-2 10:37:36
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 ...

Linux Error

887 byte By JoshHendoa at 2007-10-2 10:38:13
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 ...

error has been detected by HotSpot Virtual Machine EXCEPTION_FLT_DIVIDE_BY_

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 ...

problem running application

720 byte By bluecarrota at 2007-10-2 10:39:52
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, ...

hs_err_pid19504

717 byte By sweetpersiana at 2007-10-2 10:43:39
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 ...

Need for query about arraylist compiling error

294 byte By sat_hiyaa at 2007-10-2 10:44:34
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

javadoc run time error

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..

semi-colon error that i cant solve....

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 ...

Unable to find a javac compiler... HELP

2565 byte By naggworma at 2007-10-2 10:49:14
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 ...

dynamic variable name generation

649 byte By faraz4evera at 2007-10-2 10:49:43
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 ...

strange Exception

715 byte By NeedJavaa at 2007-10-2 10:49:44
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 ...

Help Needed

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?

Replace Method Help!

417 byte By surelykka at 2007-10-2 10:51:36
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 ...

Duke Dollars! worked all day, then threw an IOException

5258 byte By macofstepa at 2007-10-2 10:51:43
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 ...

output redirect?

165 byte By sunshine18a at 2007-10-2 10:53:28
cant we redirect the output of javac to a file? i've tried 'redirect operator' ( > ) but it didnt worked. is there any alternate...

output redirection?

165 byte By sunshine18a at 2007-10-2 10:53:30
cant we redirect the output of javac to a file? i've tried 'redirect operator' ( > ) but it didnt worked. is there any alternate...

Error Handling

268 byte By Kam_indiaa at 2007-10-2 10:54:19
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

how to make an executable file while compliling a java file?

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?

null pointer exception

493 byte By nishchal.bhata at 2007-10-2 10:54:44
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 ...