java.lang.NoClassDefFoundError:

296 byte By its_malebolgiaa at 2007-9-29 14:12:04
I'm trying to use NetBeans IDE to program java on my XP machine. However after I compile something and execute it I always get this error: (java.lang.NoClassDefFoundError:). I was wondering why this is? I've compiled and executed them correctly on my schools server but not here at home?

Error: Cannot reduce the visibility of the inherited method from object

27 byte By zpellmana at 2007-9-29 14:16:41
What does this mean?

Difficult problem?

2952 byte By john_janellea at 2007-9-29 14:19:24
//This is a connectionmanager.//And i want to read data from DbInfo.properties//How ever "InputStream in " is always showing null to me.//What should i do?package com.bulletin.jdbc;import java.sql.*;import java.util.Properties;import java.io.FileInputStream;import java.io.*;public class ...

Exception is thrown but exception.getMessage() is null

237 byte By verma_rajnisha at 2007-9-29 14:23:23
Hi,I am wirting a code in which an exception is thrown, I catch this exception in the catch block, but when I display e.getMessage() it displays null.....Can any body help in telling why....ThanksRajnish Verma

trying to add an icon to a JPanel!

319 byte By dbxpetea at 2007-9-29 14:28:09
After declaring the icon w/ : ImageIcon icon = new ImageIcon("logo2.gif");and the JPanel is added to the content pane, the error I am recieving is w/ this peice of code:jPanel1.add(icon);The error is: cannot reslove symbol, jPanel1.add(icon);^I'm nit sure what the deal ...

How to create a new line [ Newbie ]

406 byte By sieg1974a at 2007-9-29 14:29:01
Hi,how can I tell javadoc to create a new line? I want the following documentation to be divided in many lines in the way I wrote it, but I don't know hoe to do it./** * This provides methods to manipulate ASN objects. * An ASN object has the following format: * Identifier, * Length of the ...

Java Plug-in not installed properly

606 byte By whommbata at 2007-9-29 14:31:29
Anytime I go to a website that requires a java plug-in I get this message "Java plug-in 1.4.2 is not installed properly" Then it will say "Jre collision" where the java should be. When I click on Java Plug-in, in the control panel it tells me that "The system cannot find the registry key ...

General Exception Handling

869 byte By nemomena at 2007-9-29 14:32:53
Hello. In my applications I usually have a try catch(Throwable) block surrounding all the top code (the code in main()) to log and report errors and exceptions that is not caught anywhere else, and to have my application exit in a controlled way. But I recently noticed that exceptions thrown in ...

java.lang.ArrayIndexOutOfBoundsException: 1687029

2940 byte By postipa at 2007-9-29 14:34:56
Hi,i become the following Exception, when i compile with JBuilder, cansomeone describe me, what the Problem is ?An exception has occurred in the compiler (1.4.1). Please file a bug at the Java Developer Connection ( http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for ...

Javadoc Warning

238 byte By Norma_Caballeroa at 2007-9-29 14:42:03
Hello Everyone...I keep getting this warning message when I generate my Javadoc...Class org.apache.regexp.RE not found in import.It happens with apache and javax classes. Does anyone know how can this be fixed?

MalformedURLException on re-direct

2324 byte By quelrata at 2007-9-29 14:42:28
I open a connection to a URL, try to get the content type, and get a MalformedURLException. It appears to me that the sun.net followRedirect function reallydoesn't like the location: (redirect) field in the HTTP: header.The location field returned by the server is:location: ...

Installation Error

243 byte By LordBritish2a at 2007-9-29 14:43:44
I am having trouble installing JAVA. It gives me this error: "Error 1311.Source file not found C:\Downloads\JAVA\try\sd142000.cad. Verify that the file exists and that you can access it."Do you know how to fix the problem?

java.lang.NoClassDefFoundError

7335 byte By dildolitoa at 2007-9-29 14:45:40
guys- this is an assignment for school and i bet there is something that u may consider soooo stupid but i am a beginner and i really dont know how to proceed....i have installed tomcat 5.0.12 on my windows xp.my java is 2se .i have created several serlet pages. in one of them i am suppose to ...

javaw.exe error

414 byte By mmuscsa at 2007-9-29 14:48:45
I was trying to install some software on my computer with a CD. About half way through the installation I get the following error message:javaw.exe has encountered a problem & needs to closeThen it closes and that is the end of the installation. Any ideas what is causing this problem? This ...

Unusual ClassCastException

1095 byte By austinpuravidaa at 2007-9-29 14:48:49
Hello all;I am getting a rather interesting ClassCastException fior DataSource tied to a SQl Server connection. I am using the Opti driver, and setting up the connection using the *-ds.xml style settup file. Also, am running ver 3.2.1 of Jboss with Tomcat, compiled and ran on the 1.4. jdk/VM. ...

Socket error

3726 byte By kiwuji001a at 2007-9-29 15:14:45
I am developing an application that transfer files amoung peers, client/server , using socket. The requerement for the project is to send request to other peer using xml file. Several things are happening that's driving me crazy. Here are the scenerios:1. When I connect to my own peer (setup ...

cannot resolve symbol error - SOS call

865 byte By jyothirmaia at 2007-9-29 15:16:08
Hello,I have two packages in two seperate directories - enc and util. Its like this:Class#1: (in dir 'enc') myTest.java--package com.xmlsec.enc;// some import statements...import com.xmlsec.util.XMLUtility;public class myTest(){... XMLUtility myObj = new XMLUtility(...);...}Class#2: (in dir ...

Java Errors

373 byte By O_ptika at 2007-9-29 15:16:31
Exception in thread "main" java.lang.NoClassDefFoundError: Testpublic class Test{ public static void main(String[] args){System.out.println("Test");}}the program compiles properly, but when I try to run it it tells me:Exception in thread "main" java.lang.NoClassDefFoundError: Testcan anyone ...

overview and package frames not present in index.html

734 byte By JLuisa at 2007-9-29 15:18:28
I launch the Javadoc tool with:javadoc -sourcepath ..\src\ -d %DIR_JAVADOCS% -author -package -use -version %SOURCES% -classpath %CP%(where the %XXX% are environment variables properly set).The problem is that the packages frame and overview frame doesnt appear in the resultant index.htmlAlso, ...

variable may not have been initialized error

626 byte By peterakasalta at 2007-9-29 15:19:16
Hi..can anyone help me to understand this error..i hava a character variable delared in my program like thischar grade ;I have some if statement that go something like thisif(avgmark >= 70)grade = 'A' ;if(avgmark >= 60 && avgmark < 70)grade = 'B';When I try to prrint what ...

Sun Package List Utility ?

351 byte By deepooa at 2007-9-29 15:19:37
The link below talks about the Sun Package List Utility, but could someone tell me where to find the utility jar/classes that are refererred to here ... (docutil.PackageList et. al.) http://java.sun.com/j2se/javadoc/doccheck/docs/PackageList.htmlI got to this page from the 'Sun Doc Check ...

URGENT: Catch a NoClassDefError within a method at runtime?

1525 byte By acidnukea at 2007-9-29 15:20:51
Hi there,I have a Class A that creates an instance of Class B in method mA().At compile time, Class A and B are both included in the CLASSPATH.However, at runtime, Class B is removed from the CLASSPATH resulting in a NoClassDefError as expected.NOTE: How do I gracefully handle a condition ...

Installing and compiling/running javaservlets

1459 byte By ronaldjbicha at 2007-9-29 15:21:31
After installing the JSDK package to run java servlets is there anything else you need to install?I keep getting the following errors when I try to compile my IsItWorking.java script:www/servlets> javac IsItWorking.javaIsItWorking.java:57: package javax.servlet does not existimport ...

Using jars for sourcepath

256 byte By rockrepa at 2007-9-29 15:21:34
Is it possible to supply a jar file for the javadoc sourcepath argument? My attempts with this result in no source files found (jdk 1.4.2). I'm trying to exercise a custom doclet programmatically without having to explode the source first. Thanks.

how do i get rid of this exceptions...?

201 byte By bUzz2ua at 2007-9-29 15:22:30
Hello every1.....can any body plz help me out ...when does the below exception arise and how do we get rid of it" ****** IllegalMonitorStateException **** "plz..............

Do I always need to use try/catch? [ newbie ]

731 byte By sieg1974a at 2007-9-29 15:26:24
Hi,I have a method called methodOne that throws ExceptionXXX, and another method called methodTwo that uses methodOne and also throws ExceptionXXX.public static methodOne() throws ExceptionXXX{...}Does methodTwo need to use try/catch to catch ExceptionXXX from methodOne, ( like the following ...

how to omit package names?

566 byte By MarcusWoletza at 2007-9-29 15:31:23
Hello all,I'm new to javadoc and trying to format my classes sames as thesdk doc. The problem is that in the sdk doc on top of the pagethe tree shows the classes with package names, and in theparameter lists etc. the package names, e.g. for "String",are not shown. How can I do this? I want to ...

printing all docs in windows

266 byte By hirnstroma at 2007-9-29 15:37:11
I'd like to print all generated doc-files under windows (which is 324 files in 32 folders).I would find a way in linux like "find ./ -name *.html -exec lpr {} \;" but how may I do this with windows 2000?No - I dont't have this MIF - Framework.

class DataSource is public, should be declared in a file named DataSource

863 byte By bullzzza at 2007-9-29 15:38:17
I am using Sun One Studio 4 update 1, Community Edition. I have been trying to write this Account application, but I have been constantly getting this error:C:/Program Files/s1studio/ce/lib/ext/jdbc20x.zip(javax/sql/DataSource.java) [32:1] class DataSource is public, should be declared in a ...

Fields not rendering in Doc

356 byte By graedera at 2007-9-29 15:39:05
I have a class with javadoc comments at the class, field, and method levels. Class and method comments are generated fine, but not field. Right after the class declaration I have a comment, then I declare a variable. Not sure what the problem is. For example:public class someClass {/*** ...

Key binding issue/ Accelerator key

1656 byte By javedalama at 2007-9-29 15:45:39
Hi All,Here is my code to assign accelerator key to a menu item, so that when I press Control+Left Arrow key, action associated with leftArrow menu item get executed. And this works perfectly fine.JMenuItem leftArrow = new ...

how to deal exception using try{}catch{}

150 byte By iamsnowgirla at 2007-9-29 15:49:57
I don't know which is a good way from catch a exception and throw a exception, I means that how to use exception in java,catch ? throw?

Prime Numbers

108 byte By peterakasalta at 2007-9-29 15:51:45
Can anyone post a reply with a simple program to find the prime numbers in a range given by the user?

what is the error?

1651 byte By student14a at 2007-9-29 15:56:31
i write the same progran burt at the text field but also i have an error in container:import javax.swing.*;import java.awt.event.*;import java.awt.*;public class ch6_14_2{JLabel l1=new JLabel("Enter the Base");JTextField b=new JTextField(10);JLabel l2=new JLabel("Enter the ...

Problem with "NoClassDefFoundError"

780 byte By cgkellera at 2007-9-29 16:00:33
I tried to compile and run "MathOps.java (from Eckel=C03) and I get the following 3 errors:C:\java>javac -cp . MathOps.javaMathOps.java:5: package com.bruceeckel.simpletest does not existimport com.bruceeckel.simpletest.*;^MathOps.java:9: cannot resolve symbolsymbol: class Testlocation: ...

the boring "java.lang.ClassNotFoundException" again, somewhat differently

1723 byte By newbie_kfga at 2007-9-29 16:02:16
hello, i would appreciate if you could help me.i am writing an application, the classes all belong to "kezilabda" (handball in hungarian).all *.java files are in directory c:\j2sdk1.4.2_02\myprogs\kezilabda. Kezilabda.java is the source for the main class of the application. i am trying to use ...

error with Keyboard.readChar() -URGENT

412 byte By psychopathetika at 2007-9-29 16:03:49
Hi,I'm using Windows and my program doesn't work at home but it works at my lab (my lab is using linux).There's my error:Banque.java:35: cannot resolve symbolsymbol : variable Keyboardlocation : class Banquechoix = Keyboard.readChar();I know that my code is ok, I think that's a problem of ...

Internet Explorer: Java Console Not showing

219 byte By ryan1980a at 2007-9-29 16:04:28
Hello,I'm curious why my java console is not displaying when i click on it?Internet Explorer: View: Java Consoleand it doesn't workdoes anyone know why this maybe?Thank you...

Argh! "java.lang.NoClassDefFoundError"! help!

563 byte By dead_passivea at 2007-9-29 16:13:54
I am a student and only just started programming in Java. When I installed the SDK on my home computer i discovered that everytime i try and run a program i have written, no matter how basic, i get a "java.lang.NoClassDefFoundError". I did a search on the forum and found lots of stuff about ...

java.lang.NullPointerException

1805 byte By Javamateura at 2007-9-29 16:14:05
Hi everybody,Im getting the following exception when I try to run the code below:java.lang.NullPointerExceptionat LoginAction.checkLogin(LoginAction.java:16)at ConnMysql.main(ConnMysql.java:22)public class ConnMysql {public static void main(String[] args) {boolean status = false; try ...

applet not initialized

472 byte By pako1979a at 2007-9-29 16:24:30
Im writing thesis and need help. I finished 3 pretty big apllets. On my computer everything works fine, but when i showed it to my promoter on university applets didnt start :(. There was a message on bootom of IE "applet not initialized". Im using Java for about 3 months so im noob. Now my ...

Need help with error please!

144 byte By harddog33a at 2007-9-29 16:26:11
addRecord(java.lang.String,java.lang.String) in CatDriver cannot be applied to (java.lang.String,int) addRecord(correctName, correctAge);

Access Error

674 byte By Shane.Hill-0357a at 2007-9-29 16:27:46
Hello all,I'm trying to auto install Java Advanced Imaging on a mac osx using a raw installation manifest jar file. Now when I run the html page with my <applet> tag it gives me this error:java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied ...

CGI can't write applet call?

4722 byte By JTS_Java_Deva at 2007-9-29 16:29:17
I have been writing small java utilities and aplications for school for 3 months now. This week I undertook the task of writing my first professioanl applet. The problem is that I need the applet call to be written dynamically by a cgi app. My cgi app is written in basic. I have had enormous ...

Cannot find the class file for javax.servlet.http.HttpServletRequest

2395 byte By rirish7a at 2007-9-29 16:33:02
Environment: --Eclipse 2.0, j2sdk142, jakarta-struts-1.1, -I think I've correctly added all jars to Java/Build path/LibrariesWEB-INF/lib (Contains)-commons-beanutils.jarcommons-collections.jarcommons-digester.jarcommons-logging.jarjstl.jarstandard.jarstruts.jarstruts-el.jarWEB-INF ...

extends error

741 byte By Arthur0303755a at 2007-9-29 16:40:47
can someone please help!! why is it i get an error message if password class has an overloaded costructor when trying to extend password class with Account class this doesnt happen if the default constructor is used (only problem is I'm not allowed to change password class) error says cannot ...

atmguy help again please

1264 byte By Arthur0303755a at 2007-9-29 16:41:21
Hi atmguyI follow what you are saying(I think) Below is the full Account constructor but still get same error msgcannot resolve symbol - constructor Password() public Account(String n, String p, String d, String t, String a){String strL = "rt"; //**just inserted String strA = "is"; //**just ...

javac -classpath . ./baza/program.java

141 byte By kasza22a at 2007-9-29 16:43:59
Error: Super class "<gen>" is not accessible: it is not in the same packageand not public. Please help, what should I do?

File handling error

249 byte By narayaraa at 2007-9-29 16:51:30
Hi, I get the following error when i try to prefix header data to an already existing file.'xref subsection not found at file pointer 176'.Pls let me know what might be causing the 'xref' error.regardsnr

Applet not initialized?

2180 byte By Snake-Eatera at 2007-9-29 16:59:43
Okay can someone tell me whats wrong with this code because it can't be viewed in an applet and comes up as 'applet not initialized', however it compiles fine. The code draws a bar chart graph using an array as a data store.import java.awt.*;import java.applet.*;import ...