Java Tools

159 byte By jpeknik at 2007-9-27 3:46:18
Hi, where can I find API docs for packages sun.tools.* and com.sun.tools.* ?I've searched java.sun.com website, founded nothink about it.

Complexity of a method tag

459 byte By Mordan at 2007-9-27 3:48:41
I would like to see a tag for the complexity of a method. For example the String method "concat" is increasingly slower when strings get bigger.People should try to include the complexity of their method, that would help a lot.If anyone who works on implementing the Java API sees this message, ...

What is Just-in-Time Compilation?

344 byte By sloanb at 2007-9-27 3:52:12
I've been reading the Core Java 2 Volume 1 book and it mentioned the ability to compile code natively to the operating system. I am very interested in this to build a fast application to run in for say windowXP etc.. etc. Can anybody lead me in the right direction for JIT and what its about ...

Help on Errormessage: should be declared in a file named

435 byte By vincnet1 at 2007-9-27 4:11:07
The error message is this:"hello$MenuPanel.java:8 class hello$MenuPanel is public, should be declared in a file named hello$MenuPanel.java"So, the class and the filename are the same, incl. upper/lower case. That would be the default solution to problems like this.The only problem I can come up ...

Doccheck and jdk1.4

2847 byte By ylansegal at 2007-9-27 4:15:32
Today I downloaded jdk1.4 to start evaluating it, and I quickly found that the dockcheck utility does not work with jdk1.4. This is absolutley horrible as I use doccheck to check every single class anyone writes in our company. Are there any plans to make it work with jdk1.4?Here is the output ...

Javadoc error code

367 byte By schofiel at 2007-9-27 4:29:20
I'm attempting to run an ANT build target from within Forte 3.0. The target is attempting to run Javadoc on my source tree, and always fails with Javadoc error = 2.Any ideas? I cannot locate an explicit error list to even find the meaning of the error code, so even a pointer to an error code ...

Please help me

625 byte By miztas at 2007-9-27 4:29:24
When im trying to compile my .java file I get the following errors:Browser.java:8: cannot resolve symbolsymbol : class awt location: class javaimport java.awt.*;^Browser.java:9: cannot resolve symbolsymbol : class awt location: class javaimport java.awt.event.*;^Browser.java:10: cannot resolve ...

unable to declare a non public top level classes in a file

843 byte By dushy13 at 2007-9-27 4:33:52
Hi,I was trying to port my project to 1.4 from 1.2.2. When i tried to compile a class which has one non public top level class along with another public top level class, i got the following errorRLModelGroupHandler.java:30: class MyInteger is defined in RLContext.java. Because it is used ...

Trouble Changing Versions

459 byte By adaraa at 2007-9-27 4:47:07
I'm trying to change from v1.3 to v1.4, but I'm having difficulties compiling in 1.4. Whenever I try, I get the following error message:c:\Java>javac MyProgram.javaRegistry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'has value '1.4' but '1.3' is required.Error: ...

Estimate on JavaDoc source code availability

95 byte By smhaus_neta at 2007-9-27 4:52:44
Has anyone heard any estimate on when the source code for JavaDoc 1.4 will be available?

IDE for Java on Linux

277 byte By WHolznera at 2007-9-27 4:56:30
Helllo everybody,I'm searching for a (free) Java IDE running on LINUX Debian 2.2 distribution. My PC has only 96 MB RAM. If you know an IDE which can be used for private use only in such a configuration it would be nice if you give me a hint. ThanksWerner

javac and zip/jar files that contain only sources

976 byte By rfletch6a at 2007-9-27 5:05:03
My program depends upon library classes written by someone else. These are distributed in a zip file containing only the .java files. I want to include that zip file in my javac sourcepath so that the classes will be compiled into the same place as the class files from the code I have ...

help on set, path and class path for J2sdk1.4.0

275 byte By J0329a at 2007-9-27 5:07:37
Having problems with a simple program HelloWorld, everytime I compile and then run the program and I don't see it working. I thought it probably woiuld be the classpath. I am using the Window xp. please give me simple instruction on the above.Johanna CHristian

Error with doc-files - please read me

1140 byte By markmontanaa at 2007-9-27 5:09:48
I am not a JavaDoc expert, and I'm having a problem with the doc-files feature. I read that you can place a sub-directory named "doc-files" in your source code directory. The purpose of this sub-directory is to hold additional (supplemental) files for your JavaDoc comments in your source code ...

Where to download ?

146 byte By Email55555a at 2007-9-27 5:20:54
I found the API documentation, and try to use it.But where to download the com.sum.javadoc package ? ( source code ? )Thanks.

can't find libjava.so.

712 byte By stacey411a at 2007-9-27 5:21:23
I have Redhat 7.2, I've installed jdk1.3.3_01. When I try to compile I get the error can't find libjava.so. My .bash_profile file reads as follows# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then. ~/.bashrcfi# User specific environment and startup ...

Poor documentation on JavaDoc

816 byte By wbrackena at 2007-9-27 5:26:58
I've been messing with JavaDoc for hours, and I'm not getting far with it. When I look at the J2SDK API, there is lots documented in the JavaDoc. However, when I make my javadoc comments and generate my javadocs, there are things missing. Some stuff works, but not others. For example, I can ...

How compile java to binary code

162 byte By marcosmartinsa at 2007-9-27 5:30:19
Hi,how can I compile a java application to a binary code (on Linux , Windows and Sun Solaris Operational Systems) ?Thank you, Marcos Martins.

Compiler did not create class

543 byte By MWAHEEDa at 2007-9-27 5:33:02
Hello, i'm new to java. i installed jdk 1.3, then created Hello.javaafter that i compiled it by doing javac c:\java\MyProgs\Hello.javait opened Hello.java as text. then i created html like <applet code = Helloheight = 200width = 200>This Page requires a java-capable ...

Probably a really Stupid Question - HELP!!!

596 byte By MarkTanka at 2007-9-27 5:38:44
I am brand new to Java, the kit, and everything inside it. After downloading and installing the software, I thought I would try some of the examples first before attempting to write one of my own applets. For this reference I went to: c:\j2sdk1.4.0\demo\applets\blink and clicked on the ...

Javadoc on classes & jars without Source

444 byte By dcmintera at 2007-9-27 5:43:24
Is it possible to generate Javadoc style HTML from a JAR containing only .class files ? Obviously I won't get comments, but having the basic API reference to work from would be most useful.I realise I could run javap against each class in order to generate stub source code, then run javadoc ...

Incorrect ClassDoc for nested classes

1923 byte By afarelloa at 2007-9-27 5:48:00
Hello,I think there is a bug in Javadoc concerning nested classes ClassDoc records extracted through the doclet API.In particular, ClassDoc records are correct if the container class is directly specified on the command line as a .java file or part of a package (i.e. the source is available), ...

Simple Compile problem, XML DOM java file

1082 byte By barzizoua at 2007-9-27 5:50:49
I have just started reading about the XML DOM which I intend to use in some way.I am trying to run a java file (DomEcho01.java from the java sun site) and it won't compile for me.There seems to be problems with using the javax.xml.parsers package.Why is this? Is there something stupidly small ...

JavaDoc duplicate class problem in 1.4

371 byte By comicma at 2007-9-27 5:58:11
We recently upgraded to Java 1.4 from 1.3 and we cannot get our javadocs to come out correctly anymore. We keep receiving warnings that state duplicate class: for every class file. I have seen a few posts of other people having the same problem, but none of them had any resolutions. Is this a ...

Compiling problem - urg

435 byte By barzizoua at 2007-9-27 5:59:04
my problem is that I am using jbuilder 4 professional to compile/run my code.However I want to use the XML DOM but jbuilder does not appear to support the necessary packages for use with XML.How can I get round this.Can I compile instead from the command line - I am using JDK1.4 which supports ...

Complier can't find my class!

395 byte By Dave9413a at 2007-9-27 6:11:26
I created 'class a' and try to import it to 'class b' using the statement "import a;".class a and b are in the same directory (say c:\mypro) under win98When I try to compile it using javac.exe it gives me an error like:b.java:1: '.' expectedimport a;^I tried setting the classpath (set ...

SDK 1.4 not finding classes?

737 byte By stevebjua at 2007-9-27 6:12:46
I just installed SDK 1.4 with Windows XP Prof.I set the PATH to: C:\j2sdk1.4.0\binI set the CLASSPATH to:C:\j2sdk1.4.0\jre\lib\rt.jar;C:\j2sdk1.4.0\lib\tools.jarWhen I compile a simple HelloWorld, the compiler works, but when I add a class in the same directory and try and compile it pukes. ...

interface expected errors

290 byte By duncanr3a at 2007-9-27 6:13:17
I keep getting an interface expected error whilst trying to compile a class:LinkAnalyser.java:6: interface expected herepublic class LinkAnalyser implements Analyser {even though I've checked my classpath to include the right path.talk about infuriating.

Is there any way to retrieve java source ie(.java) from java class (.class)

225 byte By kashif78_98a at 2007-9-27 6:13:30
I Lost my all java source file during system crash.But i have all class files.I want to get source files ie all .java files from that class.Is there any way to get my source from complied classs.Help me!!

LinkedList in MS Visual J++

472 byte By haramataa at 2007-9-27 6:18:31
Hello Java Experts. I'm trying to use the java.util.LinkedList services however MS Visual J++ states that this classis undefined. My program compiles on sun compiler and on JBuilder too, but not on Visual J++. What should i do to make it run on J++ too. Thank You for your help.Alon, Israel. ...

"integer too large" error for a long assignment

1267 byte By cmorisona at 2007-9-27 6:19:11
I get a compiler error trying to directly assign the value 2 to the 32nd power (4294967296) to a long as shown in "CASE 1". Note that I can indirectly assign this value to a long as shown in "CASE 2" below.CASE 1:public class Test{ public static void main (String[] args) {long testValue = ...

JDK1.4 and ObjectStore

318 byte By gnorketta at 2007-9-27 6:19:32
I'm using ObjectStore with my application. I just upgraded to 1.4 from 1.3 and am getting the following error Error: Unable to locate class java.lang.Objectwhen I execute the batch file osjcfp under ObjectStore.I set the classpath but still get this error. What am I missing? ...

restrict method summary to part of Javadoc

532 byte By aranna at 2007-9-27 6:24:37
If I have a javadoc something like the following:<code>/** Some special method with lots of rules defined in a list.* <ul>* <li>first rule in list* <li>second rule in list* <li> etc* <ul>*/</code>Is there a way to tell Javadoc that the first line only ...

cannot resolve symbol

447 byte By MWAHEEDa at 2007-9-27 6:36:27
Hello, i'm creating Employee Browser Applet i have 4 importsimport java.applet.*;import java.awt.*;import java.awt.event.*;import java.sql.*;then in public class EmpBrowser i have TextField theStatus = TextFileld(64);JDBC02 theDB = new JDBC02(theStatus);and its giving me 2 errors about JDBC02, ...

how can I document JavaBeans with properties and event separately?

164 byte By ProtsenkoNa at 2007-9-27 6:39:09
I need program which can recognize JavaBean class properties and events and create documentation in the kind: each method with keyword "propertiy" or "event"

XML support

334 byte By aym_7a at 2007-9-27 6:42:02
I have jdk1.3.1 and I need the XML packages, when I click on the download button for the packages, IE download window pops up, and I can't use getright since it's a button, so can anyone give me a direct link the packages file?The download is big (10MB) and my connection is slow so I have to ...

Directions needed to compile in Win 98

1853 byte By karl_ozaetaa at 2007-9-27 6:56:33
To the Experts of Java:I need your help. I have just downloaded JDK 1.3.1_03 and have installed it in [c:\JRE\1.3.1_03]. I have then deleted the downloaded files to save some disk space.After installing this, I added a path in the Autoexec.bat , the following displayes the whole path [SET ...

Linux help with instalation

196 byte By Galdarisa at 2007-9-27 7:01:58
Hey I have relly the slighest idea of how to install Java Vm on to my linux machine, im tried to figure it out but to no avail, so please instuctions in stupid peoples terms would help :-)!

Inheriting Javadoc comments

404 byte By ROGERNYEa at 2007-9-27 7:07:14
Hi there,Can anyone tell me how to inherit the javadoc comments from interfaces in the standard Java library please?I have an implementation of javax.naming.Context and wanted the comments from the original interface to appear in my javadoc.I added src.zip from the sdk to the -sourcepathAny ...

Urgent! Cannot run java programme. Pls help!

987 byte By nitrateno2a at 2007-9-27 7:11:52
1st question:I am using JDK 1.3.1_03 on Win2K Server. When I have compiled the java applications, I try to use "java <application name>" to run the programme, but an error message "Error occurred during initialization of VMjava/lang/NoClassDefFoundError: java/lang/Object" come up on the ...

Javadoc ignores first java file in sourcepath

302 byte By rchrenkoa at 2007-9-27 7:14:03
Javadoc 1.4.0 fails with the message "javadoc: No packages or classes specified" if there is only one java source file in the sourcepath. Even if I add more .java files, Javadoc continues to ignore the file whose name comes first alphabetically.I am running J2SDK 1.4.0 under ...

All of a sudden I can no longer compile?

891 byte By rgarabediana at 2007-9-27 7:16:41
I'm seeing the strangest thing. When I try to compile with javac, I now get tons of debug output that looks like this:count = 0, total = 110count = 0, total = 37count = 0, total = 149count = 0, total = 73count = 0, total = 8count = 0, total = 213count = 0, total = 43Additionally, javac no ...

How to get rid of the command window......

95 byte By javanicea at 2007-9-27 7:23:47
How to get rid of the command window onces the .bat file has been executed?Thanks

Huh bu i am in the same directory.

376 byte By rom399a at 2007-9-27 7:27:18
When i try and run the appletviewer HelloWorldApplet. From the same directory i have the applet in i get "I/O exception while reading: J:\HelloWorld (The system cannot find the file specified)"drive j:\ is a mapped drive on my system, Can't see why that should be a problem..Running Win2000k ...

javadoc 1.4 warns of duplicate class with multi-class .java files

1193 byte By jaygordona at 2007-9-27 7:31:30
I just upgraded from 1.3.1 to 1.4. Running javadoc on my package worked fine with with 1.3.1 but I get "duplicate class" warnings with 1.4. I am sure that I have no duplicate classes. Each of my .java files contains a single top-level class except for 2 files, which contain multiple non-public ...

Adding a class in the JDK

344 byte By tolsama at 2007-9-27 7:33:50
Hello eveybodyI'm trying to compile a .java wich extends java.util.HashMap.The problem is that this class is not found, when i compile.So i'd like to add it in my jdk : How to do that ?Should i use a .jar file ?Note:my JDK is JDK1.1.8My mail: tols@libertysurf.frMany thanks tols, ...

Error while interpe

286 byte By jonsofa at 2007-9-27 7:37:50
I have set SET CLASSPATH=.;C:\progra~1\j2sdk1.4.0\lib\tools.jarto my autoexec.batWhen i am interpretering the class file i recieve the error belowException in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp/classWhat is the problem?

what is "@(#)" Meaning at Java source file head ?

368 byte By airforce1a at 2007-9-27 7:38:08
Hi, in Sun java source code, use the "@(#)" to indecate the filename, why use this symbol?e.g. in java.lang.String /* * @(#)String.java1.150 01/12/03 * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. ...

Getters and setters

89 byte By dattarda at 2007-9-27 7:39:15
Should I document (using javadoc tags) getters and setters of a JavaBean ?D

@param

368 byte By frisco_stevea at 2007-9-27 7:40:15
All of the tags work, except the @param tag. example:@param a String that specifies ...doc.bat:c:\jdk1.4\bin\javadoc -d html -sourcepath d:\ com.pipi -publicIt's just not there in the docs. The other tags, like @see and @return, work!I'm using javadoc 1.4Anybody for an ...