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

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" ...

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 ...

'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 ...

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 ...

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 ...

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

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

Error during running .class with jdk1.3

186 byte By AndreyYesyev at 2007-9-26 16:17:35
All programs successfully compiled. But then when I want to start them java gives the Exception "NoDefClassFound". I don't know what the problem is. Please help! Thanks!!!

JNI - make dll (fatal error LNK1181)

951 byte By barkle at 2007-9-26 16:19:07
I make a simple jni program ( it just print "Hello World" ) but, when I compile this program I got a LINK errorD:\JavaProjects\HW>cl -I c:\java\jdk1.3.1_01\include -I c:\java\jdk1.3.1_01\include\win32 -I c:\java\jdk1.3.1_01\cinclude -LD helloworldimp.c -Fe hello.dllMicrosoft (R) 32-bit ...

Applet Working in the AppletViewer not Working in Explorer

7472 byte By periklis781 at 2007-9-26 16:36:11
After a few compilation of the following code the changes I made to the java file were only viewed by the appletviewer, not the explorer, the change I have made and is not shown in the explorer is setting the foreground and back round of calPanel label. Please compile the code yourself:import ...

Java Compiler and Windows ME

283 byte By kiki at 2007-9-26 16:48:46
I'm trying to install the compiler and I've followed the instructions to the letter but I still keep getting the bad command or file name error when I type javac into the MS-DOS screeen. I'm not sure what is happening, does anyone have any advice? Thanks in advance.

SImple Q

383 byte By wikey at 2007-9-26 16:50:00
Hi all ,I just starting learning J2EE ..and i having this problem when compiling a code when try to import javax.servlet.http.*; Compliler gave me this error Package javax.servlet not found in import.I have install JDK standard edition version jdk1.3.1_01 and JDK Enterprise Edition j2sdkee1.3 ...

java.lang.ClassNotFoundException

303 byte By jeffroS at 2007-9-26 16:50:07
Compiler is JBuilder5 (the free one)It can't find my main()What do I do.Also, I posted the same message in one of the otherforums before I noticed this one. Sorry! Please forgive me, I promise I'll do better next time!Thankx,Jeffro ...

Switching from 1.3 to 1.4

600 byte By ktulu_tco at 2007-9-26 16:56:11
I have decided to make the switch from Java 1.3 to 1.4, and along with it, I needed to implement new printing procedures. But, alas, these new procedures require classes that are not in java 1.3. Now, it turns out, many of my customers haven't and don't plan to upgrade to the newest jre. And ...

java with windowsxp

282 byte By sudhir_ptl at 2007-9-26 17:19:38
i cannot compile java programmes.When i type "javac <filename>" in command windows an error message pops up saying "javac.exe encountered a problem,please report this problem to microsoft"Is this problem of windows xp or it is really of javac.exe problem.

Compiling large package structures

1742 byte By pharaohh at 2007-9-26 17:25:10
Hi all...I'm so fed up with compiling packages...I'm at my wit's end. I've been trying so many compile combinations with -classpath and -sourcepath and -d my eyes are feeling funny. I've read nearly every decent thing about compiling packages on the Developer Connection and Google, etc, ...

Compiling Applets

633 byte By JeffreySchwarz at 2007-9-26 17:41:27
I have installed the JDK 1.3 and succesfully compiled my first Java application (appropriately named HelloWorld.java). However, I'm getting an error when I try to compile my first Applet. Why would I get an error in one instance but not the other? Here's the ...

Weird error message

336 byte By cathysand at 2007-9-26 17:42:29
Hi!I just ran my first compilation. Or so I thought. i got this message and would be soo happy if anyone could help a Java newbie in need:'javac' is not recognized as an internal or external command,operable program or batch file.I have set the PATH and I run Windows 2000. Any ideas, anyone? ...

How to run the program in the applet

696 byte By sudhamary at 2007-9-26 17:55:53
I have installed the JDK 1.3 and succesfully compiled my first Java application (appropriately named HelloWorld.java). I could compile the source file also.But i am getting an error when i am trying to run the program in the applet iam getting an error as"start applet not initialised"and the ...

How to compile some java file to a .EXE file?

69 byte By jack at 2007-9-26 17:57:42
Hi:How to compile some java file to a .EXE file?

how to convert a java file to .exe

599 byte By mdawg at 2007-9-26 18:05:05
Hey i have a game that i have created and it has like 10 java files and one of them is the main file that i run and compile and it runs the entire game as a GUI. I also i have some images and sounds. What i want to be able to do is put all this in one file as a .exe and all i have to do is just ...

Another misunderstood error

515 byte By Pansn at 2007-9-26 18:13:18
Heyo all there,im quite new to java and probably its a stupid fault i made. But i wrote a program and used the WindowAdapter class from java.awt.event.*(i hope thats written right). And when i compile it, i get an error i dont understand :testfenster.java:14: cannot resolve symbolsymbol : class ...

Compiling package

737 byte By sabond at 2007-9-26 18:27:51
I don't know if this is the correct place to call for help - specially since I don't know if my problem falls in Tomcat domain or Java/JSP domain.I have a fairly simple structure of classes -classB creates instance of classA both are part of a package called as util - both the classes compile ...

JDK1.3 compilation question?

573 byte By mpokky at 2007-9-26 18:38:42
Why when I use javac.exe compile the programme,it always reply "Javac:invaild argument:'my filename .java' "I have set the path and class path ,java_home,the class name is also as the same as the file name.Could u tell me why?Thank u!By the way,must useing javac.exe compile the programme be ...

javac: Command not found

147 byte By micklerlop at 2007-9-26 18:41:32
I always have to type to the full /usr/java....javac to compile.... how to fix that.. could u explain in details? thanks a bunch.....

compile problem

149 byte By mpokky at 2007-9-26 18:44:32
I have set the classpath but the classes have been packaged,so I can't compile the programme.Do you have some way to solve it ?

"Access Denied " error....Please help solve

1277 byte By jasun17 at 2007-9-26 19:06:29
I had recently installed the jdk1.3 (Win ME version). I have no problem with my path variable although I doubt the classpath variable setting, which is given as follows.D:\java\p_java>set classpath=%classpath%;D:\java\jdk1.3.1_02\jre\lib;D:\java\jdk1.3.1_02\lib\where p_java is my java ...

.exe from Java

265 byte By ponli at 2007-9-26 19:16:48
I've been told by a friend that one can make .exe files out of java. I assume this is true because I've seen people distibuting programs that have been written in Java, but all I seem to be able to do is make class files. Anyone know what I can do?

class file to native code, when no access to source code?

237 byte By Myzarelle at 2007-9-26 19:21:09
HiI want to have the ability to compile a class file to native code in memory I can call, without need of source codeand even if the class file is changed so you cant decompile it to a java fileM

java.lang.NoClassDefFoundError

843 byte By jeffroS at 2007-9-26 19:24:27
I am using JBuilder3.0 I don't understand theProject properties.Do you have to use this option. If yes, what do you put there. I tried the following...open project propertiesclick on setnavigate to my source file (my main())click on my source fileclick ok when I run it I get the following ...

Strange Names

321 byte By armjamil at 2007-9-26 19:27:01
I am having strange problems when I am compiling my java files it is naming it strangely.......like I compiled a file called "CountDays.java" and the class file i got was "DayCounter.java" which the name of the previous file I compiled.... it is doing the same thing over n over.... Can anybody ...

How to set the PATH?

784 byte By tony_Lincoln at 2007-9-26 19:32:08
I am trying to use 3D-masterSuite for java now. I tried to run a program named "HelloCone.java". In theprogram there are some lines like these:import com.tgs.inventor.* ; import com.tgs.inventor.awt.* ; import com.tgs.inventor.nodes.* ; import com.tgs.mastersuite.graph.* ; import ...

Exception in thread "main" java.lang.NoClassDefFoundError

569 byte By jhoaglund at 2007-9-26 19:34:33
I have been getting this error in every program that I compile. Even if it is a program that used to work. I don't get this problem when I compile, actually. It is when I try to run the .class file. I don't know what happened. The way that I would run Example.class is...java ...

initialization error before compiling

406 byte By olliezzz at 2007-9-26 19:45:11
I'm trying to build the excellent Bruce B. Blackshaw Java FTP aplication under JB5 and have an very uncommon error : "FTPClient.java": Error #: 750 : initialization error: com.borland.compiler.symtab.LoadError: class file has wrong version 48.0the errors occurs before compiling and helps it ...