exception in thread "main"java.lang.NoclassDefFoundError: server (wrong....

16772 byte By Mdoga at 2007-11-27 4:29:13
Ok, i made my own java compiler (well my friend made it for me), and I got this error when i ran the program.....[URL= http://imageshack.us][IMG] http://img510.imageshack.us/img510/9672/hellojavacompilerss4.gif[/IMG][/URL]Here is the code in my compiler if you want to take a look at it.@echo ...

Exception Error

486 byte By learning_programminga at 2007-11-27 4:30:19
I am having a problem with these line of code:TestDataManager f_TestDataManager= new TestDataManager();Hashtable f_Parameters= new Hashtable();f_Parameters.put("ipaddress", str[0]);f_Parameters.put("port", "2101");f_Parameters.put("type", "socket");DataManager f_Manager;f_Manager = new ...

Help needed on Exception in thread "main" java.lang.NoSuchMethodError: main

1534 byte By noobboya at 2007-11-27 4:30:51
I have got this message after trying to compile the java servlet file HelloWorldExample.java. May I know what is the reason and how to resolve it. Thanks! Below is the code.import java.io.*;import java.text.*;import java.util.*;import javax.servlet.*;import javax.servlet.http.*;public class ...

The perfect java compiler

431 byte By Mdoga at 2007-11-27 4:36:57
I have been working on my own java compiler. I have finaly got it finished and I would like to release it t the public now. Here are some of its details.~It is very easy to use~It keeps a log of all the files~It works just like the java compiler~It makes the .class filesyou can download at ...

java.lang.NoClassDefFoundError

1032 byte By schawla3636a at 2007-11-27 4:40:28
Hi,Please help me out in the following exception:If you see this exception closely, there is no classpath which throwing error. This is not with this particular exception, in every exception its not showing the classpath. Please go through it and advice.java.lang.NoClassDefFoundErrorat ...

Warning: Leaving out empty argument '-windowtitle'

238 byte By Ken@Javaa at 2007-11-27 4:42:27
When I generated a javaDoc for my project I received the following Warning: Leaving out empty argument '-windowtitle'Could someone please explain to me what is that warning and how to fix it?Thanks in advance

javadac in different languages

210 byte By brufusa at 2007-11-27 4:49:08
Hi everybody!Does anybody know if exist any kind of patch o pluging to generate Javadoc in other language (different of English).How could I find it?Thank you very much!brufus

Recompile with -Xlint:deprecation for details.

916 byte By malaiselvana at 2007-11-27 4:50:43
Hi,I am facing a strange problem on the javac compiler.org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: -1 in the jsp file: nullGenerated servlet error:[javac] Compiling 1 source file[javac] /var/tomcat4/work/Apache - ...

<identifier> expected:what to do?

5304 byte By hunterzza at 2007-11-27 4:50:59
C:\>javac SessionListener.javaSessionListener.java:13: <identifier> expectedprivate static Map<String,Session> sessionMX = new HashMap<String,Session>(); ^SessionListener.java:64: <identifier> expected public static Set<String> ...

problem with jdk1.5 and Make Script(unix)

199 byte By KARUPS@CISCO_HCL.COMa at 2007-11-27 4:51:39
HIi All..we use jdk1.4 in our project but when i use jdk1.5 it build sucessfully ..but produce NullPointerException Note : we use Makefile(unix based script)

what is the advantage using sun.tools.javac.Main

95 byte By KARUPS@CISCO_HCL.COMa at 2007-11-27 4:51:41
what is the advantage using sun.tools.javac.Mainover javac (commandline compiler)

javadoc not reading past my main function

432 byte By kotmfua at 2007-11-27 4:53:16
i am trying to use javadoc to document my program (as you do) and i have 4 function in one class, one of these is main.javadoc will only read main tho and leave the other 3 with nothing.i tried sticking the main at the bottom of the code to and that doesnt work eitheranyone have any ideas?(i'm ...

Compilation error in java for struts application.

1802 byte By Garva at 2007-11-27 4:56:45
Hello,I'm a newbie in java and struts, i was trying a simple struts application given in "struts complete reference".This is my code of its Controller class(Action class):-package com.jamesholmes.struts;import java.util.ArrayList;import javax.servlet.http.HttpServletRequest;import ...

Error: Null pointer

1977 byte By titi_coola at 2007-11-27 4:58:26
Application error occurs during processing the request. Details: java.lang.NullPointerExceptionat sit.fypj.hrms.beans.MedicalClaimBean.retrieveUserMedicalClaim(MedicalClaimBean.java:319)at sit.fypj.hrms.servlet.MedicalClaimServlet.processViewRequest(MedicalClaimServlet.java:49)at ...

Help on servlet

1390 byte By noobboya at 2007-11-27 5:03:30
Hi, currently I am trying to run the servlet through TCPMon, and the result is: HTTP/1.1 200 OKContent-Length: 0Date: Tue, 22 May 2007 01:57:15 GMTServer: Apache-Coyote/1.1May I know why is it not working? Thanks(Below is the codes)import java.io.*;import javax.servlet.*;import ...

Javac produces inverted comparison instructions in general

1016 byte By rauara at 2007-11-27 5:04:35
Hi alli've observed with JDK5.0 that java uses byte code instructions for comparisons which are the direct negation of what has been used in the source code. E.g. an equals (==) comparison with 2 integers is translated into IF_ICMPNE and vice versa (!= becomes IF_ICMPEQ). That's true for all ...

Links instead of whole package path

660 byte By buliwyfa at 2007-11-27 5:06:16
Hello!JavaDoc works very fine but there is one little thing that troubles me. In the standard Java 5 API every class and it's packages are represented as links (e.g. java.io.File is displayed as File). Regretfully I did not find a possibility how this works on my documents. Someone told me to ...

Javadoc private option

1016 byte By JustRana at 2007-11-27 5:06:28
Hi all,I want to generate javadoc for few classes, including all private nested classes.I ran javadoc from an ant file and got the following error - [javadoc] javadoc: More than one of -public, -private, -package, or -protected specified.Here is the ant target I used for javadoc ...

Problem In sturts

337 byte By Suhas_feba at 2007-11-27 5:15:07
Hi i am new in struts When i want to connect the database using the method getDataSource(request)The compiler will give error that cannot find the method The code i have written is given belowDataSource datasource = null;datasource = getDataSource(request);Pleaase ...

javadoc: error Illegal package name: JNI

655 byte By anuradha@SDNa at 2007-11-27 5:20:00
Hi,After writting the Java code using native method, Likepackage jni;public class jniFile {static{System.loadLibrary("jniFile");}public jniFile() {System.out.println("Inside constructor ");}private native void printMessage(String msg);public static void main(String[] args) {jniFile m= new ...

Java run error - ArrayIndexOutOfBoundsException

907 byte By wes68a at 2007-11-27 5:22:51
Hi, I try to run code below but it show me the error :public class JClientDemo { public static void main (String [] args) { JClientDemo demo = new JClientDemo (); demo.testClientApi (args); } public void testClientApi (String [] args) {System.out.println("Test Client API starts"); if (args[0] ...

Bug in Netbeans Java compiler?

1441 byte By CathInfoa at 2007-11-27 5:24:33
I think Netbeans (or Java itself?) has a major flaw in its compiler design.Explain to me why the following code is not compilable. Specifically, why it should complain about line 8:cannot find symbolsymbol : variable SelectedWhen I clearly declared it a couple lines above it!Now the fact that ...

Javac class compile error

3314 byte By Mr_Scientista at 2007-11-27 5:31:57
I have been trying to compile a java bean using javac from within Fedora Linux 5. I compiled the first bean creating a class succesfully but the second keeps on coming up with an error. Both java files are stored in WEB-INF/classes/beansHere is my code://ItemOrder.java//file location ...

Error with 'cache_archive'

1328 byte By ingerblondiea at 2007-11-27 5:35:44
When I want to add pictures to my facebook account, this error appears:sun.plugin.cache.JarCacheVersionException: Number of attributesspescified in the 'cache_archive' doesn't match those in 'cache_version'After that message and I have pressed OK, this one appears:The publisher cannot be ...

Thread Debugging

244 byte By Bassedaa at 2007-11-27 5:41:35
I would like to run specificaly one thread in the debugging mode but I don't want to run whole program in the debugging mode. Beside, I also want not change virtual machine settings in the debugging mode. Is there any suggestion?

Unexplained Issue with working with ActionMessages.

2284 byte By ScottUpdikea at 2007-11-27 5:54:55
All, BACKGROUND:I have a simple Struts application that is connected to MySQL. In one of my Actions that calls a method that accesses the database, I'm handling the SQLExceptions by catching the exception and storing (as strings) the error code and message into two bean properties (both ...

error in generating Javadoc ..

1096 byte By nrupesha at 2007-11-27 6:08:40
Hi,I'm trying to run a ant script to create javadoc. I'm using JDK 1.5 for the same. But I'm getting following error.Can anybody give me some suggestion what could be wrong there. I'm not getting any files written after this error, and build is failing due to this.javadoc: error - In doclet ...

Unreported exception java.io.FileNotFOundException

2213 byte By jkbatchosa at 2007-11-27 6:09:28
Please help me out with this, I'm new to Java and I can not figure this one out. I also tried it by including throw Exception after the args statement and it was able to create the file but nothing printed in it.ThanksError:unreported exception java.io.FileNotFOundException; must be caught or ...

Compiling the Java API

960 byte By ChrisFa at 2007-11-27 6:12:35
Hi,I'm relatively new to developing in Java, so this might be a very dumb question...Recently, I downloaded the JDK and the source for the Java API and I've been trying to compile everything in java.util.Frustratingly, I can't get all of the classes in java.util to compile straight off the ...

Cannot compile using GCJ

622 byte By faheda at 2007-11-27 6:18:05
Hi everybody....,I have a window application which uses javax.swng. api's and javax.crypto api's. My application is running fine with jre 1.6, but i would like to make it a linux native application by compiling it with GCJ...when i compile the jar with GCJ it produces error ...

Implementing Constant_Float.

1259 byte By regecksa at 2007-11-27 6:32:17
Hi there,I've been experiencing some difficulties in implementing the Constant_Float of a classfile in my C++ bytecode library. While I am able to read and write the two 32-bit values correctly to and from the classfile, I am unable to represent the value as a C++ 'float'. According to 4.4.4 ...

hot code replacement

174 byte By TechGirla at 2007-11-27 6:38:08
How do I do hot code replacement in Eclipse? I tried to write another line while debugging the code, but I got the warning message about the obsolete methods in stack.

cannot find symbol method

1694 byte By kmundnica at 2007-11-27 6:53:06
I'm relatively new to Java, since I've been programming since March. I have to do a task for a course I磎 taking on the university, but I can't find the source of an error that appears when I try to compile.My code is the following, for class Polinomio1:import java.io.*;class Polinomio1 ...

How to call to javac from a class?

961 byte By DaleGroa at 2007-11-27 6:56:44
Hi folksI need to compile a file .java from a program java written by my in java.the first form that uses went calling to a process this way:String cmd = new String[] {"javac","\\temJava\\*.java"};p = Runtime.getRuntime().exec(cmd);this works well but single for windows, and I need to work in ...

verify digital signature mobile 5.0

399 byte By ddrake2196@aol.coma at 2007-11-27 7:28:14
i have a jad file d2link and i get this error msg [unable to verify digital signature ] can any one help its on a 8525 phone with wm5 on it with the java program 6.1 i have downloaded opera it seem to work fine plus the golf tracker and gmail and them seem to work fine or is there any way to ...

Class Expected error - HELP

1046 byte By simonkf2002a at 2007-11-27 7:29:13
Hi I've been workin on a project, and it seems something is wrong with this code... i honestly cannot figure it out...here it is :Uses the following methods:public static boolean areEquivalent (String word1, String word2)This method reutrns true or false depending on whether the two input ...

Help detecting interface declarations using Sun Compiler Tree API

703 byte By cowwoca at 2007-11-27 7:37:51
Hi,I have an instance of com.sun.source.tree.ModifiersTree when parsing a Java source-code file. Invoking toString() on the ModifiersTree clearly shows the "interface" modifier yet when I try using the public getModifiers() method it does not return this modifier. The actual Modifier.java ...

Help on printing error messages to a log file

111 byte By noobboya at 2007-11-27 7:40:16
Hi, may I know whether is there any way to print the error messages to a log file? Thanks for your help!

Tool for Reversing (.class to .java classes)

94 byte By java2007jeea at 2007-11-27 7:40:48
Can somebody tell me about an open soft tool for reverting code.Thanks.FS

generics not included in javadocs

1401 byte By Chadhaa at 2007-11-27 7:44:50
I am using jdk1.5.0_06's version of tools.jar. I have attached the code that I am using in a custom doclet but still I am not able to view generics.The output is java.util.List instead of the complete type. Am I missing something? public static boolean start(RootDoc root) throws ...

Can any one help me to solve my prblem

12034 byte By kandilxa at 2007-11-27 8:20:20
exception java.io.IOException is never thrown in body of corresponding try statementimport java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.text.*;import java.util.Date;import java.io.*; public class SampleIO2 {int[] u= new int[27];JFrame f;String s1,s2;int ...

Can't use the same JVMPI min=max heap setting for JVMTI

436 byte By bspikea at 2007-11-27 8:25:54
I have a DLL that serves as both PI and TI library. When using PI, I can specify -XmsNNNNm -XmxNNNNm but the same setting would not work when switching to TI. I must lower the heap setting by as much as 725M on a Windows box. On UNIX, I only need to lower it by 5-20M depending on machines. It ...

Yet Another '1.x on 1.4' question... but wait! This one's different!

1957 byte By CodeMonkey9358a at 2007-11-27 8:37:19
So, after faithfully using Jikes (Best. Compiler. Ever. RIP) for many years, I've decided I'm too far behind the times, and I've moving back to javac for 1.5 and 1.6.However, the applications I'm writing must have the biggest reasonable userbase (usually in situations where the users are ...

getting 3d to work

824 byte By Hunter78a at 2007-11-27 8:37:52
I will start learning 3d in java and thought I should leave bluej and go for NetBeans. But it always takes days to make something new to work..... This is what I have downloaded and installed:- NetBeans IDE 5.5.1- java3d-1_5_0- java SE Development Kit Version 6 Update 1But I磎 getting: "package ...

newbie compiling question.

619 byte By klaasdea at 2007-11-27 8:42:19
Hi I'm trying to compile my program but I get the following error:C:\Program Files\Java\jdk1.6.0_01\bin>javac -classpath c:\test -sourcepath c:\test\*.javac:\test\ProcessStatementLine.java:22: cannot find symbolsymbol : class AnalyzeAccNumlocation: class test.ProcessStatementLinestatic ...

Handling exception from method

351 byte By hetal_giria at 2007-11-27 8:47:10
Hi,Can anyone let me know how can i handle exception tht r thrown from the method.With try and catch i dont have any problem but when i try to use errorpage and comment all try catch blocks in the page the block of code into method declaration throws exception which i m not able to ...

an alternative for this code

5474 byte By Exekyela at 2007-11-27 8:50:07
look guys im new on this of JAVA im starting a career on this but i have a lot of questions, the only one who can resolve this is somebody and not a manual xDis simple i just need an alternative(im sorry for my english but i cannot speak much english)the code have comments in spanish dont read ...

getLength method

406 byte By gator_811a at 2007-11-27 8:53:52
Hello.I'm very new to programming. I've been reading on methods. I tried to compile a piece of code. I created an object (a rectangle). I have imported the awt library and when i use objectname.getWidth and pass it to a variable and use it, it works correctly; However, when i use ...

warning: [path] Unexpected file on path:

502 byte By klaasdea at 2007-11-27 8:57:58
HiI try to compile a lott of files with the command:javac -classpath c:\ -sourcepath c:\test\*.javaAnd that gives the following warning:warning: [path] Unexpected file on path: c:\test\AnalyzeAccNum.javaThe result is that that file is not compiled. And if I use javac to compile only that file ...

java program stopped running when using JVMPI

3207 byte By dash_huana at 2007-11-27 8:59:28
Hi!I'm writting a very simple profiler using JVMPI. I intended to pause/continue it by sending signal, like kill -SIGUSR2 PID, to it, but whenever I did this, the java program that ran with the profiler stopped running, however the profiler kept running properly.Here's the code of the simple ...