says im Missing }..?

1283 byte By Booooze at 2007-9-30 11:24:36
hello everyone, i just joined these forums. um...i just started learning java today, and i figured out how to use the compiler, but my code seems to me wrong.... can anyone see any errors? its from a book, its the first lesson:P...class volcanorobot{String status;int speed;float tempature;void ...

Dynamically assigning References to Objects

1178 byte By mk1979 at 2007-9-30 11:24:56
Well, I do not know if there is a java API for this. What I am trying to do is that, I have an excel spreadsheet in which I have two columns, first column is the class name( this class is instantiated with reflection) and then in the second column I have the instance name. When i get the class ...

final vars in interfaces?

68 byte By Karatte at 2007-9-30 11:25:49
why all attributes of interface are final? and static?

replaceAll method error

303 byte By bouj at 2007-9-30 11:26:39
Hi,I'm trying to compile my code which contains this line(chaine is a String):chaine.replaceAll(",," , ",.,");but it dosn't work, and i have this error:Method replaceAll(java.lang.String, java.lang.String) not found in class java.lang.String.THX ...

clone() vs. Constructor

129 byte By taruniiitb at 2007-9-30 11:26:42
which is more efficient creating an object with clone() or calling a constructor? and what is the need for clone()?

calling main()?

71 byte By taruniiitb at 2007-9-30 11:26:45
Can a main() method of class be invoked in another class?

Java pure OOP?

48 byte By taruniiitb at 2007-9-30 11:26:47
Why Java is not 100 % pure OOPS ?

J2SE File Permission Denied

467 byte By spacerevo at 2007-9-30 11:28:51
Hi, I'm a student currently developing games as my School attachment. I created a JApplet Game and tried to attach it onto my webpage but have a problem. There is an Access Control Exception where i have an Access denied for a read protection on an image file that i created. it shown : ...

Java in unix

246 byte By Elessar.82 at 2007-9-30 11:28:55
I create a script file in unix, from that file i call to a java program and i send to him parameters. But i need now return to the script a response of the program java. if anybody now how can i do this please tell me.Thanks.

PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\J2SDK1.4.2_<version>\BIN

266 byte By princevjohn at 2007-9-30 11:29:09
my computer wont read the pathPATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\J2SDK1.4.2_<version>\BINnor would it read the java SDK file that i downloaded it keeps saying file not foundanyone out there can help me thanks

adding resources to class path

331 byte By nettask at 2007-9-30 11:34:07
I installed Sun Creator and am struggling to come up to speed on it. I am sticking with basic java at this point, however, I have a class which needs a package not available in the standard j2se. I have a JAR file which I need to incorporate into my class path but cant figure out how. Any ...

jdk1.5 compiler failed on jdk1.4 source

359 byte By vy_ho at 2007-9-30 11:34:44
I know that for the enum keyword, it'll fail. However, if you implement java.sql.Connectionthe function setTypeMap in 1.5 has generic declaration, which makes it incompatible with 1.4. However, If uses the old version without generic, then it won't compile under 1.5. Is this normal or a bug ...

USAGE of JAD

405 byte By PrabhuSai at 2007-9-30 11:37:32
Does Java Decompiler guarantee 100% conversion from .class file to .java file.... It is normally said that the logic developed in .class file cannot be restored 100% to .java file..Is it so ?In real time applications, .java files (source code is lost). Only .class files are available.....Is it ...

I can't open the JAVA webstart in WinXP (JSDK1.5.0beta2)

203 byte By CaioTiago at 2007-9-30 11:40:04
When I click in javaws.exe the program opens the "Java application cache viewer" but does not load the Java Web Start.Someone know if it is a know bug or if is just of my own system?

JAVAcpl does not open with WinXP (1.5.0b2)

606 byte By CaioTiago at 2007-9-30 11:40:10
When I try to open javacpl I got the following message:"C:\program files\Java\jrel.5.0\bin\javaw.exe-classpath "C:\program filesJava\jrel.5.0\bin\..\lib\deploy.jar";"C:\program files\Java\jrel.5.0\bin\..\lib\plugin.jar" ...

System.getProperty("java.home") gets wrong value!?!

347 byte By JebeDi@H at 2007-9-30 11:41:33
Hi there,I set the JAVA_HOME environment-property on my WinXP to "C:\programs\f-j\java" but when I call System.getProperty("java.home") I get"C:\programs\f-j\java\jre\" does anyone know why? ...

opposite of contructor, is there it or not?

169 byte By lienntn at 2007-9-30 11:41:36
A contructor is called automaticaly when an object is created.Is there a method called automaticaly when an object is destroyed? what''s its name?

opposite of contructor, is there it or not?

169 byte By lienntn at 2007-9-30 11:41:37
A contructor is called automaticaly when an object is created.Is there a method called automaticaly when an object is destroyed? what''s its name?

how to extract different date format in text file

361 byte By confident at 2007-9-30 11:41:59
well, iam new for using regex api(regular expression), In my project i want to extract the different format of date from the text file... date format will be 3rd june 2004, 03-06-2004, june 3rd and so on....can any body give me regular expression to extract the date from the text file...i will ...

J2SE 1.4.2 and AMD Opteron Linux

250 byte By gundam_jdc_jdc at 2007-9-30 11:43:10
According to this page: http://java.sun.com/j2se/1.4.2/system-configurations.htmlAMD Opteron LInux is a supported platform for J2SE 1.4.2.But where do I download that?It is not listed on the J2SE 1.4.2 download page.

i hav problems with unix

2075 byte By Elessar.82 at 2007-9-30 11:43:20
When i try to run my application, unix throw this error : Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)at <Unloaded Method>at ...

Improper Use of BufferedReader?

1998 byte By adh2k1 at 2007-9-30 11:44:54
What is happening is that I want to open "shellscript.txt" and insert it into a new document then open another file and insert it in the same document right after where I insert "shellscript.txt". Maybe I am going about this the wrong way but what is happening is where the data in ...

Integer to Words

149 byte By Huzefa-Yousuf at 2007-9-30 11:45:01
I want to convert Integers to Wordslike 8910 is equal to "Eight Thousand Nine Hundered & Ten"how can i achieve this ?

Executing Java Application...

534 byte By Dreon at 2007-9-30 11:45:46
Hi,Just wanted to know, is there any way to make our java/swing program executable by double clicking it? One of the ways I am using is to create a jar file with all the swing classes inside. But I realised that I can open the jar file using winzip and extract all the classes. The problem is I ...

Error starting java in RedHat Enterprise ES v3

4977 byte By codiceny at 2007-9-30 11:47:00
Hello all.I'm posting hoping someone has run into this before and might be able to help me.We've set up a number of boxes with Redhat Enterprise ES v3, and upgraded the kernel from the stock RedHat 2.4.21 to 2.4.26 because we required reiserfs support (no idea why it isn't bundled from ...

Reading printer queue

600 byte By olivier_maurice at 2007-9-30 11:49:30
Hello all, Java is not new to me and just some hints would do fine, but I don't really know where to start with this one.Our printer server makes use of a technique I also want to make use of: a local printer hooked up to a specific port. When a spool file arrives in a queue, an exe-file is ...

java to exe

53 byte By wthai at 2007-9-30 11:49:46
how can i create an exe file from java?

webpage

81 byte By wthai at 2007-9-30 11:49:47
is it possible to open an html file from a java program?how?

Java Reporting

536 byte By Huzefa-Yousuf at 2007-9-30 11:52:12
hi there my problem is quite simple ... i dont have a free reporting tool available to make ma reportsi have got one named "Report Cat" but it is an evaluation version ... the problem with it is that on every page of report it additional prints "Evaluation Version" right on the middle of the ...

How to update statement with sql contain

48 byte By peater at 2007-9-30 11:53:02
for date calender control with GUI

create one build for two versions of Java

707 byte By sariatwork at 2007-9-30 11:53:16
Hello,I am developing a "second generation" of a product and maintaining the existing first generation.The first generation is in java 1.3.0 and the second generation is in 1.4.2.It will be necessary to maintain both versions, until the first generation is completely extinct - possibly a year ...

XML with java

197 byte By luckybar at 2007-9-30 11:53:17
hi allI want to save my data to a XML file, and then use a java program to write and read the data from the xml, but i never do that before, anyone can tell me how? thanx alot!

how to run the program continously...

230 byte By confident at 2007-9-30 11:54:21
i want to run my java program continously... i heard that by implement the thread we can run program continously... can any body give me sample code on thread which runs continously....thanks alotkareem

socksProxyHost error in JDK1.4+

2052 byte By WangXusheng at 2007-9-30 11:55:39
HelloI'm using socks proxy to access resource outside firewall in my application. My code is as followingSystem.setProperty("socksProxySet", "true");System.setProperty("socksProxyHost", "founder-345");System.setProperty("socksProxyPort", ...

ArrayList copy

247 byte By nikhildalvi at 2007-9-30 11:56:17
Does "clone()" mehtod on ArrayList does a deep copy? I think it does not. But does it do deep copy on Wrapper Objects like Integer? Does it do deep copy on all classes that implement cloneable? Please let me know

Java API for Outlook 2000

346 byte By vbadri79 at 2007-9-30 11:57:20
Hi! I am looking for a java API to access Outlook 2000 functions adn stuff.Basically, I am looking forward to something like a webmail, where I can resolve e-mail addreses or choose from a list of valid addresses if there is more than one matching address from outlook.Is there an API which has ...

JDK1.5.0 Beta 2 unmappable error

679 byte By amayen at 2007-9-30 11:58:38
Hi!I've installed jdk1.5.0beta2 and recognized that it didn't want to compile those projects in which german umlauts where used.It gave following error for each occurence of a german umlaut in the source files:--> "unmappable character for encoding UTF8"The $LANG environment variable is ...

Version to Athlon XP2000

378 byte By marilza at 2007-9-30 11:59:03
Hi,My processor is an Athlon XP2000 and my OS is RH9.0. I have to install J2SDK but I don't know what version to download, because (I think) I only may install i386 versions, but only versions after 1.3.0 was i386....What I have to do? Install a J2SDK 1.3.0 version or I can install a 1.4.2 ...

JAI - Problems getting started

450 byte By RachelSwailes at 2007-9-30 12:00:31
Hi thereI have searched the net for answers and come up short.I am trying to get started with JAI. I have downloaded and installed the jars and included them on my class path but still when i try to compile a line likeimport com.sun.media.jai.codec.ImageCodec;I get the error message that the ...

where can download all classes of j2se

215 byte By okay_berlin at 2007-9-30 12:00:51
could somebody tell me where i can download all or part of classes of j2se.very important are classes of package java.beans.it's needed for a bug of IBM's product jinsight.thanks

Using Crystal Reports !

357 byte By Huzefa-Yousuf at 2007-9-30 12:01:50
i have got reports made in Crystal Reports 7, is there any way i can integrate them in my java application.... i also have Crystal Reports 8 & 9 ....i just need to know how can i use the JavaViewer.jar file which comes with the installer to embed the reports in java ... or any other third ...

Regular Expression Help

678 byte By skiboardfreak at 2007-9-30 12:02:49
I need the ability to match in a regular expression that keeps track of how many times a pair of parentheses exists. For example, right now, I have it matching the largest possible match of an openining and closing parenthesi; however, those openining a closing parentheses may not correspond to ...

learning

181 byte By macca2424 at 2007-9-30 12:06:45
hi i am about to start learning java, i have qualified as a Master CIW Designer, no i want to learn java what is the best way to start learning thisthanks Craig

trying TJDO

745 byte By LightWind at 2007-9-30 12:09:57
Hi,I try the TJDO from sourceforge. I have tried the tutorial in tjdo homepage.When i run the PersonPersister, the program shows the error as below:com.triactive.jdo.ClassNotPersistenceCapableException: test.person at ...

MultiCast and broadcast comm.

643 byte By dams@boulot at 2007-9-30 12:11:20
Hi all,here is my issue : I have a server sending messages (via UDP) on the network. I have multiple client reading these. To do this I have ti use java socket and I have 2 solutions :- use Socket and send/read DatagramSocket : the problem is I can't have multiple client reading the same port ...

does static methods need to be synchrnized ?

691 byte By nrdarbha at 2007-9-30 12:12:03
Hi All,I have some class (static) methods in my program running on Server-A, which call a service running on Server-B over HTTP. My program is accessed by different client threads which pass values for my class method's parameters, and my class method will return the value that it got from the ...

imports that are not used

168 byte By vikasphonsa at 2007-9-30 12:13:14
Hi Everybody,Out of curiosity, I want to know what is the impact of the import statements that are not used in a program. ThanksVikas

Static Import in J2SE 1.5

937 byte By omsai100 at 2007-9-30 12:13:23
Hi All, Here are some queries regarding the static import.1. Wouldn't the static import be difficult to debug.I mean if i wanted to know where the constant is coming from then it would be difficult for me to identify.So doesn't it become difficult to maintain the code.2. The static functions ...

Using Crystal Reports with JAVA

354 byte By Huzefa-Yousuf at 2007-9-30 12:14:56
have got reports made in Crystal Reports 7, is there any way i can integrate them in my java application.... i also have Crystal Reports 8 & 9 ....i just need to know how can i use the JavaViewer.jar file which comes with the installer to embed the reports in java ... or any other third ...

Calendar class is very bad

397 byte By AliRezaSharghi4550 at 2007-9-30 12:15:57
why sun fields stamp and nextstamp of Calendar class change to protected ?will code of developers break ?i want by p calendar of icu and without use of text package icu but use only text packege of java define jalali calendar but i not access to stamp and nextstamp.very thanks to any a reply ...