hey all erm well ive been looking a bluddy solution to this error for ages and i cant find anything please help, this is the source.public class address{private String street;private String city;private String county;private String country;public address(String s, String c, String co, String ...
import javax.swing.JOptionPane;public class DollarConverter{public static void main(String args []){int quarters;int dimes;int nickels;int pennies;int whatsLeft;int change;double dollarAmount;total = dollarAmount;quarters = total/.25;whatLeft = change%.25;dimes = whatsLeft/.10;whatsLeft = ...
619 byte By
chimp@ at 2007-9-30 19:18:35
hi, whenever i try to compile my file, it gives me an error in this part: public Vector sumar(){return new Vector( (this.x+getX()), (this.y+getY()), (this.z+getZ()) ); }and it gives me this error:Error: cannot resolve symbolsymbol : constructor Vector (double,double,double)location: class ...
Could everybody pls answer my question :How many -encoding types used with javac ?(I search in java tool document but don't find the full list of -encoding type)I try to use javac -encoding "UTF16", "unicode" and compile: OK !When I use javac -encoding UTF8 (I edit source code by Notepad, ...
638 byte By
Fabby at 2007-9-30 19:26:55
Hi I just recently installed RedHat Enterprise Linux WS Version 3 for i386 and installed J2se 1.4.2 SDK. I go into the directory with my .java and .class files and javac HelloWorld.java and get the error: bash: javac: command not foundNow I just started using Linux today and have been writing ...
1704 byte By
sss0701 at 2007-9-30 19:32:59
when i compile a code, this error messege will comeUnexpected Signal : EXCEPTION_FLT_STACK_CHECK (0xc0000092) occurred at PC=0x154D152Function=[Unknown.]Library=(N/A)NOTE: We are unable to locate the function name symbol for the errorjust occurred. Please refer to release documentation for ...
Hi there!I am just interrested if it helps the JIT to compile classes with "-target 1.5", so that there are some metadatas in the classfiles or such stuff.Any numbers out there?Thanks in advance, lg Clemens
618 byte By
Radhika at 2007-9-30 19:33:57
I just iinstalled j2sdk1.4.2_05 on Wind 98 and I have set the path variable in autoexec.bat and ran the .bat. So, now the system recognizes the javac compiler but I am still not able to run a program Welcome.javaI created a Welcome.java file and stored it in C:\java\Welcome.javaI also set the ...
Hi, I'm trying to build a java program using the javax package. When I try and compile it says it can't find it. I did a standard install of j2sdk1.4.2_04. Is there something I'm missing?
Hi All,I am facing a surprising problem. I have 2 java class files. I write the import statement for second one in the first one. There is no package & these are in the same directory. I have compiled the second one. But when I try to compile the First one. Javac throws error at import ...
361 byte By
mxie2004 at 2007-9-30 19:40:24
I successfully installed JDK5.0 on my Wndows2000 (SP4) laptop, but when I started using it to compile even the simplest Java program, I got the following error:The system is out of resources.Consult the following stack trace fro details.java.lang.OutOfMemoryError: Java heap spaceI am stuck here ...
515 byte By
elisa123 at 2007-9-30 19:44:55
HelloServlet3.java is a servlet in the coreservlet package that uses theServletUtilities.java. I put both the programs in the directory ~/servlets/coreservlets.I tried to compile them with the command :javac -classpath /usr/share/tomcat4/common/lib/servlet.jar:~/servlets HelloServlet3.javaIt ...
303 byte By
Skrangs at 2007-9-30 19:46:46
I'm at the beginning stages of building an application. Can anyone help me with a class that will look to file "Example.java.txt" and begin searching it's contents for Strings, Statements, etc, etc... I'm paricularly interested in what statement will tell my program to "look" for "XYZ" file. ...
107 byte By
Jamwa at 2007-9-30 19:48:39
Hi. Can someone help me on how to compile my Java code to executables? I use J2SDK 1.4.1_04. Thanks.
2153 byte By
vleprof at 2007-9-30 19:52:51
I'm new to Java--I downloaded this today and started with the beginning example from a book. I was able to get the compiler javac to find the file--just a path problem. But gettting java to execute the .class file is giving me fits. I believe that a lot of people are having this problem (seems ...
import org.w3c.dom.*;^Sample.java:103: cannot resolve symbolsymbol : class Documentlocation: class com.store.Samplepublic Element getXML( Document document ) ^Sample.java:103: cannot resolve symbolsymbol : class Elementlocation: class com.store.Samplepublic Element getXML( Document document ) ...
343 byte By
magdala at 2007-9-30 20:04:17
I tried to progam java program with a swing component under mandrake linux. When I have understood the jdk wasn't complete I downloaded the j2se 1.4 and install it under my personal directory but it doesn't work. I think it's a problem of classpath but I don't know how to configure it ...
236 byte By
almahd at 2007-9-30 20:05:18
Hi folksI'm trying to compile and create jar file from the following but without success http://stein.cshl.org/jade/distrib/file name is jadex.tar.gzCould you please try it and replybest regards
I have downloaded the J2se 1.5 JDK from the url http://java.sun.com/j2se/1.5.0/download.jsp. After download the i checked the size of the file its correct and I have downloaded for Windows OS. The installation went through sucessfully. After installation i could not compile any of my programs ...
I have a simple program here. Now leanring Java2. What is wrong with this?//Hello.java//Label, basic appletimport java.awt.*;import java.applet.*;public class Label extends Applet{ public void init(){//simplest no parameter constructorLabel firstlabel = new Label(); //second with one string ...
I'm look for an embedded Java compiler that I can run from inside my app that will take source files and spit out class files. Is there anything besides javac?Also, how could I run other java apps or just other exe's from inside a java application. I know how to ...
219 byte By
halur82 at 2007-9-30 20:09:43
hi, i HAVE JUST INSTALLED NEW J2EE 1.4 SDK , IT HAS BEED INSTALLED SUCCESFULLY BUT I AM UNABLE TO COMPILE JAVA PROGRAMS WHICH I USED TO RUN IN SDK 1.4 ,OR EVEN NEW WRITTEN EXAMPLES. CAN ANYONE PLZ HELP ME.
That is: compilers reflected by a java class (besides java.lang.Compiler) that have thorough error messages.
Hello, I have VERY recently started teaching myself how to program using java. I have created an applet that pops up fine on my screen with the words 'hello world wide web' inside, or something like that. And according to the book, if I click on the helloweb.html icon the applet will run in ...
Do you know edit applications can save UTF8 Java file without BOM and can work with language support tools (type any language in unicode edit mode) ?Thank you very much !
I have written a program using MS Edit, I have run the program, and I have compiled the program.But when I use a web browser to run the applet, it does not disply the applet. Instead is makes a gray empty area. I would like to know what I should do to get the applet to display. Thank ...
okay soo down there is my code and here is the error i keep getting..........******C:\j2sdk1.4.2_05\bin>javac C:\Java\Cobalt1.javaC:\Java\Cobalt1.java:48: ')' expectedJOptionPane.showMessageDialog(null, "After 5 years you have +"finalAmount"+ grams of Cobalt 60 left".);^1 error******if ...
1818 byte By
Zangrela at 2007-9-30 20:20:12
Why do i receive this message in the following code[code]import java.awt.*;import java.awt.event.*;public class Broadway extends JApplet implements Runnable {Thread animation;int locx, locy;int width, height;static final byte UP = 0;static final byte DOWN = 1;static final byte LEFT = 2;static ...
First I would like to thank in advance for any help any may offer me. I have become very frustrated trying to get a program to compile on this program. -I am using Windows XP Pro-I have downloaded and installed j2sdk1.4.2_06, -This folder resides on C:-I have not updated the path as I would ...
1198 byte By
elisa123 at 2007-9-30 20:28:31
/**I have the servlet ScriviFileServletFor1 in the directory ~/servletsI tried to compile it from the directory ~/servlets with :javac -classpath /usr/share/tomcat4/common/lib/servlet.jar:~/servlets SriviFileServletFor1.javait gives me the following message:ScriviFileServletFor1.java:16: ...
I am looking at the java compiler source and i am unable to trace to the method/set of methods that will determine weather or not a method inside the '.java' file that is being compiled has adequate return statements.I have a suspicion on how it works, however, i want to check it against the ...
195 byte By
Jamwa at 2007-9-30 20:33:42
Thanks alot for the info about compiling to executables. I have one more problem. Using purely JDK and notepad, where do the .jar files spring from? All I see are .class and .java files...
276 byte By
chidu123 at 2007-9-30 20:35:47
I have a jar file in current directory and classpath is also set to current directory, but my java program doesnt recognizes the classes in jar file, whereas if i extract the jar file, the it recognizes..does any one happen to have this problem.Thanks in advance
I can't for the life of me figure this one out. I've been using JDK 1.5 to compile for a while, without using any of the 1.5 features. I've tried to compile the 1.5 features, but it just won't compile.This simply won't work:import java.util.ArrayList;public class Test{private ArrayList ...
Hi all,after I compile I get this message,C:\Documents and Settings\Administrator\My Documents\230\a3>javac *.javaNote: connectionFrame.java uses or overrides a deprecated API.Note: Recompile with -deprecation for details.What is this message talking abt?please ...
549 byte By
Nick_UK at 2007-9-30 20:44:18
Hi I am new to this forum, I have just ported to Macintosh from Windows and wan't to learn Java, on the Mac I am using Eclipse. Within Eclipse project properties I can setup the classpath, however if I want to run the program outside of Eclipse I understand I need to create a batch file to ...
262 byte By
wf7777 at 2007-9-30 20:51:10
I don't know if java can be applied to micro processor system. I think it must have a compiler to compile the java code into binary code for the specific micro processor like MSC51.If there's already the product, where can I find it?Thanks
In my mind, if I use Double.valueOf, it has to be like this:String stringValue = "2.0";Double doubleValue = Double.valueOf(stringValue);However, the 1.5 javac is currently allowing me to use valueOf and cast the answer to a native.double doubleValue = Double.valueOf(stringValue);-- No ...
Hello,I would like to know how to compile a program held in a String. ISuppoes I have:String prog="class hello{ public static void main(String[] s){ System.out.println("Hello"); } }"How do I compile and run this program?Thanks.
475 byte By
dalag77 at 2007-9-30 20:58:57
Hi,I have a problem using ant in Linux.When I build my application using ant in Windows it works fine, but when I try to build the same application with ant in Linux it gives me the following exception:/identifier/MidiReader.java:5: error: Class or interface `javax.sound.midi.Sequence' not ...
I have Memory OutofBounds Exception. How can I measure memory use in program so that I can know which part of my program generate memory problem.
878 byte By
topachou at 2007-9-30 21:04:54
When I try to compile ClasseA, I have this message :_myApplet/TwoClasses/ClasseA.java [6:1] cannot resolve symbolsymbol : class ClasseB location: class ClasseAClasseB myClasseB = new ClasseB();^_myApplet/TwoClasses/ClasseA.java [6:1] cannot resolve symbolsymbol : class ClasseB location: class ...
hi everybodyi just installed java sdk 1.5 and can compile and run all my applications from several IDE's (Eclipse, BlueJ), but get constant error messages while trying to do so from command prompt (I added the location of "\bin" to the path (environment variables). Can someone help me, ...
I've succesfully downloaded sdk 1.4.2 onto my computer, and I have an icon for java web start, but I can't see how to start the sdk console and create an icon. Isn't there a console for java gui development?
I downloaded J2SE 5.0 with NetBeans and every time I try to run an applet I get this error:I/O exception while reading: C:\Documents%20and%20Settings\John%20Doe\My%20Documents\JavaProjects\Exam\build\Exam.html (The system cannot find the path specified)Java Result: 1The applet never runs and I ...
Hello. I'm new to java, but I've been trying for a while to figure out how to compile a .java file. My problem is that I can't open javac.exe. When I double click on the file a black command-line window pops up for a half a second, displays a bunch of text, and then closes before I have a ...
when i was a student in my uni. i used to use Console. for exampleConsole.setTitle("My name");Console.fillWithCharacter(' ', 80 * 25, 0, 0);Console.setTextAttribute(11);this command are used for seting the attributes of the window at run time and now i left uni and i am praticing on my own ...
1318 byte By
sri_msr at 2007-9-30 21:10:54
Hi,I've a prog where in I'm calling a method which can throw multiple exceptions. I included that in try block, and without any catch block, I'm returning some value in the finally block. It's working fine and even giving the expected result. But when I tried to run the "ant" script on Unix ...
2478 byte By
Ritz at 2007-9-30 21:11:04
Hi,I was wondering if anyone can kindly help me with some Java programming. I am very new to Java and dont seem to understand why I am getting the illegal start of expression error when I compile my program. I understand from reading the forums that this means that i have left out a curly ...
symbol : constructor Deck()location: class test.DeckDeck x = new Deck();Note: C:\Documents and Settings\Administrator\test\src\test\Deck.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details..Making a blackjack program. Created the Deck class that will ...