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 ...
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, ...
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?
724 byte By
jonsofa at 2007-9-27 7:42:39
I have written the following code from a book :class John {String color;String sex;boolean hungry;void feedJohn() {if (hungry==true) {System.out.println("Yum -- a peasant!");hungry=false;} elseSystem.out.println("No, thanks -- already ate.");}void showAttributes() {System.out.println("This is a ...
I dont know why. My javac.exe work correctlly before 1 day ago. But now, when I javac any .java file, I got a error.(re-install JDK is no effect)I use it under win2000. Can anyone tell me how to solve this problem ? Please ~~Thanks a lot !C:\Java_Source>javac javabeans.javaerror: cannot ...
222 byte By
jonsofa at 2007-9-27 7:54:55
class Sample {void Method() {System.out.println("I am John");}public static void main(String arguments) {Sample s=new Sample();s.Method();}}where is it?
404 byte By
narcca at 2007-9-27 7:56:46
I'm trying to create a package of objects to use in other programs.I set the package up like:package mypack;public class objecta{...}class objectb ...However when I include the package (with the package in a directory in my classpath) likeimport mypack.*;I get a 'package mypack does not ...
Hello everyone:I am new to java programming, I have installed jdk1.3.1_03 (correctly) but I need to knwo how to set up the class path in the windows xp, please give me simpe instructions on this. Thank you for your help.Best RegardsJohanna
500 byte By
atanyera at 2007-9-27 7:58:15
Hi all;I have a question about the class files. Let's say that I have some errors when I compile the code. I make the corrections and recompile the code again. However, for some reason the new class files are not overwriting the previous ones.Therefore every time I compile the code I have to ...
640 byte By
bendowja at 2007-9-27 8:14:41
I am wondering why no one ever wants to see all their errors when compiling programs. Several times I have looked for someone who is in the same boat as I am. I can't seem to find any hints or solutions to this problem.I know that when compiling code in c or c++ you can redirect any ...
Hello everyone:I have downloaded jsdk1.3.1_03, (Windows xp)? what do i type in the class path? Once I am done with setting the classpath. I typed the helloworld program, and it give me an error specified path not found).Please help, through this. ...
I've tried using the "-target 1.1" (in the 1.4 JDK) but it does not seem to do what I expect. I am developing a library that can be used in applets. The Internet Explorer default Java VM is 1.1. Testing with the Microsoft VM is one option, but I would rather see incompatibilities at compile ...
Have a java file which has a public and a non-public top level classes. Here is the file named MainClass.javapublic class MainClass{//....blah...blah..}/*Note: This is not public.*/class AnotherClassInSameFile{//....blah...blah..}AnotherClassInSameFile is being used by classes outside the file ...
i have recently formatted my computer, and re-intalled everything back, i have windows xp running and i just downloaded the java v. 1.4 standard edition, but it doesn't seem to work, i don't know why, it does complie with javac but when i run with java <name> it throws and Exception in ...
233 byte By
ATOVa at 2007-9-27 8:41:39
How to change the $ sign in a class name? After compilation I get classes with names like abc.class, abc$1.clsss abc$2.class etc.. How do I get different names (without the $ sign) that will be accepted by my web host.
i have jdk1.2 in my c drive and just now i have downloaded and installed jdk1.4 in my d drive. The program,which is supposed to run with jdk1.2 is working fine. but when i tried to use some new thing,(e.g. i tried to use the DragSourceAdapter class, in my program)..its giving error saying that ...
compilation error on jdk1.2.2error statement " javac.exe has generated errors and will be closed by the windows. you need to restart the computer" .
I recently purchased a new laptop that has Windows XP. If I compile a "hello world" class on another machine and copy it over to the XP box, I can run it. However, I can not run javac on the XP box to compile the same file. Any Ideas why?Thank you
Hello friends,I want to make an executable and a setup file for my Java pojects.plz help me,
775 byte By
pw123a at 2007-9-27 8:59:10
the copuetr i have is windows xp.i have download bluej1.1.5 and jdk1.1.3_01 and tryed to compile the hello example as well as aproject of mine in dos ,but whe i type ex:- module add java it gives me a error saying 'module'is not recognized as an internal or external command,operable program ...
Hi,I've tried following the instructions on how to install the SDK on linux and it doesn't seem to be working. The instructions I'm following can be found at: http://java.sun.com/j2se/1.4/install-linux.htmlIt seems to install correctly, but when I try to run java or javac, it gives me:bash: ...
I can compile on xp but I cannot start my applets, in DOS example :c:\BIN> appletviewer balloon.htmlc:\BIN>After this nothing happens..I mean it does something but it does not start the applet. I tried everything looking up in the advanced browser configuration but could not find any ...
hi all So here is more information regarding the coimpilation problem that i 'm facingi have got jdk1.2.2 loaded on my system. the first program that i compiled e.g. when i gave the statement for compiling such that javac try.java it gave an alert box with the error "javac has generated errors ...
I am trying to compile a SWING program (i.e. JFrame, JButton etc). Program does not have main method.Obviously when I compile, I getException in thread "main" java.lang.NoSuchMethodError: main. Isnt it allowable to have a Swing pgm without a main method ?Am I missing something obvious? Do I ...
1099 byte By
darinda at 2007-9-27 9:20:09
I just installed J2SE 1.4.0_01 on Windows 98.I have set my CLASSPATH environment variable toCLASSPATH=.;C:\j2sdk1.4.0_01\jre\lib\rt.jaras well as my JAVA_HOME toJAVA_HOME=C:\j2sdk1.4.0_01However, now when I compile an applet of mine which previously compiled fine with J2SE 1.3.1, I suffer from ...
Why the optimizing with -O the some times, do not improve the performance of the program?Help me! Thanks!
I am have simple programm that consist of 6 classes. I am declare an interface that have method witch can to throw an exception. But when I'm call this method in constructor without catching of that exception, I'am do not got compile error.You can download source code fron here: ...
359 byte By
txatia at 2007-9-27 9:32:19
Hi, I have a GUI application that is run with JDK 1.2.2 on Solaris 2.8, but the performance is very poor. I migrated the JDK version up to JDK 1.4, but I did not recompile the application classes. The migration did not improve the speed of the application, so I wander if it was because I ...
Does JCreator offer a compiler that has the code completion (like MS intellisense)? If so, is it in the free version or do you have to purchase it in as one of those additional features? I think that's what I like so much about J++ is that it has the intellisense to help speed up the coding ...
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet> at java.lang.ClassLoader.findBootstrapClass(Native Method)> at java.lang.ClassLoader.loadClass(Compiled Code)> at java.lang.ClassLoader.loadClass(Compiled Code)> at sun.misc.Launcher$AppClassLoader.loadClass(Compiled ...
6169 byte By
RyDera at 2007-9-27 9:50:53
My arrays are not diplaying under the title Creit and Debit like they are meant too.Here is my code, after the last JOptionPane.showInputDialog all my static text fields disappear, and nothing is displaying like its meant too. Cut and paste save as prog3c3v2 to get an idea of what im talking ...
Hi,I am new to java programming, and at school we are using JDK 1.2 and it simple to compile usingjavac test.javabut I download 1.4 and am using it on Windows XP.I am just having problems using the javac command?Is there an alternative command for it.Plz Help it would be ...
We can convert the java class file into source file using jad. Is there any solution to restrict this conversion (java class file into source file).
622 byte By
baljeja at 2007-9-27 10:33:22
Hi,I have a problem compiling files that uses the 'package'-statement:I have 2 files ClassA.java and ClassB.java. ClassA uses objects of type ClassB. When I compile ClassA.java the compiler also automatically compiles ClassB.java. No problem so far.But when I add "package mypackage" to ...
Redhat v7.3Installed J2SKD1.4.0_01 from RPM'sI can compile the 'basic' programs that do not use the 'import' variables.Upon attempting to compile anything (Swing/AWT) etc. from anything other than from my local dir I get an error.src.java:lin_no:error:Cannot find class "ClassName" [JLS ...
Hi,What I am going to ask isn't a feature of standard Java so pls pay a little attention.Declaring char arrays is painful in Java and extremely easy in C/C++, e.g.In Java:char name[] = {'F','a','i','s','a','l'};In C/C++:char name[] = "Faisal";What I want to do is to do the same in ...
Hello,I'm an absolute beginner. I work in the Windows 2000 Professional environment. I downloaded J2SDK1.4.0_01 but I cannot run HelloWorldApp. After typing javac HelloWorldApp.javain the command line I only get another prompt (after delay of some secs).I downloaded and installed the program ...
Hi I created a class called HTMLPageReader in file HTMLPageReader.javaand a class called Browser that uses this class with the command: import HTMLPageReader;at the top of the Browser.java file.Everytime I compile I get this error:Browser.java:12 '.' expectedimport HTMLPageREader;1 errorwith ...
929 byte By
ababieca at 2007-9-27 11:10:19
Ever since I upgraded my win2k 256MB machine from 1.2.2 to 1.3.1_03, I've noticed a lag every time I compile and run my java programs. It's almost as if the lag is introduced when java or javac starts and I can't really tell if performance is any better or worse after that. To test this out, ...
454 byte By
peacheya at 2007-9-27 11:11:05
I'm trying to run JDK 1.1.8 on Windows 2000, but every time I try to run javac.exe I get an Application Error that states the following:The instruction at "0x10000c507" referenced memory at "0x00000000". The memory could not be "read".JDK 1.3.1 is installed on my machine as well, but I can't ...
200 byte By
Zennena at 2007-9-27 11:19:18
Hi,I'd like to use a compiler directive like C or V basic.I don't know if there's in java. If there is, can you give mean example how to use it.Thanks in advance,
352 byte By
pohgka at 2007-9-27 11:41:14
I'm new to Java and trying to learn Java. I was overwhelmed by the information provided in Java.sun.com when I first visited the website. After searching and reading the website for the last few days. I still have problem understanding the different between J2SE v1.4.0_01 and Java Plug-in? Is ...
I haven't got javac on my system even though I installed the software recommended on the "your first cup of java" page.
Hello,I've got a problem when I try to compile a Java-source in a shell-script.I use the bash under Suse Linux 7.3 and Java SDK 1.3 from Sun.When I write /usr/lib/jdk1.3/bin/javac Hello.javaon the command line, everything is fine.When I create a script 'compile.sh' with one line # Script ...
296 byte By
khensona at 2007-9-27 12:15:12
When I execute my JAR file i receive the following error: Exception in thread "main" java.lang.NoClassDefFoundError: DivelogHowever when I use javac -classpath filename.java and java -classpath filename everything works fine:Why is this happening?Thanks.
oke,I want to learn java, so I got a book from wich i can learn java.The first assignment in the book was to create a simple program.So I follow the instructions...I typ over the text, and save the file as HelloDan.java(I know the text is right spelled, I checked on the books site)than I go to ...
Hello everybody!Does anyone of you know, how to compile a java file to a single windows executable (*.exe)? Is that possible?What programes do I need, and what is needed on the computer on which to run the *.exe ?CUNetzmeister2k
You know how using StringBuffer instead of concatentating strings is given as a tip in every optimization manual? I was just wondering if anyone know if the compiler now does this for us, or plans to. It seems to make sense to me, since string concatentation is so common. If it is not in the ...
186 byte By
guurka at 2007-9-27 13:04:15
I would like to compile and run java source at runtime. Similar to placing a script interpreter into a C++ project.I'm sure this is easy. I just don't know where to look.
Could anybody E-mail me the file "javac.exe". If you could that would be a real help as I haven't yet obtained it. E-mail it to me by visiting my site at www.toml.8m.com and clicking on the E-Mail link at the bottom of the page please.Thanks.