Exception in thread "main" java.lang.NoClassDefFoundError:

1335 byte By chiller at 2007-9-30 23:23:20
Hi,I have 4 different directories that have java files in them. I compile them individually using the classpath option but when i try to run the program, it gives me the following error:Exception in thread "main" java.lang.NoClassDefFoundError: TVUI/xmlviewer/XMLviewer (wrong name: ...

OutOfBounds Problem

4172 byte By p595659 at 2007-9-30 23:25:00
Hi when I compile this code the process is completed but I am getting a OutOfBounds Exception when it is run. Error Message:ArrayIndexOutOfBoundsException: 3at Test.outputMessage(Test.java:85)at Test.outputMessage(Test.java:26)how do I fix this message?import javax.swing.JOptionPane;class Test ...

javac started being super slow today (5-10 mins for Hello World)

217 byte By kdcampbell at 2007-9-30 23:28:56
javac started being super slow today (5-10 mins for Hello World)I'm running on Windows XP and I've done virus/spyware checks. Does anyone have any suggestions for me to track down this problem? Thanks!

"Build.xml file not exist"

660 byte By mohan_nara at 2007-9-30 23:29:38
Hey Guys, i am currently involving in a servelet project (RendreX). i want to install apachi ant as a prerequirement. i am using windows 2003 server. I already downloded latest ant version and apache tomcat4.0. Also i have set all the class path,ANT-HOME(C:\ANT) and other relevent paths. But ...

Why won't /t work in JOptionPane?

5688 byte By p595659 at 2007-9-30 23:30:57
Hi I have made a program but for some reason \t won't work so my output is messy in the JOptionPane. What am I doing wrong?import javax.swing.JOptionPane;class Signal {public static void main(String[]args){//Declare variablesint sigNo=getInt();int SigVal;int i,j;int [] Signals=new ...

Compiling from DOS Prompt

633 byte By Hasnaa132a at 2007-9-30 23:49:04
I am a student and I am attempting to run programs from my home computer.I installed j2sdk1.4.2_04, the user variable is set to .;C:\j2sdk1.4.2_04, the class path includes C:\j2sdk1.4.2_04\bin.When I attempt to compile a servlet from the DOS prompt, I get the message"javac is not recognized as ...

Running a .java file

242 byte By c_boom_4250a at 2007-9-30 23:52:46
hi. i am new to programming and i only know how to run a program through the eclipse compiler. how can i run my .java files in another program. is it possible to run it in dos? do i need to download the java runtime environment? thanks

Help: "illegal start of expression error"not REALLY an extra bracket?

1917 byte By casealiciaa at 2007-9-30 23:52:53
I am recieving an illegal start of expression error on a program I am just begining to play with...possible there are other mistakes within the program, if relevant feel free to help :) however my primary concern is this one error message i recieve when trying to compile what I currently ...

Performance of javac in 1.5 vs 1.4.2

844 byte By samueltoa at 2007-9-30 23:57:46
Our tests indicate javac in JDK 1.5 seems to be quite a bit slower than JDK 1.4.2. I have a test that tries to compile 100 Java files using 1.5 and 1.4.2:#Results from JDK 1.5 javac% /usr/bin/time /dx/oracleom/jdk1.5.0/bin/javac *.javareal40.7user1:01.3sys 3.2#Results from JDK 1.4.2 javac% ...

close window....

1648 byte By fisyaa at 2007-9-30 23:58:05
i have a problem here.....i have a jsp page where user can download file....the pop-up windows for download will open together with an empty jsp page..what i want to do is when user click to save the file.....and after saving the file...the empty page will also close...how to do this.....below ...

problem in compile from a package

346 byte By mbalaja at 2007-9-30 23:59:41
dear friends,i'm using tomcat5 and trying to compile manually from the console through package wise.I have three packages. one package has been imported to other package using the import statement. when i compile the package it throws package doesn't exist error.any ideas.thanx in ...

Why two types in String ?

289 byte By s.shanavaza at 2007-10-1 0:05:25
Hai,What the difference between following two statementsString example = "This is a string.";String example = new String("This is a string.");Thanks in advance,Shan

how to add item to array?

265 byte By moqmoqa at 2007-10-1 0:05:30
hi all, i had manually define a string array as below, but i need to add some more items to the array dynamically, can anyone help ? String [] words = { "Italy", "France", "Hungary", "Austria", "New Zealand"};

invalid method declaration; return type required

1413 byte By Blackout.Xa at 2007-10-1 0:15:34
started java a few hours ago, starting to grasp concept (I think)....not too sure how to fix this...need some help. Heres my code:import java.lang.*;import java.io.*;public class variables {/* basic equation is y = mx + b y is y value m is slope of line x is x value g is second x value h ...

ant print all properties

132 byte By delattrja at 2007-10-1 0:25:55
Hi,Is there a way with ant to print all properties (environment and locally defined ones) ?Thanks,Jerome

not abstract and does not override abstract method error...

4247 byte By Blackout.Xa at 2007-10-1 0:28:32
Line 20: TestFrame is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListenerpublic class TestFrame implements ActionListener, ItemListener {^This is the error I receive after compiling my program...here is the ...

What is wrong with my code?

9599 byte By p595659a at 2007-10-1 0:32:33
Hi,I am making a hangman program using an array to hold the words but it keeps saying I have guessed the wrong charecter when I have got it correct. What is wrong?import javax.swing.JOptionPane;class Hangman {public static void main (String [] args){boolean dead=false;boolean charCheck;int ...

does anyone control which compiler version is used?

518 byte By asjfa at 2007-10-1 0:43:10
hi, does anyone control which version of javac/jikes et al is being used for large projects?as I understand it its very unlikely to make a difference modulo the recent bugs in the 1.5 compiler?ie if you don't specify the --source or --target flags then not a lot can go wrong?in summary, is the ...

Compiling problem

918 byte By eycha at 2007-10-1 0:47:46
Hi,I have a problem to compile the api of CLDC 1.04. The error that I get is :[search path for source files: []][search path for class files: [C:\Program Files\Java\jdk1.5.0\jre\lib\ext\dnsns.jar, C:\Program Files\Java\jdk1.5.0\jre\lib\ext\localedata.jar, C:\Program ...

ArrayIndexOutOfBounds

4467 byte By p595659a at 2007-10-1 0:53:52
Hi, I have tried writing this program for a homework but I am getting an ArrayIndexOutOfBounds error when it is run. I am rrelatively new to java so can anyone tell me what I have done wrong?import javax.swing.JOptionPane;class BankAccount {public static void main(String[]args){int ...

Javac errors in command line

869 byte By HMVanBemmelena at 2007-10-1 1:03:47
I am using sdk 1.4.2 and Netbeans 3.6. with Windows XP-Pro. I can easily edit , compile and runa small program through NetBeans. However, if I try to compile or edit it in the command line with the 'javac Prgramname.class' command I get a "can't read the file" error. I get the same result if ...

Xcode and Images

959 byte By dbeaudrya at 2007-10-1 1:04:40
I am trying to add an image to a JButton, which is not complicated. However, I am tring to make the icon reference relative to the build files so that .jar file can be located anywhere and the image still shows. When I put the full path to the image it works, but this is not acceptable because ...

compiling java package class referring a default package class.

1237 byte By sandip_2001a at 2007-10-1 1:10:25
I am trying to compile a java class having a package defination referring a java class with a default package.The code for the default package class is .public class Test{.public static void main(String[] args){System.out.println("Hello World!");} } This class compiles fine. I have another ...

Linux - j2sdk1.4.2_06 can't set path/classpath

1137 byte By tealra at 2007-10-1 1:19:42
I am struggling to get my java set up to write, compile and run some java programs, and honestly being a linux newbie the docs for such are somewhat confusing..I am trying to break this down as simple as possible.-I am logged into Linux as root.-then download the j2sdk1.4.2_06 in the /USR/ ...

compiling java and C++(Basic anything)

132 byte By hell1234a at 2007-10-1 1:25:28
is it posible to have some of your program in half java and half C++ or maybe BASIC if so how would you compile this program?

how to get the basics of j2ee

201 byte By ravi_11a at 2007-10-1 1:25:56
It will be great help for me if anybody tell me how to start learning j2eeso i can go step by step...means writing hello world program and then compiling it , everything in steps by steps

Decompile

363 byte By DeltaCodera at 2007-10-1 1:26:54
I wrote an application that connects to a database. The database location/username/password may change so I put them in an encrypted properties file. The encryption key is hardcoded into the application.Can someone decrypt the application and get the key? If so, is there no way other than ...

using javaC within java, fetching building errors

265 byte By must41a at 2007-10-1 1:28:43
I use the class com.sun.tools.javac.Main to compile java code from my app, however building errors are just printed on the prompt, how can i get my program to read them? ( i even tried changing System.out with System.setOut and it didn't work )thanks

Error while compilation with JDK 1.5.0_01

985 byte By Ahmed_Ayuba at 2007-10-1 1:48:22
I am porting my code from JDK 1.4.2 to JDK 1.5. In my code i am using a jar file that refer to javax.vecmath package from Java 3D API. The build was always successful with JDK 1.4.2 (using Ant) but with JDK 1.5 I am getting the following error message:[javac] ...

Class or interface `sun.security.action.GetPropertyAc tion' not found

1062 byte By 123_smilea at 2007-10-1 1:52:41
lass or interface `sun.security.action.GetPropertyAction' not found in import.import sun.security.action.GetPropertyAction;i get this when trying to compile: javac HelloWorldApp.javahere is the code:/** * The HelloWorldApp class implements an application that * simply displays "Hello World!" ...

javax.servlet.jsp does not exist

831 byte By OneMist8ka at 2007-10-1 1:53:25
Hi,I'm having difficulty compiling a simple java class. The eror message is on an import javax.servlet.jsp statement. The specific error message is:package javax.servlet.jsp.tagext does not existThis is just a simple tutorial class from a J2EE book. I am confused if the servlet-api.jar file is ...

compile error in j2se1.4.2 while pass 1.4.1

654 byte By tonyiisa at 2007-10-1 1:58:41
Hello,I just installed j2sdk1.4.2_06, try to compile some source file, I got a lot error although these source code is compiled in j2sdk1.4.1, for example,c:\j2se\src.zip(java/long/Object.java):20:class Object is public, should declared in file named Object.java(Source ...

Standard java libraries "do not exist"

800 byte By timrba at 2007-10-1 2:00:43
I'm fairly new to Java programming, and, well, programming in general. I've been building small, simple java programs for a couple of months now.But all of a sudden (after a short period of not coding anything) I tried to write a program with that imported a standard java library ...

Recompile with -deprecation for details.

322 byte By mrubioa at 2007-10-1 2:19:19
I磎 using NetBeans 3.6 and I have the next messagge with a java class:UserConfigurationDialog.java uses or overrides a deprecated API.Note: Recompile with -deprecation for details.Finished UserConfigurationDialog.Someone could help me to resolve this problem.ThanksMartin ...

Problem accessing a class Constructor from extended class ?

4029 byte By brokolyxa at 2007-10-1 2:22:58
I have a JTextArea that I am trying to access by overiding the constructor in the extended class upon ActionListener event, it doesent seem to do anything?I must be missing something obvious ... please help with any ideas, thank you.// CLASS aibot public class aibot extends JInternalFrame { ...

Class path problem for jdk1.4.2

775 byte By HemilShaha at 2007-10-1 2:22:59
I am compiling some java files using Make utility.The Make file contains CLASSPATH variable set to some jar files separated by colons.But it is not able to access one jar file stated under the CLASSPATH variable in jdk1.4.2 whereas for jdk1.3 that is not the problem. The jar file stated under ...

Packages & compiling

498 byte By aiona at 2007-10-1 2:24:32
I 'm having some problems with compiling a package. Some of my classes have references to eachother : class A has a B object and class B has a A objectand i can't seem to compile the program top-down nor bottom-up because of the double reference. Can someone tell me how to compile this.I ...

javah -classpath

445 byte By jms_123a at 2007-10-1 2:29:38
Hi,Didnt find the correct topic to post this query ... Kindly adjust ...When I invoking javah with -classpath option, javah is unable to find classes in different directoris. It is unable to locate the classes when colon seperated path is given with -classpath optionjavah -classpath ...

source 1.5 and target 1.4

407 byte By christo4711a at 2007-10-1 2:30:02
I would like to use the new features of version 1.5 but want to allow the code torun under version 1.4.Is it possible to compile 1.5 java source for a target machine 1.4 ?When I compile with javac -source 1.5 -target 1.4 I get the message: target release 1.4 conflicts with default source ...

invalid path error

166 byte By m0nkydudea at 2007-10-1 2:36:08
when i compile it says process complete but above it it says: Error : Invalid path, \bin\javac.exe -classpath "C:" -d C: C:\game1.java" how do i fix it?

Package structure compilation

936 byte By javaprofea at 2007-10-1 2:41:58
Greetings Of The Day !!!I want to compile whole application having package structure as ...

Executing any type of java

1342 byte By Cyrogenica at 2007-10-1 2:43:19
Hello all.I'm not knew to programming, but this is a new one on me. I've never used Java before, instead I used C#, but I'm in a class on java, so I decided to install NetBeans IDE and Java 1.5.0. No problem.So my program runs FINE in the IDE, no errors, anything. But my problem is, I can't ...

process of getting data with in time in Online Cricket Score Card Applicati

370 byte By pochammadhu@hotmail.coma at 2007-10-1 2:51:15
Please any one tell me the process and required databases for creating application like Online Cricket Score Card. I think they are using XML and Some other database like oracle as backend databases. IS it right? If, please give me the process of storing data and getting it. I am doing one ejb ...

*.jar file association setting

172 byte By Jamwaa at 2007-10-1 2:55:47
I use J2Sdk1.3.1_04 with Windows XP professional. I have a problem with the *.jar file association setting and I need someone's help on how to correct this. Anyone?

Anyone Know how to compile a WSDL File

45 byte By ekim23a at 2007-10-1 2:55:55
Anyone Know how to compile a WSDL File

Eclispe/IntelliJ/JCreator crashes while compiling project !!!

413 byte By AragornXa at 2007-10-1 2:56:24
I have just installed fresh new windowsXP with SP2. Then Java JDK 1.5_01. Next 3 IDE's Eclipse 3.1M4, IntalliJ 4.5, JCreator 3. I have very simple project with about 10-20 classes using JConnector(MySql JDBC). When i press compile button in each ide - ide crashes with no error message. Is ...

Java performance

260 byte By Checoivana at 2007-10-1 2:59:06
I've finished my program in jdk1.4, but , i' m aware of the JRE 1.5 better performance , but will it make a difference in performance , making the class runtime with using the 1.5 javac or using the old 1.4 javac, even though it will run with JRE 1.5?

How to generate servlet from JSP? please help me

360 byte By maweed@voila.fra at 2007-10-1 3:11:21
in fact ,i build tool to generate gxl from source code java ,(but sometimes java applications include jsp ) so as i know when we using tomcat , jboss or another web server ,it will generate a servlet from jsp,i wonder how to generate this servlet without using any web server, can i write a ...

Unable to set path

158 byte By upadyayaa at 2007-10-1 3:15:08
I got following error while trying to run HelloWorld program. Please help. Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld

NoClassDefFoundError when I try to run my java app

477 byte By Mikesd0a at 2007-10-1 3:22:42
I get a 'NoClassDefFoundError' even though I specify the path to the jar file (ex. /home/suni/klib) containing the class that was not found. Then,when I replace this path with the jar file (ex. /home/suni/klib/xx.jar) and not just the path to the jar file, in the classpath, then the class ...