Using the Javadoc API without calling javadoc

864 byte By Emanuela at 2007-10-2 13:15:55
Hi,I am developing an application that needs to show to the user the methods and arguments of a Class. I saw that the Javadoc API has a set of methods that does that. However, I don't want to show to the user the HTML result; I want to use the Javadoc API to get the methods, so I will format ...

Cannot even compile-PLS HELP

234 byte By Chrysisa at 2007-10-2 13:19:31
when i try to compile my code using the " javac FileName.java" command i get the following error: "'javac' is not recognized as an internal or external command,operable program or batch file."Can anyone help me?

The filename, directory name, or volume label syntax is incorrect

1432 byte By eoxa at 2007-10-2 13:20:13
Hi,im trying to create a (text)file with a user-specified content. The user input (filename and content) is saved in a string variable. But I'm getting the following error after the input of the variables:java.io.IOException: The filename, directory name, or volume label syntax is ...

Compiling under console

579 byte By maaciekza at 2007-10-2 13:23:07
I would like to complie a program.package B.C;class PakietD{public static void main(String arg[]){PakietC x = new PakietC();x.pokaz();}}and package B.C;class PakietC{String pakietC="pakietC";public void pokaz(){System.out.println("Komunikat z pak C");}}It is ok when I use a Eclipse or JCreator, ...

Avoiding Null Pointer Exceptions.

1383 byte By MackTrucka at 2007-10-2 13:23:24
Hi:This might sound like a newbie question.In a funtion that returns an object of another class, if the required parameters are all rights (i.e no 'problems' ) the funtion works well. But in case, I have to return something (but not 'throwable' an exception) I return a 'null'. And this ...

Weird int situation

1331 byte By timjamesa at 2007-10-2 13:23:37
I'm new to this forum and AP java the extent of my java knowledge, so forgive me if this is something common in java. I'm working on an project for school in which I am taking an existing Chess program, taking out most of the pieces and empty squares, and then trying to make a game tree for ...

New to Javadoc

5281 byte By Dwooda at 2007-10-2 13:24:26
I have gone through the tutorial and am a bit confused on how to comment my program. I can comment my main method but am not sure what to do to comment the other mehods and my variables. Can anyone help me?import java.util.StringTokenizer;import java.util.regex.Matcher;/** * * StringQuiz ...

javax.servlet.ServletException

2725 byte By fnazeerbea at 2007-10-2 13:27:39
hi ,in a jsp file am using <jsp:useBean> tag to call bean<jsp:useBean id="ShoppingCart" scope="page" class="MyClass.ShoppingCart" /><jsp:setProperty name="ShoppingCart" property="*" /> that gives an error belowtype Exception reportmessage description The server encountered an ...

help!!!

10230 byte By javaMana at 2007-10-2 13:37:58
hey, i was having a problem with my code. Everything compiles correctly, but my instance variable methods dont run, it just skips right over them as if they arent they. The other parts of my switch work, just not the methods from my instance variable "ad". Any help would be greatly appreciated. ...

SQLServer 2000 Driver for JDBC]Error establishing socket

268 byte By buela_b@yahoo.co.ina at 2007-10-2 13:38:11
hi,I have also got the same problem which u had faced. i.e Socket establising socket error... I have tried out your solution.. i.e i have already enabled TCP/IP connction on SQL derver. but still i get the same problem.. please help me out.regards

javadoc nightmare in Tiger 1.5

843 byte By Felipe.Gauchoa at 2007-10-2 13:41:40
Dear friends,I'm having problems trying to generate a simple javadoc under eclipse + Java 1.5.javadoc: warning - Multiple sources of package comments found for package "net.java.dev.cejug.classifieds.filter"...Constructing Javadoc information...Standard Doclet version ...

trying to use Ant with javadoc 5.0

10185 byte By Felipe.Gauchoa at 2007-10-2 13:41:50
I'm trying without succes to generate the javadoc of my project using Ant + Java 1.5:<target name="javadoc" depends="compile"><javadoc ...

problems with Oracle9i and Java runtime environment

2523 byte By mr47a at 2007-10-2 13:43:12
Recently I've installed Oracle 9i application server into my machine. I've installed javase 5 update 3 before. Now the problem arise after I've installed Oracle 9i.I've set the environment path variable accordingly. Now the source files compiles accordingly with my javase 5 javac command. ...

compiling *during* program exectution

223 byte By MellowFish316a at 2007-10-2 13:44:07
I am working on a natural language porject, and I want to be able to edit .java source files, compile them, and then run them all without ending program exectution. Am I looking for a JIT compiler, or something else?

java.lang.NoClassDefFoundError

623 byte By bemar412a at 2007-10-2 13:46:01
Hi @ all,I wrote a app with 3 classes inside of a package. One of the 3 classes is my main class with the main-method.I wrote the stuff with Eclipse and I had no problems. The code is compilable and runs inside of Eclipse.If I want to execute the code outside Eclipse with my JRE I will get a ...

"find_vma failed" warning

490 byte By ppatricka at 2007-10-2 13:46:10
Hi,I've set up a root jail environment with only Java facilities on a linux system.In order to complete it, I copied the libc libraries and the jdk.When I test if Java works, here's what I get:Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma ...

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

2554 byte By mr47a at 2007-10-2 13:46:30
Recently I've installed Oracle 9i application server into my machine. I've installedjavase 5 update 3 before. Now the problem arise after I've installed Oracle 9i.I've set the environment path variable accordingly. Now the source files compiles accordingly with my javase 5 javac command. ...

MISSING RETURN STATEMENT ERROR

6332 byte By cgarnona at 2007-10-2 13:47:34
import java.util.*;public class areas2Calculation{//Method to calculate area of a squarepublic static double generic_area(double length, double height, double base_length, double radius, double PI, char shape){PI = 3.1415927;switch(shape){case 's': return length * length;case 'r': return ...

progresql connect problem

252 byte By shadowa at 2007-10-2 13:47:45
i make a small program to connect to my progresql server,and it work. when i try to make applet, i can't conect to server, "Something unusual has occured to cause driver fail... Exception : java.security.accessControlException: access denied..?

core dumps: analysing, and security

1442 byte By bbatmana at 2007-10-2 13:49:51
I have occaisionally seen some obscure JVM crashes on my machine.See, for example, my latest bug report: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6386633I have configured the JVM on my windows machine to generate core dump files in cases of crashes. In particular, I use the command ...

Disabling toolbars of a PDF file

307 byte By neeraj_lbsimds01a at 2007-10-2 13:51:03
I am developing a web application on JSP.There are option to download policies that are in pdf but now problem is client don't want to allow user to download.He want to only see that policies i.e. no save option, no copy option, no print option.I hope you will solve my ...

java.lang.NoSuchMethodError: main

1147 byte By Alexander_Zohara at 2007-10-2 13:53:20
import javax.swing.*;import java.awt.*;public class HappyFace extends JApplet{public void paint(Graphics canvas){canvas.drawOval(100,50,200,200);canvas.fillOval(155,100,10,20);canvas.fillOval(230,100,10,20);canvas.drawArc(150,160,100,50,180,180);}}Hi all,Ive just started learning Java at uni ...

java.lang.OutOfMemoryError: Java heap space

364 byte By Shishir_Shaha at 2007-10-2 13:56:15
I am getting this error when I am trying to parse an xml file which is about 1.2 gb. So i was going through the forums and checked on how to solve the error, and so someone posted a solution to include the following vm arguments" -Xms512M -Xmx1024M" and I still get the error?Can some help me ...

Help please: EXCEPTION_ACCESS_VIOLATION

19284 byte By javanogoa at 2007-10-2 13:57:06
My Java currency trading platorm (Gain Capital) keeps getting knocked offline with an error message, often during a trade. Happens on 2 different computers. What follows is the error message on my main computer. Not a techie but any help on a place to start would be greatly appreciated. Have ...

Please Help ME

1270 byte By Sybil_needs_java_helpa at 2007-10-2 13:57:15
I am doing a project for my Java class am I can not get this to complie! It's so frustrating! Someone please help. Here is my code. The complier keeps telling me I need a semi colon on lines 11 & 12 but there are already semi colons! Thanks-Sybil import java.util.*;import ...

True compiler for java

170 byte By Tree_Dwellera at 2007-10-2 13:57:16
Is there a true compiler, instead of an interpreter, for java out there? I wanted something that would actually give me an .exe and not run on the virtual machine.

\n Doesnt work in notepad

514 byte By @Gibi@a at 2007-10-2 13:58:35
I have a problem. I need to write a text file, which I did. However, in the file I also need the carriage returns / new line feeds. So, when I write the string, I include "\n". When I open it in wordpad or Microsoft Word (I have windows XP and a PC), it works fine. Then, when I open it in ...

Java Decompiler

88 byte By mtzo81a at 2007-10-2 13:59:05
Hiany recommendation for FREE java decompiler?RegardsTerence

compiler cannot find other files

461 byte By Arbutosa at 2007-10-2 14:01:14
Ok, whenever I try to compile any file the references another file I've written it tells me that it "cannot find symbol". Everything is correct as I can compile just fine on other computers that have java installed on them, but this one seems to hate it for some reason. I have a windows xp ...

runescape

1354 byte By propanea at 2007-10-2 14:01:26
runescape is a java powered game and after whichever detail i click to play it goes to a screen that says the following:ERRORThe requested URL could not be retrievedWhile trying to process the request:GET /serverlist.ws?lores.x=422&lores.y=251&plugin=0 HTTP/1.1Host: ...

Conditional Compilation (or something like this!)

580 byte By robicha at 2007-10-2 14:05:18
Hi all.In my application I would need to conditionally import a jar, depending on a configuration switch.I'm attaching here some sample code (written in "c++ conditional compilation mode") to explain better the situation:#ifdef (VERSION_5)path.to.mypackage.MyClass mc = new ...

Exception in thread

471 byte By lyyhhha at 2007-10-2 14:07:15
Hi, i have a program called Hello.javaafter that i try to compile with the code of:c:\ Javac Hello.javait's fine.but when i try run the program with code:c:\java Helloit happened this wayException in thread "main" java.lang.NoClassDefFoundError: HelloAnd i try c:\java -cp . Hellothen it's ...

error message

6042 byte By trane65a at 2007-10-2 14:11:55
I know that non-static variables cannot be refrenced from a static context and I see where this error is happening but I can't figure out why. It doesn't appear that I am cross referencing static and non-static variables.import javax.swing.*;import java.awt.event.*;import java.awt.*;import ...

Javamake download failure

479 byte By dpecoraa at 2007-10-2 14:15:40
I tried to download Javamake from the experimentalstuff.com website, but the download attempt fails with an error message "Sorry, can't get license terms for Java_Make_Tool-1.3.3". I can't find the jarfile on the internet, and the publicly available email addresses for the author don't seem ...

Logic Problem

11013 byte By cgarnona at 2007-10-2 14:16:43
import java.util.*;public class areas2Calculation{//Generic method to calculate area of the shapes square, rectangle, triangle and circlepublic static double generic_area(double length, double height, double base_length, double radius, double PI, char shape){PI = ...

Logic Problem

11013 byte By cgarnona at 2007-10-2 14:16:44
import java.util.*;public class areas2Calculation{//Generic method to calculate area of the shapes square, rectangle, triangle and circlepublic static double generic_area(double length, double height, double base_length, double radius, double PI, char shape){PI = ...

JVA0122 Error

350 byte By suketu9a at 2007-10-2 14:16:55
I am getting following java error when running a job ." Java program completed with exti code 1Function Check. JVA0122 unmonitored by CS_ASSIGN at statement 1000, instruction X'0016'.JVA0122 recieved by CS_ASSIGN at 1000. (C D I R)."Does anyone know what might be causing this error and how to ...

error on jsp ..in j2ee while creating webservice using sun server

5951 byte By itsmejaya at 2007-10-2 14:17:27
hey i am a new commer to j2ee platform ..i am developing a web service to encryp data...i have sucessfully deployed the server and the client ...when i run the client the jsp page(encrypt.jsp) gets loaded... but when i pass the parameter(data to be encrypted) and click submit which takes me to ...

Another Recursion...

3046 byte By HippieJoea at 2007-10-2 14:18:27
I am trying to write a small app that will recursivly add all files and files in sub directories to a ArrayList. The code I am using is more or less a cut and paste taken from this post: http://forum.java.sun.com/thread.jspa?threadID=674245&messageID=3938703I declare all my variables ...

( or [ expected error message

1182 byte By tw@@niea at 2007-10-2 14:23:11
I have constructed a simple class and can't understand why I get an erro message : '( ' or '[' expected error message in the constructor.This is part of my code: public static void main(String [] args)throws java.lang.Exception{Operator operator = new Operator();}public Operator(){ ...

Error please help!

225 byte By CompilerCama at 2007-10-2 14:24:12
When trying to run chapter 15 KeyView in the Terminal I get this message: Exception in thread "main" java.lang.Error: Do not use KeyView.setLayout() use KeyView.getContentPane().setLayout() insteadwhaat does this mean.

Fix....help me if you can

1639 byte By jonathan10200102a at 2007-10-2 14:26:28
import java.io.*;//BufferedReader ?InputStreamReader - IOExceptionpublic class Echo {public static void main (String[]args)throws IOException{// must include this, more later// create a text input streamBufferedReader stdin= new BufferedReader(new InputStreamReader(System.in));//input 1st ...

NullPointerException

4319 byte By johnsmith12a at 2007-10-2 14:28:37
Hi guys, got a problem with the following source that compiles but on run-time I get a nullpointerexception. Do some of you guys have any clue about what could be the cause? Thanks.import java.io.*;import java.awt.*;import java.lang.*;import java.util.*;import ...

Compiling "printf" and "println"

767 byte By unknowncodea at 2007-10-2 14:31:03
Hi, I'm a little confused with my compiler, it seems to be quite happy with println however is giving me an error with printf. Having done the work at university and compiling fine with no errors, i bought the work home compiled again only to find over 19 errors all relating to a printf.For ...

JVM Crashes due to memory shortage ...

1323 byte By pankajatncsta at 2007-10-2 14:33:45
I have a Java application which runs as a server on my Windows 2000 Server machine having 2GB RAM and virtual memory specified as 2-4GB. I start the application with the options -Xms786m -Xms-786m.I have around 1500 clients that connect to this server and I open 2 dedicated server sockets for ...

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

3333 byte By johnsmith12a at 2007-10-2 14:34:58
Hi guys,the following code is giving me the above exception at run-time and for some reason I cen't run it from the console-another exception NoClassDefFounder or something appear if I try to run it from the console by increasing the heap to the max.I want to run it from my Netbeans5 IDE from ...

Unable to run code

539 byte By Farrukha at 2007-10-2 14:36:34
Hi!I have installed JDK 5.0 on my Pc. When I compile my code, it works perfectly, but when I run it using "java <filename>" it gives this error "Exception in thread "main" java.lang.NoClassDefFoundError: ExampleProgram"I have compile and run the same program on other Pc and it working ...

compiling code in a program to a java file?

156 byte By Astrofa at 2007-10-2 14:37:47
is there a way to in a program write code to a java file and compile that file? is there a way with a simple .compile or .run or something like that?

Can Someone Please Help Me With This

369 byte By Pillar22a at 2007-10-2 14:38:15
i keep getting booted from a game. It is online and it runs on java. these are the errors in the console.Error: 99205, -1024, 1, -65, java.lang.ArrayIndexOutOfBoundsException: -1024Error: 91456, MAARFNGV@ec4a87, [LXQKSIEVT;@110fe28, MAARFNGV@9e29fb, -72, java.lang.NullPointerExceptionError: ...

doc-files not being copied

4807 byte By mpbaker01a at 2007-10-2 14:39:30
[nobr]My doc-files folders are not being copied to the destination folder. I have an ANT script that selects a fixed set of java files to javadoc. For example, I am trying to generate a javadoc for our external client that only contains the API and DTO classes and not all services, etc. I have ...