hi,i want to check whether an application (like oracle/sybase...) is installed on a PC or not, through java?with registry access its possible, but sometimes there are registry keys but the application is uninstalled.please advice.thanx ,manish
185 byte By
weebiba at 2007-10-2 15:11:57
Hello,I'm working on IntelliJ IDEA over Mac OS X (Tiger) with JDK 1.5 . Where is the equivalent to src.zip? I just can't seem to be able to set up the jdk's sourcepath.
302 byte By
may8000a at 2007-10-2 15:27:13
I used JMX in jre1.4 , and it works well. while I upgrade it to jre5, the javaGUI can't receive the message from the server at all.Considering jmx is included in jre1.5, does any one know what is caused? use the new jmx package instead old one can make it works?Thanks in ...
Hello, I've been trying for almost a year, on and off, to figure this problem out, so i quess i'm about ready to throw the towel to SUN on this one!In the following program, i'm reading in a GZIP file, creating XML and writing out a GZIP file, via the PrintWriter class.For smaller sized ...
Some days ago I noticed a new version of the 1.4 JDK: 1.4.2_11. Today, I tried to get this version but the Sun pages were completely redesigned offering only the 1.5 Version. At the bottom of the page there is a link to "archived" older JDKs. On this page you can only go to JDK 1.4.2_10 .... is ...
4317 byte By
Taftera at 2007-10-2 15:45:18
This problem started out because I couldn't get a seemingly simple algorithm working. The algorithm calculates the days (measured as 24 hour periods) between Dec 31st, 1989 12:00 am and a current date (for our purposes, lets use Feb 17th, 2006). The correct answer to this problem is 5892. No ...
Hi,I am trying to generate .h file using javah -jni command.I am executing the prompt>javah -jni C:\proj\HelloWorldBut it's giving the error Error: Class HelloWorld could not be found.But the class file is there in that folder.Could you please tell me why i am getting this ...
124 byte By
Hong_Lua at 2007-10-2 15:56:10
I try to get the old jdk1.5.0 build (1.5.0-b64, mixed mode, sharing) from java.sun.com but there is only jdk1.5.0_06.
Im trying to find where I can download the Japanese version of the 1.5.0_05The english is here http://java.sun.com/products/archive/j2se/5.0_05/index.htmlBut where to find the Japanese since I can't read Japanese........
hi,i want to parse string to date which formated with SimpleDateFormat which is gives formated date as a string now i want to use this date in mysql database and which has special format so please help me.....code:import java.text.DateFormat;import java.text.SimpleDateFormat;import ...
Hi alliam new to java mail technology. Here is the class that i have used to send mail.My requirement is whenever user completes a registration , a confirmation mail is tyo be send to him automatically.How can i identify mail server and its SMTP address? Please help.sendmail.sendEmail(); This ...
Hey,This is my first time trying to use sockets to be able to connect people over a network but I thought might as well try it. Reason I'm thinking about it is because I think the idea of an internet game would be quite fun... I just am somewhat confused on how to start.An internet game would ...
Hi guys,We are using double variables in calucations and facing a loss of precision of some values.For e.g double t = 603.8The statement System.out.println(d*100); gives the result 60379.9999999this represents an issue with us because our project is on a Financial side and every small decimal ...
676 byte By
nikkiea at 2007-10-2 16:53:54
Hey guys, u know I have a question for you: I have an AMD64 DualCore.....is that a problem if I wanna install JDk & JRE in my sytem ? I installed both (JDK & JRE) before 4 days and i can't run my applications. All the programs that are written with Java (Poseidon, OpenOffice++++) run ...
Hi,I want get the contents of the address bar of IE in my java applcation .How can i do that?.can any one help me...Regards,Yoga
Hi , I am using DB2 database and I need to execute the sql statementCONNECT TO Database user username USING password. Can anyone tell me how to execute this query in java. I tried this by using executeQuery but it was giving a sexception somtehing as followsCOM.ibm.db2.jdbc.DB2Exception: ...
Hi All, Will it help the performance/memory management if the objects/Strings are set to null in the finally block?Please help.Thanks,Raj
245 byte By
Arenlora at 2007-10-2 17:25:23
I'm trying to find a compiler in order to learn the AP Computer Science Java subset, and I can't find a compiler or whatever I'd need in order to just type in Java and see what I typed work or not work, as I said, it's for school too.
public class CastingProblem{public static void main(String args[]){float f=5.1f;System.out.println("f value:"+f);double d=(double)f;System.out.println("d value:"+d);}}The second println statement must give the output 5.1,but its giving 5.099999904632568 both are not equal in my ...
could somebody help me setting up the path to the sdk since the command prompt would not accept the sdk as suchplease specify the names that would be suited for the instllationcheers
hi alli hv installed oracle 8i on win2ki wanna connect thru jdbcbut i am getting error belowi donno whr i got struck?plz help methnx in advancebye////////// details ///////////////////////import java.sql.*;///win2000,oracle 8i/// try to fix whr i hv done mistakeimport java.io.*;class JDBC1 { ...
can u plese send how to connect database in websphere application serverrasmi
Hi every onei've tried to download the file from a URL say( http://domainname/filename.extension)import java.awt.Color;import java.io.DataOutputStream;import java.io.File;import java.io.FileOutputStream;import java.io.InputStream;import java.net.URL;import java.net.URLConnection;import ...
399 byte By
tkta at 2007-10-2 18:10:08
Hi!On our developing enviroment(Windows Xp) everything works fine, but on our client who are using windows2003 termial server when printing, prints fail if orientation is changed to landscape. This happens on every printer their system has. Even on cutePDF printer driver. It does not mater if ...
9859 byte By
eSkya at 2007-10-2 18:11:38
Dear Forum,I am having issues with generation an Application. The error is as shown below:I am using ERP - JDEDWARDS (PeopleSoft EnterpriseOne)Generating application P01012 ...An unexpected exception has been detected in native code outside the VM.Unexpected Signal : EXCEPTION_ACCESS_VIOLATION ...
I know, and have used for years, java on 32 bit Windows XP Pro. I also know I can run that on 64 bit Windows XP.I just bought an Acer Ferrari 4005, which is built aroung an AMD Turion64. I am running the 64 bit edition of Windows XP Pro. It did not have a JRE preinstalled.Is there a 64 bit JRE ...
755 byte By
Anirudha at 2007-10-2 18:26:37
hi,i am running a jar usingjava -Dcom.sun.management.jmxremote -jar start.jari then run Jconsole and it doesnt recognize this process. I also triedto run jconsole with the pid and this is the error i gotException in thread "main" java.lang.Exception: Could not openPerfMemoryat ...
713 byte By
Nozzulaa at 2007-10-2 18:36:03
Hi, i don't understand why java give me the follow results with addition and subtract operation with double:INSTRUCTION //OUTPUTdouble x = 1.0d; //1.0x = x - 0.2d; //0.8x = x - 0.2d; //0.6000000000000001x = x - 0.2d; //0.4000000000000001x = x - 0.2d; //0.20000000000000007x = x - 0.2d; ...
Hi,I am having a MSAccess database in some other system.Lets say it is in the system whose URL is 192.168.1.1Now I need to connect to that database using the methodgetConnection().In this method we need to give three parameters.One is URL,username ,password.But when I am giving the URL as ...
Hello. I'm running Gentoo Linux on an x86 PIV 3GHz laptop (Dell Inspiron 5150) with 512MB ram and I'm having some issues installing J2SE SDK (Java 1.5.0).I'm looking to install JDK as root and I've downloaded the file from the SUN official website. Its current permissions and filename are ...
Can anyone tell me wht is the difference between "jdk1.5.0_05 and j2sdk1.4.2_09"
717 byte By
Xoba at 2007-10-2 19:21:21
Hi,I was installing the lastest version of JDK on XPSP2 platform and encountered this error message:"Java Update cannot be installed on this machine because the directory you have chosen to installed is locked. Please close any brower or application that is using the directory you have chosen ...
I'm running Java server on my windows 2000 advance serverIt has also IISWhen I boots my system then IIS starts automatically in hidden waybut I need to start Java Server by Start >> Programs >> Sun Microsystem >> Application Server PE >> Start Default ServerThen it ...
Hi,is there a way to tell a 1.5 (aka 5.0) javac to compile 1.4-compatible class files *without having a 1.4 SDK installed* (the cross-compilation thing mentioned in the javac documentation) ?Even a clear "There is no way!" would be appreciated.Thanks, Hans
HIDo I need, X windows library to run the java swing application? If so kindly let me know, which library should be installed.Thanksbee
Hi,I am working on a program to get the host name from ip address. I have a huge list of ip addresses around 1000 that i am using to get the host names.I use getHostName() function in InetAddress class to get the host name. But this is taking a lot of time to get the host names. I need to ...
Hi all, I try to build the examples about jnlp given with the jdk 1.5, but it deals with using "GNUmakefile"?!How do I have to do?Is it possible to make it in a more classic way : Ant+Eclipse?I'm on win XP/jdk1.5thanks for your replies.e07
HelloI'm looking for an distribution bundle of j2sdk-1_4_2 for Windows Server Enterprise x64 Edition.Can someone give a link or something else of that.greetzMarc
Hi all,My problem is that in a servlet I am trying to connect to a databaseand need to prompt the user for username and password to connect to the database.My application requires that only users having a username and password can only connect to that database.Could you all pleasee help me in ...
1602 byte By
sanjibma at 2007-10-2 21:29:46
In the JMX Remote API 1.0 Specifications it states that the request.waiting.timeout is the "Timeout in milliseconds for the response to each JMXMP client request. If a response does not arrivewithin this time, the connection is assumed to be broken and is terminated. Specifying too short a ...
String myString = "Hello \"World\"";StringBuffer myBuffer = new StringBuffer();myBuffer.append("This is: ");myBuffer.append(myString);System.out.println(myBuffer.toString());In the debugger when I look at myString it shows "Hello \"World\""After the add to the StringBuffer it becomes: This is: ...
How do you create a foreign key in the derby database proveided in netebeans 5.0. I have tried the following statement:ALTER TABLE staff ADD CONSTRAINT staff_fk FOREIGN KEY (staffID) REFERENCES staff (staffID);I get the error: staffID is not a colum in Table of VTI skillplease help- I just want ...
how do i monitor application running in jdk 1.4 with jconsole
393 byte By
KVAa at 2007-10-2 22:21:25
Hi, I am using java version 1.4.2, and WSAD WebSphere Studio Application Developer (Windows) Version: 5.1.2now my problem is i am using split method,,, and in WSAD i am getting error method not found error.so then i install JDK 1.5,,, now i dont know in wsad where i configure to update my ...
I want to install a tomcat project in the Operation System (Digital Unix 4.0F) , It is a matter of great urgency. who can tell me where I could findthe URL to down load the JDK for Digital Unix 4.0F ?thank you very much.
313 byte By
prassua at 2007-10-2 22:31:30
Hi all, Can anybody help me in getting my small sample program in windows system tray. I request you to specify me with detailed steps. After I searched in google I found some help but with an unknow name called "Mustang". I dont know what it is. Can any body help?Thank you ...
This is really annoying me. I have been away from Java a while using other technologies. So now when I need to use Java again there is a lot of new stuff to play with. Now the problem is, I trying to use enums and it just keeps giving me the same error:warning: as of release 1.5, 'enum' is a ...
hiiii have just installed java 1.5 update 6and to my surprise i was not able to find javac file in the bin folder of javaeither i m totally confused or there was some flaw with the installationjava.exe and other files are all present but no trace of javac.exejava command is working well in ...
Hi,please excuse me, if I磎 wrong here...I磎 searching for the J2SE 5.0.03 JDK version for Windows. Can anybody tell me where to download it? I need it, because a customer runs Java on HP-UX and this is the last version of Java for HP-UX I could find.
I have problem when I try to run jdk-1_5_0_07-nb-5_0-linux-ml.binThe problem :./jdk-1_5_0_06-nb-5_0-linux.bin: line 189: bc: command not found./jdk-1_5_0_06-nb-5_0-linux.bin: line 404: [: : integer expression expected./jdk-1_5_0_06-nb-5_0-linux.bin: line 189: bc: command not ...