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.

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

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

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

Problem with Swing

809 byte By Bluba at 2007-10-1 20:07:17
I decided to use Swing in my Program, but i cant import it because the javac says, that it doesnt exists. I have MacOSX, so i tried to install (with fink) all important Java-Packages:system-java - [virtual package representing Java 1.4.2]system-java-dev - [virtual package representing Java SDK ...

Compiler not found - folder "doesn't exist"

817 byte By IsmAvatara at 2007-10-1 20:12:59
This seems like a fairly basic problem.I just started using Java, and downloaded NetBeans J2SDK for Linux (Distro Suse 9.1). First step is to create "hello world" as always - not a problem. The problem came when I was told to compile."Type javac HelloWorldApp.java"Bash Shell returns: "bash: ...

importing packages

2047 byte By jjflyhighxa at 2007-10-1 20:18:35
hey, i'm new to java, so bear with me here. ^.^I'm working on a summer assignment for school. I've downloaded all of the files i've been told to download, and saved them in the files directed by my teacher. I've copied over the codes she's given us into JCreator, and I've posted the code ...

Java 5: explicit import ignored in favor of nested type in super-class?

1851 byte By shankar.unnia at 2007-10-1 20:36:39
The following code compiles correctly in 1.4, but fails in 1.5. Even though Main.java has an explicit import of "other.State", a plain reference to State is being resolved to the java.lang.Thread.State enumeration (new in 1.5) instead of the explicitly imported class, and the marked statement ...

Is casting needed when generics are used?

2673 byte By askJa at 2007-10-1 20:42:44
Hello guys?Here is the sample code:==== cast.java ======01 import java.util.HashMap;0203 public class cast {04public static void main(String[] args) {05HashMap<String, String> map = new HashMap<String, String>();06final String KEY = "key";07map.put(KEY, KEY);08[b]String value = ...

"java.lang.NoClassDefFoundError "Error message

408 byte By olua at 2007-10-1 20:43:56
Could someone please me out with regards to the below shown error messages? I successfully compiled a java program called "HelloWorld.java" but got the error messages below when i tried to run/execute the java program in question. How could i rectify this problem? I look forward to hearing from ...

Help getting script to compile

1104 byte By jpesolutionsa at 2007-10-1 21:02:30
I am teaching myself Java from a book called Java for ColdFusion Developers. The book states that it uses the J2SE 1.4 for development. I have downloaded the J2sdk1.4.0_04 installer from sun and installed it. I opened the command prompt and ran that test java -h from the command line and it ...

how to get compile errors i a file using ANT

224 byte By snehlsa at 2007-10-1 21:10:14
Hi,i used to compile my project using something like ....javac ......... 2> ERRORSNow i switched to ANT and can't find a way to get the compile errors in a file.Does anyone have a clue?

file java\lang\NoClassDefFoundError.class not found

519 byte By yosibotzera at 2007-10-1 21:11:01
i am trying to compile a class using jaavc 5.0 for midp using -target cldc1.0 and -bootclasspath which points to all the midp classeseven though the NoClassDefFoundError.class was introduced only from cldc1.1 while i am compiling my class the compiler generates the code with ...

Class can't find anothe class in same directory.

835 byte By allanquartza at 2007-10-1 21:15:21
HiI'm using javac and appletviewer and I keep getting this strange reaction.I've got a couple of classes, one extends the other. ie:class a.......class b extends a........Now when I compile b it says it cannot find class a. Both of these java files are in the same directory. Class a compiles ...

Problem in compilation with very large number of method parameters

677 byte By NEDian98a at 2007-10-1 21:17:20
I have java file which I created using WSDL2Java. Since the actual WSDL has a complex type with a large number of elements(around 600) in it, Consequently the resulting java file(from WSDL2Java) has a method that takes 600 parameters of various types. When I try to compile it using javac at ...

depencies while compiling

1993 byte By mokojina at 2007-10-1 21:26:10
hi allI have the following code that i want to compile via console:package ebriza.local.rmi;import java.io.*;import java.rmi.*;import java.rmi.server.*;import java.sql.*;import ebriza.rmi.*;import conn.db.*;public class PortageiroSessionImpl extends UnicastRemoteObject implements ...

Compile SWT program with GCJ

1979 byte By bog_tvaroga at 2007-10-1 21:30:46
I am using Debian Sarge with GCC/GCJ 4.0.1-2 installed. I create a simplest SWT program like this:import org.eclipse.swt.widgets.Display;import org.eclipse.swt.widgets.Shell;class Test {public static void main(String args[]) {Display display = new Display();Shell shell = new ...

Opens in IE but not in Appletviewer?

377 byte By allanquartzagaina at 2007-10-1 21:33:56
HiI have a applet that opens a dialog box from a frame. This works fine in IE and Firefox but it doesn't work in the appletviewer. Isn't the malfunction supposed to be the other way around? I spent hours trying to figure out where my code was wrong until I ran it in Firefox out of ...

Classes can't see each other

1445 byte By _PeterMa at 2007-10-1 21:41:35
Hi!I've got a problem which never occured before and which is probably caused by a little fail on my side and I just don't get it :-(ch nicht beachte.I have the following classes:raf.game.ClientAcceptorraf.game.PlayerBoth make use of classes of raf.netSo i compile raf.game.Player by calling ...

Cant Compile

217 byte By AquaBrothera at 2007-10-1 21:41:46
hello all, i'm a new user of Java, well, i instaled java in my computer, when i run the ms-dos and type "java" it finds it, but when i type "javac" he doest find it, what did i do wrong? i installed j2sdk. thx

Problem with compiling files in a folder

362 byte By snehlsa at 2007-10-1 21:46:14
Hi,i have a folder with several java files in it, if i compile every file with javac file1.java and so on, it works fine for every file except one.But if i try javac *.java, the compiler doesn't generate any class files. Why doesn't he generate class files for the java files, that work ...

class extends class at same package compile problem

198 byte By TMarya at 2007-10-1 21:47:58
Hi all,I have problem on compile, I guess I don't understand the classpath, hop got help!see http://forum.java.sun.com/thread.jspa?threadID=655377&tstart=0thank you!

Problem with ant.

695 byte By Sekha at 2007-10-1 21:53:32
Hi,I have installed ant 1.6.5 and weblogic 8.1. I have set the classpath as c:\apache-ant-1.6.5\lib\ant.jar;C:\bea\weblogic81\server\lib\weblogic.jar;.;I am getting the following problem when i run the ant build.Invalid implementation version between Ant core and Ant optional tasks. core: 1.6.5 ...

help to wite a prog...

473 byte By adi_Herzoa at 2007-10-1 21:54:32
Hi, I am trying to programm a simple thing. I want to have a mask with 2 Buttons ( one with +1 & other -1 ) & 2 fields (one for read other for write ). With read i want to be able to read a variable ( var1 , which i have ) , with write i want to write var1. With the butto +1 it has to ...

Weird uncheked warnings when creating Map<String,String>[] array

932 byte By harsharamesha at 2007-10-1 21:54:36
Hi All,I am facing a rather funny situation here. I have a Map[] which is typed as Map<String, String>[] .. now if i have the following code: ... Map<String, String>[] m = new Map[size]; ...I get the following warningfound: java.util.Map[]required: ...

static method overwrite

830 byte By zogtheboguea at 2007-10-1 21:55:16
Hi allI just realized that the 1.5 compiller changed the method overwritebehavior. Now, something likepublic class Main { private String s; Main(String s) {this.s = s; } public Main getOne() {return new Main("Main"); } public static class Sub extends Main {public Sub(String s) { super(s); ...

why always cannot find the class file when trying javap

131 byte By Wuxi7227a at 2007-10-1 22:15:41
I try to javap a class file,Though I set CLASSPATH already. still error :Could not find MyHello.class. Any body help?

Javac: compiling java file only if necessary

317 byte By motzusfaulusa at 2007-10-1 22:17:07
hello,i have the problem that i want to compile a java file only if there are any changes...i don't want to use any other "tools" than the compiler (javac) but no third party apps...is there a solution for my problem...perhaps with a little shell script? or is there an easier solution? thx for ...

Application

303 byte By vaiyenvonga at 2007-10-1 22:28:09
I got a message when I use the Java the class file.the wrong message said that no class Def found error.Can anyone help me to solve the problem?Thank you for a lot.I think it is linked to the classpath problem?but how to adjust? I use the JavaJ1.5.0_04 ...

Trace class dependency at compiletime

786 byte By M_Hjortzena at 2007-10-1 22:36:20
Hi!I am experiencing an irritating problem - some packages are automatically compiled that I haven't specified, of course because something that I am compiling references these other packages.The package i am compiling (using ant) is meant for a plugin 1.3 enabled browser and some of my other ...

Incompatible types error with ANT build, compiles fine with MyEclipse

964 byte By javvvaa at 2007-10-1 22:38:11
The code below compiles fine with MyEclipse but does not compile for Ant with incompatible types error.incompatible types; inferred type argument(s) ? do not conform to bounds of type variable(s) [javac] found: ...

C prompt doesn't work

132 byte By dunlapfa at 2007-10-1 22:38:12
When I use textpad I can compile java and Run app just fine but at the C prompt I it says it can't read it. can anyone help.

wanna change the environment variable at redhat 9

507 byte By mr47a at 2007-10-1 22:39:06
i have Linux redhat 9 distro... my JDK 5 resides on the following directory /usr/java/jdk-1.5.0_04every time i compile the my java program i have to specify the full path into the shell like this:root@localhost# /usr/java//jdk-1.5.0_04/bin/javac MyJavaFile.javaotherwise the shell compile with ...

.jar includes jdbc driver but doesn't work

1019 byte By mglowackia at 2007-10-1 22:46:44
Hi I'm quite new with Java. I've just created my first app in java, it's some kind of CMS. I have to give to my friend who can only install JVM and I can't set up his computer, because he lives in other city. What's the problem then: I tried to compile (build) complete file with jdbc ...

brand new boy having probs with first program

274 byte By llamaa at 2007-10-1 22:47:53
Brought a book, down loaded the zipped JDK from web site, unzipped and can not find either javac.exe or java.exe. Used note pad to write first program as per book but could not get it to run.tried to go through comand prompt but still no joy.Please help

How to create a .exe file with eclipse 3.1

544 byte By CaptainGhosta at 2007-10-1 22:53:37
Hello every body. I want to know how create a .exe file with eclipse 3.1. A friend tell me it's possible but he forgot how ! So I ask my question ay you, how can I do that? I think it's like in Dev-C++, when he compiling the programme he createa .exe file but in eclipse, i don't know how do ...

error running...VERY URGENT, PLEASE

1025 byte By juaasloa at 2007-10-1 23:04:07
Hi everyBody.I am programming a GUI with NetBeans 4.1, which uses javax.comm API to use serial port of computer. I have finished my GUI and it always run OK when I use NetBeans. I installed properly the API and I selected the API to be used also in NetBeans. Then I created a .jar file to run ...

compiling

220 byte By drake01a at 2007-10-1 23:18:50
Upon compiling a piece of code, the compiler gives me an error message saying it cannot recognize a file (javax.comm), even though it is in the Java folder. is there something I need to add to the compile command?

using classpath

154 byte By drake01a at 2007-10-1 23:19:12
when compiling a piece of code, the compiler tells me a file imported in my code does not exit. How do I use classpath to make the compiler see it?

serial port communication

184 byte By drake01a at 2007-10-1 23:29:00
I have a device connected to my serial port, and I want to send a command to just as you would in say hyperterminal. Is there a function that does this, or how do I go about it?

configuring build.xml for struts in Eclipse

3463 byte By vuckoa at 2007-10-1 23:42:50
Hi guys! I need some help! I am trying to run "struts-examples" from eclipse3.0.This is my build.xml file :<project name="Struts Example" default="main" basedir="."><!-- This is a basic build script, only the minimums here --><!-- Tell ant to use my environment variables ...

Getting strange error message when using Scanner Utility

218 byte By 7345953592232754460a at 2007-10-1 23:45:09
i'm getting the error message:"cannot resolve symbol class Scanner"I'm doing some computer science homework and need to compile this and work on it now can anyone help me out? Love always, Nicole

error with NetBeans JAR file

736 byte By JonathanMunza at 2007-10-1 23:51:49
I wrote a program using the NetBeans IDE, the program runs fine with no errors with tested in the actual environment. However when I build the project and create a JAR file I am unable to run it. Double-clicking the file brings up this error:Java Virtual Machine LauncherCould not find the main ...

Messing with JavaCompiler

622 byte By gregman_pla at 2007-10-1 23:56:51
I have a following problem :I need to put into webservice a method that at runtime compiles custom source code and executes it.Compilation is done by calling JavaCompiler class that I've rewrote to make compilation from/to memory and put error messages to custom stream.During compilation some ...

postgresql-jdbc on Suse Linux

1083 byte By gingerbraida at 2007-10-1 23:57:30
Hi,I am writing a Java Swing application on Suse Linux and want to add Embedded SQL to it. The application should interact with a PostgreSQL database running on my local machine. The compiler complains that it cannot find the org.postgresql package included in the code. I'm guessing the ...

Runtime problem , please help,

859 byte By kane0086a at 2007-10-2 0:03:49
public class execInput {public static void main(String Argv[]) {try {String output;String[] cmd ={"c:\\xpdf\\pdftotext.exe", "c:\\pdfFile\\dispatching.pdf"};Process pr = Runtime.getRuntime().exec(cmd);}catch (IOException e) {System.exit(0);}}Above program is run in Ms-DOS : ...

package does not exist

3858 byte By u53r_n4m3a at 2007-10-2 0:04:25
i just started java so sorry if these is such a newb question. i have searched google, i found answers but they didn't work. i made a class that will enable me to input from the keyboard.input.class:import java.io.*;public class Input{private static BufferedReader inp = new BufferedReader(new ...

Could you explain me this error please?(Linux)

146 byte By Gantua at 2007-10-2 0:05:02
Note: smtpClient.java uses or overrides a deprecated API.Note: Recompile with -deprecation for details. OS :Linux Fedora Core