specifying mulitple jars on classpath

464 byte By chadmichaela at 2007-11-26 14:14:47
What is the most convenient way to specify multiple jar files on the classpath? If I have a lib directory with many jar files, it seems like I should be able to specify that directory on the classpath and all jars will be used. But, as I understand the documentaiton of the javac tool, you must ...

Make your own compiller in JAVA

1120 byte By America70a at 2007-11-26 14:19:15
Hello, guys! I really need your help.I have a tusk in my college to make a compiller in COCO/R. You know, it is a compiller of compillers, the best of the best)Coco/r for java is a program writen on Java to make another program on ...

generate javadoc with relative link path...

426 byte By MargNata at 2007-11-26 14:28:34
Hi,I've generated javadoc for my prog, with links to a local jdk 1.6.0 api specification.Now I've seen those links have been created as absolute paths, notwithstanding I've copied java api spec in the javadoc folder for my program.How must I do to generate relative links?so that if I put ...

Why did class version go to 50?

271 byte By jordanza at 2007-11-26 14:30:05
Sorry if this is posted somewhere else but it doesn't seem to be possible to search just the Java Compiler board...Why was the class file version incremented to 50 in Java 6? Now, if I compile with Java 6 I can't run in Java 5. Is there a way around this?

Java Problem

327 byte By ace_84a at 2007-11-26 14:38:15
I am using Jbuilder 2005 and I need to create a application where I use generics. But once I create the class that implements the generics portion of the code, I get an error that says "generics are not supported in -source 1.2 (try -source 1.5 to enables generics)". Any one know what this ...

Fast java compiler

653 byte By Szymika at 2007-11-26 14:44:20
Hi Everyone!I am looking for fast java compiler, best with embedded compilation. I would try to write application witch will be self-compiling to improve speed of showing GUI. So I would like to compile java source file or whole package with calling single fu nction instead of invoking new ...

NumberFormatException: For input string: "request"

56055 byte By tjclifforda at 2007-11-26 14:50:00
Good day all.I'm having difficulty with trying to include a formbean inside a request to another jsp page.I'm running JBoss 4.0.4GA, JSDK 1.5, Windows XP, Apache 2.0.59, and I'm using some of David Harms' code that he published in his 2001 Book, "JSP, Servlets and MySQL".I'll post as much ...

Root cause of ServletException.java.lang.OutOfMemoryError>

886 byte By lokeshkumarnallaa at 2007-11-26 14:50:01
<Jan 10, 2007 12:39:13 PM IST> <Error> <HTTP> <BEA-101017> <[ServletContext(id=20269655,name=raweb,context-path=/raweb)] Root cause of ServletException.java.lang.OutOfMemoryError>--Hi all, we are struggling with the above problem when we rendering the map (google ...

ConstructorDoc always shows a non default constructor

397 byte By tarzan68a at 2007-11-26 14:55:18
If the source file has no explicite constructor, the ConstructorDocs of ClassDoc always hold a non default constructor as it seems. If there is an explicite coded constructor, the position of the constructor points to the right position in the file. If there is no constructor in the source, it ...

Suspend all thread when a requested event occurs (like SUSPEND_ALL in jdi)

935 byte By pet_a at 2007-11-26 14:57:54
Hi!I'd like to write a jvmti agent that can make a threadtree(it can find the parent of the current thread).// I make the B thread in the A thread. A will be the parent of the B.I made it in JDI. I catch the methodStartEvent of start0 method (It's called to start the new thread - This is the ...

What does the $1 in a class filename mean ?

665 byte By murraha at 2007-11-26 15:05:29
Hi,I am new to Java. I have created an applet called TicketbookEmailDecoder.class that works with both the appletviewer and via a htm page using:<applet code="TicketbookEmailDecoder" width=480 height=360></applet>So far so good. Now, when I deploy the applet in another folder on my ...

I've been one week with the

734 byte By Makara at 2007-11-26 15:09:20
Hi thanks for reading. I really hope you can help me.I'm doing a Spanish-English translator using the developer 10.1.3.1The console mode of the translator works with no problem. It is when I call the translate function through a .JSP where I have trouble. I get:java.net.MalformedURLException: ...

JDK 6.0 Java Compiler API setting options

1878 byte By _-Mithrandir-_a at 2007-11-26 15:15:19
Hello!in my Webapp I am trying to compile dynamically generated source files with the Compiler API:JavaCompiler compilerTool = ToolProvider.getSystemJavaCompiler(); StandardJavaFileManager manager = compilerTool.getStandardFileManager(null,null,null); //directory is the dir with the source ...

compiler error with import

531 byte By fan5389a at 2007-11-26 15:24:13
I am trying to compile these codes using jdk1.4.2_11. These codes compiled successfully with 1.3.1_17 but with 1.4.2_11, I am getting a compiler error with import IVServ and import ServeletIncompleteException statement below. Both classes are located in the same directory as the source code. Do ...

Why Java doesn't support method references ?

529 byte By armando_de_la_torrea at 2007-11-26 15:31:12
My main source of concern is how unellegant the code for handling gui events looks. At first Java came up with inner classes to support event handling, later it was anonymous inner classes. Hell, isn't it clearer writting :frame.addWindowListener(WindowClosing() );public void ...

I wonder: Why is javac not written in Java...?

788 byte By naansofta at 2007-11-26 15:36:33
This is not a cry for help. Rather, it is something that my coworker and I have been debating with no sane result.The question is: Why did Sun not code the javac-compiler as a pure Java-program (using bootstrap methods, of course - need to start somewhere)? After all, my coworker argues, this ...

Taglet javadoc error ClassNotFoundException

388 byte By fukuronezumia at 2007-11-26 15:41:01
I am trying to use taglets with javadoc with the examples from Taglet Overview, but I get the following error message when I run javadoc:javadoc: Error - Exception java.lang.ClassNotFoundException thrown while trying to register Taglet ToDoTaglet... .I have lib/tools.jar on my build path and ...

Exceptions in Thread

4177 byte By rinoa_fftsya at 2007-11-26 15:53:19
I have a program that creates and starts Threads that invokes a webservice..I just want to know if incase one Thread had an exception will it effect the processing of other threads, or it will effect the execution of the program?here is my code (part of the program) that creates and starts the ...

complete newcomer question (cannot find symbol)

4209 byte By speedingbulleta at 2007-11-26 15:53:40
on terminal, I was given 20 error messages...DemoVariables.java:11: cannot find symbolsymbol : variable sumlocation: class DemoVariablessum = value1 + value2;^DemoVariables.java:11: cannot find symbolsymbol : variable value1location: class DemoVariablessum = value1 + ...

An unexpected exception has been detected in native code outside the VM.

3865 byte By DCLKTechiea at 2007-11-26 15:55:36
I am using JRUN 4 with updater 6 with j2sdk1.4.2_05 on win2k3 serverand seeing this exception and its causing JVM to shutdown. Do someone has a solution for this . I this smth realted to writing on closed OutputStream?An unexpected exception has been detected in native code outside the ...

i HAVE ERRORS WHEN I COMPILE

735 byte By HELPME111a at 2007-11-26 16:01:04
WHEN I COMPILE I GET MANY PROBLEMS. HERE ARE MY PROBLEMS WHEN I COMPILEjavac: invalid flag: javac:Usage: javac <options> <source files>where possible options include:it says all thses things and thens saysexception in thread "main" java.lang.noclassdefFoundError: serverpress any key ...

cannot find symbol

1140 byte By scottmonsta at 2007-11-26 16:09:27
Hi been having similar problem as some of the othersThis is the objective of my lesson: Develop a class to represents a human. The head, arms and legs should be properties of the human and should be represented by separate objects. All of your objects should have at least three properties and ...

Socket Exceptoin by JVM

320 byte By MullaiSelvan@Saia at 2007-11-26 16:17:48
HelloI have analyze the exception .Any body help me.I need brief explanation.Give me suggestion how can rectify it.java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream readat java.net.SocketInputStream.socketRead(Native ...

jvm terminated

219 byte By durgaprasad.ka at 2007-11-26 16:19:06
hello frnds iam using windows 2000 professsional OS , im getting error after installing oracle , im getting error whenim trying to open ECLISPE IDEIam getting error like jnm terminated exit code =1

I lost the 'compile' button on TextPad after installing eclipse..

543 byte By LuckY7a at 2007-11-26 16:21:00
Hi,I have been using TextPad, and it has been working perfectly. I just recently installed Eclipse to try something new and I went back to TextPad today to run a script and I do not have the 'compile Java' button under tools anymore. I don't know how to compile my scripts in TextPad now. ...

JDK 1.5 Tomcat 5.5

1152 byte By knewsoma at 2007-11-26 16:22:13
I'm getting an exception when invoking a servlet in tomcat 5.5. JAVA_HOME and Eclipse are both pointing to the same folder for javac. The only Java components installed are the J2SE 5.0 Update 1. java.lang.UnsupportedClassVersionError: Bad version number in .class ...

Session already invalidated error

1545 byte By rinoa_fftsya at 2007-11-26 16:29:53
hello i am running tomcat and axis on my server, and i am always getting this error in my log files anytime my webapplication and webservice starts...I dont know what the exception means..does the [/axis] means the error occurs in axis folder of my webapplication? why is it Session gets ...

About error and exceptions question

353 byte By kombea at 2007-11-26 16:31:12
In stuts, as my understanding if not wrong, if the form in, say login.jsp is validated and forwarded to intended page, say, member.jsp, it has nothing to do with errors or exceptions that occur in a member.jsp and beyond, then how to handle exceptions for simple application in web.xml, as in ...

Java OutOfMemory error java heap space hlp pls

118 byte By Biggie_maca at 2007-11-26 16:31:32
problems solved, pls delete thread. Sorry for the inconvenience;Message was edited by: Biggie_mac

Definition of a java statement...

852 byte By belur_1da at 2007-11-26 16:32:08
Hi I have this simple methodpublic void test(int i,float f){i/f;// divide integer by float}Compile javac says that it is not statement .Modify the method to say thispublic void test(int i,float f){Math.sqrt(i/f);// divide integer by float and invoke sqrt fn using Math class}javac does not ...

NetBeans ant

391 byte By Nibura at 2007-11-26 16:40:29
hi i have been programing in java for a while i know the basics but just moved to netbeans and found there is an "ant" function. can some on explain what ant is and how to implement it.... some good links i searched the forum and found no resultsed googled it and didnt really find out what it ...

Debugging JVMTI agents

817 byte By SpookyValea at 2007-11-26 16:48:29
Hi everybody.I just wrote a really simple agent used to instrument classes at method entries and exits (did it modifying a little the java_crw_demo from jdk6 demo code so that i could change instrumenting methods signatures).Everything worked perfectly fine until I decided to add some ...

500 Servlet Exception

187 byte By knluckymea at 2007-11-26 16:53:18
java.lang.IllegalStateException: forward () not allowed after buffer has committed.This only happens on one website and only on one computer in the office. How can I fix it?

Compiler API and Tomcat

457 byte By _-Mithrandir-_a at 2007-11-26 17:09:57
Hi!I am using the new compiler api to compile dynamically generated classes.To get the compiler tool i call:JavaCompiler compilerTool = ToolProvider.getSystemJavaCompiler(); when I run this from eclipse with the integrated tomcat everyhing works fine but if I deploy the application on the ...

compile got problem.

891 byte By ms_kathya at 2007-11-26 17:15:31
i got 1 error. but cant figure what is wrong after i compile. help me please. )=import java.util.Scanner;public class NumberCounter {public static void main(String [] args){ Scanner sc = new Scanner(System.in); final int MAX = 50; final int MIN = 0; int i = 0; int user; int counter=0; int [] ...

Values of a FieldDoc

240 byte By tarzan68a at 2007-11-26 17:22:19
If I have a field likeprivate static String[] accountTypes = {"Checking", "Savings", "Credit", "Money Market"}; in the source code, how do I get "Checking", "Savings", "Credit", "Money Market" via javadoc?

Where can I find the documentation for java application launcher for java 6

396 byte By KKnighta at 2007-11-26 17:32:20
Where can I find the documentation for java application launcher for java 6? I want to know the full description of the java options.I went to http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html.But it doesn't seem to be a full description of the java application launcher. For ...

java program file to an exe file

306 byte By Ezhil_Ca at 2007-11-26 17:34:37
hi alli am a final year student doing project in java environment. in my project i want to convert a java program to an exe file.. i have seen some of the replies from the forum but i am not clear with that.. i need the steps in detail and the way how to do...?thanks in ...

i got problem everytime i run my files

441 byte By valhensinga at 2007-11-26 17:35:37
i always have the same problem when i run my classes event if it runs on another computer:init:deps-jar:Compiling 1 source file to C:\Documents and Settings\Ha Thi Nga\exercite\build\classescompile-single:run-single:java.lang.NoClassDefFoundError: exercite/HomeWorkException in thread "main" ...

live without -Djava.compiler=NONE option for remote debugging?

426 byte By KKnighta at 2007-11-26 17:40:45
To enable remote debugging, we launch the java application using the options:-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -Xdebug -Xnoagent -Djava.compiler=NONEThe '-Djava.compiler=NONE' option slowed down the application, since it turned off the just-in-time compilation. My ...

Help with collections and hashmap

519 byte By petemosha at 2007-11-26 17:43:09
Hi, I'm fairly new to java, and I just screened for an internship at a local software development company.My first task is to create a collection, probably an array of directories and to use a hashmap to store 10 of the directories. And to read the 10 names from a file in your temp directory. ...

<identifier> expected error

1315 byte By my.doubtsa at 2007-11-26 17:47:18
i have writen a simple code but in which during compilation i get error as <identifier> expectedpackage com.mycompany.messages.action;import java.io.IOException;import java.io.*;//import com.mycompany.message.bean.sambean;public class samaction{//BeanName obj = (BeanName) form // here ...

Java Error

145 byte By CompilerCama at 2007-11-26 17:49:50
Here is the Error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0at VirusLook.main(VirusLook.java:3)

Compile Error for Import com.sun.javadoc.*;

684 byte By falc1a at 2007-11-26 17:51:26
I need to write some simple doclets and found some beginner code on the Sun website. The first line of the sample app is:import com.sun.javadoc.*;However, I get a compile error:C:\JavaDoc\Doclet\ListClass.java:1: package com.sun.javadoc does not existimport com.sun.javadoc.*;I found the ...

Eclipse not recognizing path to my main class

1356 byte By deadseasquirrelsa at 2007-11-26 17:58:55
First off let me say everything was working just fine. I have a number of files in a /src folder, I compile them to a /bin directory and currently, even though it is bad practice I have everything sitting in the default package (I will change that soon after I figure out this issue).Then I ...

Launching an application ucing JDI package

139 byte By asmainfa at 2007-11-26 18:02:57
How can i launching an application by performing its path and its class main without using the javac command line explicitly?

5.0 to 1.4 - downporting

225 byte By jajaa at 2007-11-26 18:04:38
hi, i wrote an application that meant for 5.0 and i need to make it backward compatible for 1.4 compiler is there any tool that does this conversion or i have to do it my self ?thanks Jaimon

trouble writing code

401 byte By vogte30a at 2007-11-26 18:13:35
I have to make a program that will take a sentence and make it plural. For example, "The cookie is good" would change to "The cookies are good". A box would have to pop up, where you could type the sentence in, then after you hit "ok", the sentence would change. I am new to writing code so I am ...

Operand stack access

238 byte By asmainfa at 2007-11-26 18:15:30
We Know, that the Operand stack of a frame stack is not accessible, is there any method in jdk1.6.0 that resolve this problem or not yet?If no, how we can know the moment when the operand stack is empty?

Error code 143 on JVM exit

423 byte By sabrinawerscheida at 2007-11-26 18:28:31
Hello,I have a program (with multiple threads, running under MS-Windows) which works fine almost all the time.In one case, it terminated unexpectedly, and the exit code (via ERRORLEVEL) is 143.There are no other outputs in order to diagnose the problem.I would like to know what the error code ...