I installed JRE1.4.2_04 on RedHat 8.0. I am trying to compile my .java files on linux. I need a new package JDOM. Where should I place this package (in which directory)? JDOM Package contains some jar files that I need. I added them in jre1.x.x/lib/ext/ my jar files.jarWhen I compile my .java ...
435 byte By
Kiotor at 2007-9-30 14:37:32
hi,Im a total novice in this area but here is my question:I have istalled j2sdk-1_4_2_05-windows-i586-p to my computer but when i try to compile in Command Prompt with javac it says somethin like "javac is not a command or file" and when i try to run a java file it says "Exception in thread ...
Hi! Below is my simple code:)interface U {void increment();String message();boolean returnTrue();}class A {U u() {return new U() {public void increment() {}public String message() { return "Something"; }public boolean returnTrue() { return true; }};}}class B { public static void main(String[] ...
for example.once i creat a class with wizard but without putting it under the project.i would not be able to compile it.but i am not sure whether i need to do it under a project?please anyone help me with that.
I am getting the cannot resolve symbol error while trying to compile my ConnectionBean.java class. The error message is:ConnectionBean.java:(line no.): cannot resolve symbolsymbol:class OracleDriverlocation:package driver DriverManager.registerDriver(new ...
582 byte By
kasper85 at 2007-9-30 14:47:15
Hey I am new to java. I can compile my files fairly easily, but my problem is in running it.every time I "java" the application, I will always get this error...Exception in thread "main" java.lang.NoSuchMethodError: main orException in thread "main" java.lang.NoSuchClassError: mainwhat am i ...
1106 byte By
JavaTAD at 2007-9-30 14:49:08
I am trying to write a Korn shell script that will compile java files. My problem is that I am trying to have my output go to a subdirectory of the directory -d ${classes} in the javac command below. If the subdirectory doesn't exsist is there any way to make the compiler create it instead of ...
Hi all,i've a question:I have some classes compiled with a JDK 1.4.2.x.I'd like to know if there is some problem if i execute this code over a JDK 1.3.x.Can some one answer to this question?There is some manual that explain how resolve this problem?thanks alot in advance,Smart ...
3941 byte By
sage49 at 2007-9-30 14:58:59
I have this problem on two different PC one with XP Professional one with XP homeI believe my PATH is set properly(shown below as well as ClassPathIf I remove the following '+ Date().toString() , it compiles fine.The source was created in NetBeans 3.6 and it does the same thing in NetB 3.6 as ...
628 byte By
riksmits at 2007-9-30 15:00:15
Dear all,An applet of mine always ran fine, until i recomplied is using the current J2sdk1.4.2. Now, my own Netscape 4.8 suddenly refuses to load the applet (throws a "Classformaterror: bad major version number" in my face). Also, I'm getting complaints from people using Explorer 5.5. I tried ...
Hello,I'm using Java2 and I want to convert a java application (or java applet) to an executable file (.exe file) so that it can run without any java run time environment installed.I'm a 3rd year university student and I'm writing a java program for my design project. I hope my program ...
Hi,The follow is a simple program that read rows of table oracle database and try to form de tree structure, but at compile time im get "non-static method setModel(javax.swing.tree.TreeModel) cannot be referenced from a static context"in setModel(new DefaultTreeModel(rootNode)) in teh main ...
3535 byte By
digital. at 2007-9-30 15:06:52
Hi everyone,I'm trying to work with a Tree and use some of the visitor pattern. However, I get an "is not abstract and does not override abstract method" error, which I'm not so sure about. There seems to have been some discussion about related problems and bugs, but perhaps not in this ...
i can compile my ChatServer.java and run it in wins platform.but when move this file to linux. it's connot complie and run.1:complie error[linx@test 2]#javac ChatServer.javaChatServer.java:186: cannot resolve symbolsymbol : class ChatHandler location: class ChatServerChatHandler handler = new ...
OK, here's the situation. I have an image directory in the directory that I have put all my source code in. I am attempting to use the IDE NetBeans. When I compile my code via command.prompt using the commandjava -classpath C:\JAVA\ divelog.DiveLogeverything is peachy keen and all my images ...
Hi, Can any one tell me what is the difference between a Vector and an ArrayList besides that the vector is thread safe and arraylist is not, but what is the practical example of this difference.
515 byte By
almhoedi at 2007-9-30 15:21:53
I wrote a Java class using Swing and I often compiled it under various Windows systems without problems. Now I have a Linux system, where I get several "Can't find method xyz in type 'javax.swing.Box' " errors, all concerning jawax.swing. components. I have an j2sdk1.4.2_03 installed and the ...
2456 byte By
fishkake at 2007-9-30 15:24:36
Hey people. Rookie here!I'm trying to compile something I downloaded - I know the file works, and I have the latest SDK, but it won't compile! Its working with Graphics2D objects, and it seems to have a problem with some of the methods. This is what I get when I try to compile with ...
Hi guys,Here is the line that won't compile:((p)(o1)).g.a.(this);Here is the error:reference to a is ambiguous, both method a(av) in au and method a(bu)in at match ((p)(o1)).g.a.(this);So I want to try calling either au.a or at.a explicitly but I can't figure out how to do that.Any help is ...
2928 byte By
Shibaa at 2007-9-30 15:28:05
Hi,I am getting a compiletion error which is absulutely un-expected.Here is my code:-class abc{public static void main(String ab[]){double d = 0.0;}}And the message is while compiling:-Unexpected Signal : EXCEPTION_FLT_DIVIDE_BY_ZERO (0xc000008e) occurred at ...
560 byte By
Ruby. at 2007-9-30 15:29:33
it may be a silly question..i wrote a (console)program with using 3rd party api. i can compile it and run it in my IDE. But i can't compile it and run it in console. i put all the api used and the classes created by myself in a folder named "lib". i used the command : javac -deprecation ...
I get a error when i compile a java file, i never get it before and i do not what can i solve this problembest regard!Unexpected Signal : EXCEPTION_FLT_STACK_CHECK occurred at PC=0xBBD0D2Function=[Unknown.]Library=(N/A)NOTE: We are unable to locate the function name symbol for the errorjust ...
I get a error when i compile a java file, i never get it before and i do not what can i solve this problembest regard!Unexpected Signal : EXCEPTION_FLT_STACK_CHECK occurred at PC=0xBBD0D2Function=[Unknown.]Library=(N/A)NOTE: We are unable to locate the function name symbol for the errorjust ...
1947 byte By
skrasnik at 2007-9-30 15:30:42
i have an inner class which has a method myMethod(boolean). the outer class also has a method of the same name (which the inner class's method overloads) myMethod( String, boolean ). if i try to call the outer class's method from the inner class, the compiler complains:myMethod(boolean) in ...
Hi all,This is swarna. I am working in the porject with java as the front end and java as back end. I made some changes in the java files and created the class files after compilation [ using Depreciation .] I made the jar files with the createjar batch file. But when i run, i am not able to ...
682 byte By
tappori at 2007-9-30 15:32:55
Can anyone tell me what is te equivalent of Window's CLASSPATH on AIX?I have a ANT build script that extratcs the source code from CVS repository and compiles everything, creates all the needed JAR, WAR and WAR files. This script executes well on Windows XP but it is not able to compile the ...
Hi,sorry but I'm really new to developing. I've edited a J2ME application by decompiling its class file and modifying just few things.Now the class file is a jad file. What do I have to do in order to convert the jad file to a class file again?Sorry if you think this is a silly question but I ...
682 byte By
wongmk at 2007-9-30 15:39:52
Hi,I am having a class (EJB bean class) that implements some interface . When it is compiled with normal javac (or via the Ant javac task) the generated byte code don't seem to contain the abstract method from the intreface. But it is included when I compile using some IDE like eclipse, ...
739 byte By
deepalee at 2007-9-30 15:50:49
Hi!I found problem in running the java programs. I have installed jdk1.3 . Programs are compiled properly. .class files are created. But when i am trying to run it using java filename, I got the error message : "Exception in thread "main" java.lang.NoClassDefFoundError : filename"Even Applets ...
1763 byte By
ZEEPLE at 2007-9-30 15:52:01
Well here goes...Hello,This may not be the right forum for this but here goes...I am a student and am taking programming classes( JAVA ). It seems that I can compile my programs but cannot run them. My professor said my path was incorrect and gave me the correct path settings. I edited my path ...
1028 byte By
simen_81 at 2007-9-30 15:56:07
Im making an applet, but im pretty new to it.Im not sure how to compile it. Am i supposed to use javac File.java or appletviewer File.java?I have tried both. When i use appletviewer i dont get any error-messages, but no .class file is made. When i use javac i get a couple of error-messages, and ...
245 byte By
simen_81 at 2007-9-30 15:56:52
I still cant compile my applet. I get lots of errors because the compiler cant find the packages i import. Where should i put the program? i have the java program in C:\Web and the j2sdk_nb folder in C:\ProgramFiles. What is wrong?
186 byte By
k@Rn at 2007-9-30 15:59:41
Im having problems with Jcreator. When i try to double click the error message in the output window, the cursor wont go the line of the error. What seems to be the problem?
941 byte By
feralan at 2007-9-30 16:03:43
hi all, i have to use javax.comm api at my project, but i can not use it hitherto..i use Oracle's JDeveloper and show the path of comm api to the JDEV. but i cannot use it in the code like;import javax.comm.*;i can use like this;import comm.*;but when i compile the code ERRORS came out and ...
did a simple hello world program (my first in java), compiled it and then tried to run it but this happens (note bin is /java/bin);[root@localhost bin]# ./javac [PATH TO PROGRAM]/hello.java[root@localhost bin]# ./java [PATH TO PROGRAM]/helloException in thread "main" ...
Where can I get JIT for Windows?
Sorry for the banal question, but whatever...I tried to compile this code:import java.io.*;class Try{public static void main(String args[]){File quirk = new File(".\\jombala.txt");System.out.println(quirk.createNewFile());}}and I recieved this error:unreported exception java.io.IOException; ...
1056 byte By
Rony70 at 2007-9-30 16:32:01
Hi,I have the following files in a folder named: Testa.jarb.jarc.jarDriver.classDriver.mfHere, MainClass is the main executable class that uses a,band c.jar files. This is how my MainClass.mf file looks:Manifest-Version: 1.0Main-Class: DriverClass-Path: a.jar b.jar c.jar--Now I use the ...
Hi All - I'm trying to compile a java sample code. I keep getting the error described in the subject linecannot access class java.nio.ByteBuffer; file java\nio\ByteBuffer.class not foundI have un-ziped the java sdk 1.4.1 src.zip to a directory under c:\ and added the java\nio directory to the ...
42 byte By
eyla9343 at 2007-9-30 16:35:19
how in j builder x i make exe file?
198 byte By
eyla9343 at 2007-9-30 16:35:37
i tyies to make class files (with javac)but it was written that he dont recognize a function of clientsocket(in the jbuiler it recognize)is someone can help me with that?
1550 byte By
Djohn36 at 2007-9-30 16:38:45
Can someone help look at my code to see what this error means. MortgageCalculator.java:45: '(' expected while Q > 0; /*MortgageCalculatorAugust 30, 2004*///class MortgageCalculator import java.math.*; //*loan calculatorimport java.text.*; //*formats numbersclass MortgageCalculator{public ...
I can run Applets comfortably with the new SDK from the Sun website. However, there are issues with java Applications. An application compiles with no complaints at all. But an attempt to execute the bytecode generate an infamous exception: NoClassDefError.Please assist..
717 byte By
CStone6X at 2007-9-30 16:57:55
Inside this loop is an array that generates a certain number of random numbers. I am trying to get the format of the random number to have two digits before the decimal and two digits after the decimal. I have tested the decimal formatter on a normal Double and it works just fine, but when I ...
798 byte By
felice03 at 2007-9-30 16:58:03
I am new to java and i needed to what was the error in my source code. i didn't understand what i did wrong and the error meesage didnt help.SOURCE CODE// Fig. 2.1 : Welcome1.java// Text- Printing programpublic class Welcome1 {// main method begins execution of Java applicationpublic static ...
532 byte By
DavidM68 at 2007-9-30 17:07:14
I am getting weird behavor when I compile a program that has multiple class files, and especially if I have any inheritance. I can save and compile the program initially and all is all, but when I make changes I have to delete all the .class files or the changes will not be compiled. ...
When i compile my (1.4.2_05) Java project I get the following[javac] Note: Some input files use unchecked or unsafe operations.[javac] Note: Recompile with -Xlint:unchecked for details.Is there any doc explaning this? At http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#javac I found a ...
Hi,I'm using some code, I'll put it below, it worked fine on JCreator at school, but not on Sun ONE here...Here's the error:java.lang.NoClassDefFoundError: KarelMain (wrong name: kareltherobot/KarelMain)at java.lang.ClassLoader.defineClass0(Native Method)at ...
682 byte By
jmb_phs at 2007-9-30 17:22:04
Hello,We are in the process of upgrading to Weblogic 8.1 from 6.1 and jdk 1.3 to 1.4, I have been getting this error on the compile..[java] bad class file: C:\j2sdk1.4.2_04\jre\lib\rt.jar(java/lang/AssertionError.class)[java] class file has wrong version 48.0, should be 47.0[java] Please remove ...
I have written a single large GUI file that is composed of a single class (FCTabGui class). When I run javac FCTabGui.java it generates around 190 classes with the same name (FCTabGui) but each one after the first is attached with $# at the end (ie FCTabGui$1.class, ..., FCTabGui$189.class) . I ...