Swing App to Exe?

465 byte By akhalil100 at 2007-9-26 12:53:42
How you can convert a Swing App to Exe? Someone might ask why convert it when Java runs on any problem? Simple, no need of the JVM to be installed on the client machine and be harder to decompile back to source code which I heard its very easy to do with the decompilers.What tools can I use to ...

How to display the image file located on the local computer?

156 byte By yingbiao at 2007-9-26 12:53:49
I tried to use getimage to get the image file on local computer, but it does not support.Is there other method to do that?Thanks

Unexpected behaviour using -sourcepath and -d

780 byte By TBierhance at 2007-9-26 12:54:38
Hi everybody,I'm trying to hunt down an error in the build.xml that ships with Tomcat 4. My package structure is not correctly rebuild.The error seems occur when compiling::dirbuildsrc :dir src\org\informationswirtschaftTestServlet.java :javac -sourcepath src-classpath ...

JavaCC PROBLEM

1085 byte By r-javaid at 2007-9-26 12:56:43
I am writing a simple home-made language in JavaCC. What I need to do is read the source program from a file not from the keyboard. The code header at the moment is:PARSER_BEGIN(Addition) import java.io.*;import java.lang.Integer; public class Addition { public static void main(String[] args) ...

Error Using java command. Please help!

513 byte By Joe8762 at 2007-9-26 12:57:42
Ok, I'm having problems running my java programs. I use the javac command, and it compiles it right, and makes the class file. But if I type java anythingIt won't work. It comes up with the error message:Exception in thread "main" java.lang.NoClassDefFoundError: BigDebtWith BigDebt as the ...

Error Using java command. Please help!

513 byte By Joe8762 at 2007-9-26 12:57:43
Ok, I'm having problems running my java programs. I use the javac command, and it compiles it right, and makes the class file. But if I type java anythingIt won't work. It comes up with the error message:Exception in thread "main" java.lang.NoClassDefFoundError: BigDebtWith BigDebt as the ...

Check code conventions

336 byte By eharrow at 2007-9-26 13:01:36
Anyone seen or have any ideas about using javadoc to check code for code conventions compliance? I read about use of it to report source where variables are not declareed private ( http://www.smotricz.com/kabutz/Issue035.html) - it might be interesting to apply this to other conventions such as ...

Changing classloader for javac

65 byte By Jbeyer at 2007-9-26 13:08:02
Is it possible to change the classloader for javac?

GJC docu

146 byte By chris7777777 at 2007-9-26 13:15:24
Hello,does anybody know a source for documentation of the GJC (the current official java compiler) ?Thanx,Chris

how to display all compiler errors ?

232 byte By ManuForJava at 2007-9-26 13:17:17
hello !I have a questions: how can i see all the errors occured while compiling. by default the compiler shows the first 100 and stops then. does anybody know a solution ?Thanks in advance...Manuel

Forte Editor:View methods/variables for a specific class

502 byte By juanjara1 at 2007-9-26 13:18:22
Hello All:Iam new with Forte for Java.When I used the Forte Editor I notice that onlysome Classes allows me to see the list of methods and class variables.For Example if I type System.. After the "." a pull down menu is displayed with all methods/variables.If I used another class from another ...

Commapi problems...

736 byte By andreneto at 2007-9-26 13:20:40
I am having lots of problems with the commapi.When I run the BlackBox it cannot find any serial ports. I have the win32com.dll in the jdk\binThe comm.jar, javax.comm.properties and BlackBox.jar in the jdk\lib. I have put this in my autoexec.bat:SET ...

Compiling servlet class:javac gives 'bad command'

1777 byte By scott7379 at 2007-9-26 13:24:49
I have a servlet class in the path: E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classesI am using Tomcat 3.2.4 and Just Go (the tomcat launcher) provides this log of my ...

beginner's question SOS

696 byte By izheer at 2007-9-26 13:37:00
Hi, everybody. Thanks for your time. I am an university student major in IT and this semester I am doing Java course. Last week I install the JDK1.3 in my computer and try to run the java file( the assignment). When I use "javac" command to compile the file, the jdk can work properly, detecting ...

javac.exe shut down by windows2000

388 byte By chunchet at 2007-9-26 13:37:36
now i am using windows2000. when i trying to compile the .java file with 'javac', windows2000 prompt me a message "java.exe has generated an error and will be closed down by windows. You need to restart the program. A log file has been created."The .java file didn't compile at all. This was ...

compiling with jdk1.4.beta2

368 byte By abrahamgsoto at 2007-9-26 13:38:52
i have my project running with jdk.1.3.1, but i want to compiler it in 1.4 beta2 ant i haven't sucess because a class have the error:Error: (0) initialization error: class Error const *; class file has wrong version 48.0, should be 45.3 or 46.0.Why this?i don't know if it's configuration's ...

myClass$1.class files when I compile

388 byte By garyls at 2007-9-26 13:54:26
When I compile as followsjavac myclass.javathe following files get createdmyclass$1.classmyclass$2.classmyclass.classwhy am i getting the first two .class files?i'm running jdk 1.3.1 and i also have Forte CE 3.0 installed.this never used to happen.does it have something to do with Forte?Any ...

1st time compile not working

848 byte By ajholl at 2007-9-26 13:57:47
I am having a problem compiling my 'SimpleProgram.It is saying 'cant read SimpleProgram.java. I have my sourcei in a dir called javasc. My compiler is in jdk1.3.1_01\bin. I can call javac and it comes up ok but cant find the source. If I do a 'set' command on the dos command line, I can see ...

Comiling in dependency classes - Logger package

577 byte By yusufm1 at 2007-9-26 14:14:34
Is there a way to compile in all classes used by a Servlet into it, so that the only file to distribute is the Servlet.This is because I get the error:java.lang.NoClassDefFoundError: java/util/logging/Loggerat adminServlet.(adminServlet.java:10)When trying to use the j2sdk 1.4.0-beta3 "logger" ...

Documentation for source code

160 byte By gcollector at 2007-9-26 14:17:27
Hi,I have just downloaded the source code for the Java 2 SDK v 1.3Is the documentation for the source code available ? Thanks

How to write XML code in my docs?

1039 byte By shaikhm at 2007-9-26 14:20:57
Adding following in the class comments strips off tags. Can anyone help. Thanks * <servlet> *<name>Configuration</name> * <description>Configuration initializer</description> * <code>ik.common.ConfigurationServlet</code> ...

Allow access to the raw source code through the Doc interface

797 byte By wenjieqiao at 2007-9-26 14:21:49
This was a bug submitted by someone else a long time back. The id is 4113492. You can view it at http://developer.java.sun.com/developer/bugParade/bugs/4113492.htmlIt's declared as dup of another bug. However in my mind it's not. In my project, I need to use Doclet to get all documentation ...

Why are interfaces compiled ?

516 byte By IDI at 2007-9-26 14:22:03
My understanding of an interface until now is :It is a contract for classes which implement those.That means the "compiler" checks classes who declarethe implementation of a particular interface :* that the methods of the appropriate interface are implemented and so on ....:But why are those ...

first time compiling error

272 byte By anua11 at 2007-9-26 14:23:50
I just downloaded jdk1.2 on windows me and when i try to compile my code or just run javac.exe fileI get an error saying "javac has caused an error in MSVCRT.DLL.javac will now close.Please let me know solution for this.ThanksAnu

javac: The exception Privileged instruction, why?

2221 byte By kashouka at 2007-9-26 14:35:10
Hi,I apologize for posting this question twice, I'm brand new to this forum. My question is both relatedto installation and compiling (I must have done a bad installation?).Here is my problem:I just installed jdk1.1.6 on my computer.The examples work fine but I can't compile.I get 2 different ...

Compiling in dependency classes

543 byte By Robgus at 2007-9-26 14:42:21
Is there a way to compile in all classes used by a Servlet into it, so that the only file to distribute is the Servlet.This is because I get the error:java.lang.NoClassDefFoundError: java/util/logging/Loggerat adminServlet.(adminServlet.java:10)When trying to use the j2sdk 1.4.0-beta3 "logger" ...

class already defined

863 byte By garyj2 at 2007-9-26 14:47:15
I've been using the command: javadoc -package -d "c:\deployment2\docs\remoteapps\remoteapps private api" -header "<b>remoteapps v2.1.5 </b>" -sourcepath c:\Deployment2\source @c:\deployment2\privateList.txt but keep getting a whole lot of errors like: Loading source files for ...

JDK for 486 with 12Mb Ram

460 byte By murphyed at 2007-9-26 14:48:33
Im wondering whats the best version of jdk for a 486 Computer with 12mb. I want to be able to compile simple java programs and run them. Im only learning java so I wont need many of the features in modern java but still want to be writing code that complys with newer versions of java. If you ...

JavaDoc Crashes when using -linksource

2186 byte By meldrum at 2007-9-26 14:51:07
I tried upgrading our JavaDoc compilation to version 1.4.beta 3. When I run JavaDoc with the new "-linksource"option it crashes. Note we have over 10,000 classesin our product, and perhaps that is a facor. If Iturn off -linksource, it runs to completion.This is the error ...

Non fully qualified class names in parameter list

328 byte By duaneblock at 2007-9-26 14:59:15
Hi Folks,When I generate my documentation the fully qualified class names (for each parameter) appear in the parameter list for methods. In looking at the documentation on this site, a hyperlink to the class using the only the class name appears. Can anyone provide thoughts on how this is ...

putting a few lines on top of the generated documents

121 byte By amit234 at 2007-9-26 15:04:51
Hi,How can I put a few lines like copyright or companies name on top of all the generated javadocs.

'catch' without 'try'

3534 byte By johnny1molina at 2007-9-26 15:13:09
when i compile the code below i get the following errors:java:86: 'catch' without 'try'.catch (Exception e){^java:114: 'try' without 'catch' or 'finally'.the code is as follows:import java.sql.*;import java.io.*;import javax.servlet.*;import javax.servlet.http.*;public class bal ...

Compiling source code

709 byte By XAPHS at 2007-9-26 15:16:46
Suppose that I have a source file Welcome1.java in folder xaris\seminar\examples in hdd e:(ie e:\xaris\seminar\example\Welcome1.java)If I type the following command everything workds perfectly. The command is:c:\>javac -sourcepath e:\xaris\seminar\examples -d e:\xaris\seminar ...

How to have

381 byte By cdore at 2007-9-26 15:17:03
Hi,I would like to have the final word modifier added in the method summary, so that it is easy to see which method can be subclassed, and which cannot.It is already that simple to see which methods must be subclassed, as the abstract modifier is visible in the summary. Why not final, to be ...

compiling under jdk1.1.8 and jdk1.3.1

641 byte By Markus Nohr at 2007-9-26 15:18:21
If I compile a package that contains some classes calledxe5e6c2c4c2c4d9f140404040f0f1f0.java, xe5e6c2c4c2c4d9f140404040f0f1f1.java,xe5e6c2c4c2c4d9f140404040f0f1f2.java.........xe5e6c2c4c2c4d9f140404040f0f2f1.javaxe5e6c2c4c2c4d9f140404040f0f2f2.javaand so on....with javac -d.... -classpath.... ...

problem in compiling the sample applet

1052 byte By funny_today at 2007-9-26 15:18:58
hello: im installed jdk 1.2.2 now i wanna folow the instruction written in thePDF document.i did everything as it is but when i arrived to the step"compiling the sample applet" i issue the command " javac -g src/com/sun/javacard/samples/helloWorld/*.java"but it doesn't work it give me a ...

javac ver1.3 works, but javac ver1.4 fail

838 byte By zmaster at 2007-9-26 15:23:44
Hi I have the following 2 files which can be compiled under jdk1.3, but fail to work under jdk1.4 beta3. Any idea?<code>//Test.classimport packc.*;public class Test{public int getData(){return 22;}public static void main(String args[]){System.out.println("Test.java");Test tt=new ...

javadoc not showing expected comments

2071 byte By mich_cl at 2007-9-26 15:32:24
Hopefully, someone else will have had this problem. For some reason, the following code does not show what I was expecting. What I did see was a listing of methods, parameters, and return (just the first line of the method). This info was in a summary table also. I expected to see the class ...

converting a GUI application to one exe file

369 byte By ravivhr at 2007-9-26 15:40:24
I have a GUI application that I would like to distribute as a exe file (no need for jvm installation).My application must run on Solaris 2.7, HP10.20.Is there any tool that creates that kind of exe file?I've read that there are several compilers that create an exe file for Windows but not for ...

getting classes in package

1319 byte By geschan at 2007-9-26 15:41:19
Hello,I have a problem with getting some external classes into my package.To get a better view over the situation I'll show it as an example:the class "Zoo" is in the directory: town/district1/with the follwing content:package town.district1;public class Zoo{Elephant elephant1 = new ...

Inserting link to a file

501 byte By paulmoloney at 2007-9-26 15:49:09
I'd like to have a word in the Javadoc footer be a hyperlink that opens a HTML file. However, my problem is to with relative/absolute links. I can't make this an absolute link since I don't know where the user will unpackage the Javadoc files to. Neither can I make it relative, since the ...

How do you protect your code from decompilers?

107 byte By qfmomen at 2007-9-26 15:54:04
I saw the answer but i am not satisfied with that. pls if anyone know then tell me in detail.

cant compile on j2me

426 byte By uneeb786 at 2007-9-26 16:03:14
someone plz help me compiling a simple helloworld java 2 microedition program i use the following command C:\jdk1.3\bin>javac -g:none -bootclasspath %SUNJ2MEHOME%\lib\midpapi.zip -bootclasspath %SUNJ2MEHOME%\wtklib\kvem.jar HelloWorld.java and the following error comes alwaysFatal Error: ...

JAVA COmpilation,who can offer help

193 byte By cygnus81 at 2007-9-26 16:08:27
DEar all JAVA USER..is there anyway after compile the *.java filethen converting it by using exe so that no need using java XXX.java prompt to run the program

Redirecting javac error messages: how?

314 byte By sr4655 at 2007-9-26 16:08:50
Learning java, I desire to compile several programs in batch fashion using make or ant, Doing this I have a need to review compiler error messages for the programs that were compiled. Anyone know how to redirect compiler output messages to a file? Am using Win 2000 platform. HAPPY HOLIDAYS!! - ...

can't compile any java files using SDK1.3.1

533 byte By nitrateno2 at 2007-9-26 16:08:57
I've recently downloaded a java decompiler and installed in my computer. I've used it to decompile a java file. But than when I wanted to use the javaSDK1.3.1 to compile another java file in the dos prompt, the statement"Bad command or file name"appeared . I've uninstalled the decompiler and ...

problems with jdk 1.2 and win XP

532 byte By 133911 at 2007-9-26 16:12:42
I have problems to make the jdk 1.2 running under Windows XP. The installation causes no problems. I set the path correctly but when I try to use java, javac or jar, the following error message occurs (not on the command-line but in a windows xp-panel): "jar.exe hat ein Problem festgestellt und ...

How to compile .jasm files?

138 byte By Kadaner-Motorola at 2007-9-26 16:13:11
I suspect this is a foolish question, but I cannot find a tool compiling .jasm files.Thank you in advance.Mike

Design Documents on Javadoc for JDK 1.3

468 byte By smh3r at 2007-9-26 16:13:55
Is anyone aware of any documents describing the design of the code for the standard Javadocs classes in JDK 1.3 beyond the comments in the Java files?I update that code to add features I need, but I usually just have to follow the code to see where to make changes. It would be helpful to have ...

Compiling to a dll format

196 byte By pedro123 at 2007-9-26 16:16:44
I want to create a dll for my asp page with javabut I do not know how to compile it in thisformat.I need all help I can getThanks in advanced pedro