How to detect Java VM

107 byte By dbh at 2007-9-30 8:42:33
Is there a way to find out whether there's a Java VM or Java Runtime is istalled in Windows?

String to Color conversion

404 byte By dwvanteeffelen at 2007-9-30 8:44:03
Hi,How can I convert a string to a color? I read that you could do this with the method decode( String nm ) but then the argument of this method is a 24-bit integer. I want that the string 'blue' is converted to Color bla = Color.blueand when the input is 123,123,123 I want something to ...

Problem with javac and windows

482 byte By rotfogel at 2007-9-30 8:44:08
I just installed j2sdk1.4.2_04 on my windows xp machine and I tried to test out the compiler just to make sure it works. I wrote the "hello world" program on a notepad text editor and I called it test1.java. In the bin directory of j2sdk1.4.2_04 I wrote the command: javac test1.java... and I ...

Input read class

131 byte By me_no_like_java at 2007-9-30 8:45:01
can someone show me the source code for a class that i could use to read input in other programs? thanks for the help

JSDK 1.5 B1

96 byte By bshellenberg at 2007-9-30 8:48:12
Does anyone know of the progress on 1.5? It seems (to me) that we're stuck on B1.

JAXP, J2SE 1.4.2_04, Xerces 2_6_2, jre/lib/endorsed

1192 byte By matthiasW at 2007-9-30 8:50:42
My understanding is that I could use the latest Xerces installation from Apache together with Sun's j2sdk1.4.2_04 by taking advantage of the "endorsed" mechanism provided by the J2SE platform. That is,I should be able to throw the latest Apache's Xerces implementation into the ...

Problems deserializing objects with Microsoft VM

267 byte By javamaniam at 2007-9-30 8:51:12
I am getting a 30 second delay when deserializing objects: using Java 1.1.8 ObjectOutputStream.defaultReadObject() causes a 30 second delay. This only happens on Internet Explorer using the Microsoft Virtual Machine.Any ideas what's causing this delay?

Image File Size

223 byte By patrick_harman at 2007-9-30 8:52:20
I need to determine the actual K size of a buffered image. Since it has not been written to disk it's I am not able to access it using a File object. What would be the most efficient way of doing this?

CRC32 polynomial?

150 byte By imNirmalya at 2007-9-30 8:53:49
Hi All,Could anyone please tell me which polynomial is being used in the class java.util.zip.CRC32?Regards,nirmalya

trouble getting java install wizard to work with 3rd party software

861 byte By trishk at 2007-9-30 8:57:27
Hi, I just installed Java 2 SDK version 1.4.2 under Solaris 8. The installation appears to be fine. I changedthe links and PATH to make sure I'm pointing to the correct version. I am trying to install a 3rd party software called Powerchute Network Shutdown by APC, to be able to shut down our ...

Java HTTP/1.1 client persistent connection.

504 byte By GaryEMason at 2007-9-30 8:57:39
It does not appear that HttpURLConnection is capable of much control over HTTP/1.1 persistent connections. For instance how would a Java client application set, or influence the setting of, Connection: Close on the third GET of a persistent connection to signal the server that it may close the ...

One question about the JMX

417 byte By Hunter at 2007-9-30 8:58:11
are you familiar with the System.management namespace of MS.NET? do you know something about the JMX? Now, I want to design a software with JMX, and wish it's function is similar to the system.management namespace of MS.NET ?do you think that it's possible? could you give me some advices ...

drawing text in a jpeg image

229 byte By Papusquestion at 2007-9-30 8:58:36
Hi,I want to draw a string in a jpeg image file.The file will contain only that string.Anybody can help me suggesting the best way or any available program is there for it.Thanks in advance.Papu

JAVAX.SERVLET MISSING

144 byte By nigelevenden at 2007-9-30 9:00:25
When trying to comile, I am getting the error "package javax.servlet" and "javax.servlet.http.*" do not exist.Can you help?

setting file paths

248 byte By xwingk at 2007-9-30 9:01:42
Is there any way I can programmatically tell java.io classes to assume that file paths are within the source file directory? I'm asking because the sdk does this by default but, by running in debug directories, NetBeans changes this.

what different of all version of jdk(include j2sdk)

707 byte By benben-to-apple at 2007-9-30 9:02:31
hi everyone:I have developed an application. But there are some other applications worked with our application. And these applications are written by java, and compiled and run by different version of jdk(or j2sdk) correspondingly. And these applications are B/S structure, the browser is IE. ...

Transformer

278 byte By chee at 2007-9-30 9:02:34
I'm running to a problem when creating a Transformer it nulls out the StreamSource(stylesheet) I'm passing in. Any idea why its doing that and how I can stop it. Here is the codeTransformer transformer = theFactory.newTransformer(stylesheet);Thanks

currency

300 byte By vitaliiusa at 2007-9-30 9:05:18
user inputs number. 12.354.i turn it to float. then i want to check how many digits are after decimal point to see if valid currency amount was entered. if it is not currency i throw the error. how can i check if a number is a valid currency, with two digits after decimal point? ...

Check Incorrect date?

824 byte By Flokky at 2007-9-30 9:05:40
Hi, I've got written this code with some help of Sun's tutorial. But I still cannot find out why this program doesn't throw any exception when I try to enter an invalid date. What can I change so that 30/2/2004 (February 30th 2004) is incorrect?public class Testje {public static void ...

Microsoft COM from SUN Java

146 byte By TerrySund at 2007-9-30 9:07:23
Can I manipulate MS COM Objects directly from SUN Java or do I have to do it via C++? If so can you point me to info on how? Thanks!

Applet doesn't work if regional setting is not US.

1519 byte By AshuMehta at 2007-9-30 9:07:45
Hi Mine applet works file if the regional setting is English (US). But If the regional setting is changed to French or japnese it gives problem due to diffrent time Zone. ex. 20-MAY-2004 as per US setting is interpreted as 21-MAY-2004 in French regional settingBelow is the methods which give ...

Is this file a compressed zip file ?

237 byte By Vince at 2007-9-30 9:07:48
Hi all,My program receive a file, which can be a regular file or a compressed zip file ...Is there any way for it to determine if this file is a zip one in order to decompress it ?Thanks !Vincent

Does any one know JDK 1.4.2_05 relase date?

660 byte By kakarlamohan at 2007-9-30 9:07:54
We are having some OutOfMemoryErrors issues with 1.4.2_02...and I found this is a bug in this version and even later version. In bug tricking it mentioned these bugs will be fixed and released in 1.4.2_05. So I am wondering when this going to available. Please if any one knows the dates post ...

JDBC - how to execute queries?

8741 byte By dudi_da at 2007-9-30 9:09:21
Hi aii.I a novice regarding Java, and I guess the following question was already asked, this way or another, but unforunately the information I got so far haven't helped me to solve the problem.I'm trying to connect to a data base, by using an Access *.mbd file. The DB USN is defined ...

Which XML parser is built into JDK1.4.2 ?

282 byte By lightation at 2007-9-30 9:09:41
Which XML parser is built into JDK1.4.2 ?Is it Crimson, Xerces ?Do you know which version ?When using inbuilt XML parser with JDK 1.4.2 which API shoudl I look at ?Is it only the standard JDK API at http://java.sun.com/j2se/1.4.2/docs/api ?

abstract console input class and class deriving from it

4788 byte By wsbenedictv at 2007-9-30 9:12:29
Hi,i have created a simple class that reads and writes from the console. As i may want to program other code in the future that has a console interface, i want to keep this class as generic as possible.But when i implement it (extend it), i get an error like so when ...

Cant delete files

304 byte By fitz at 2007-9-30 9:13:45
Hi,I'm using the .delete() with the RandomAccessFile but it keeps return a false boolean meaning that it has not deleted the file. It works fine with the deleteOnExit but this isn't suitable for the application, has anyone any ideas on what might be going wrong, Thanx,Fitz. ...

InetAddress.getByName(...)

167 byte By Rod-Kay at 2007-9-30 9:13:53
What's the underlining mechanism for InetAddress.getByName(...)? Does it ping the specified domain name or it communicates with a name server somewhere?

download jdk 1.3.1_08

206 byte By asishpatnaik at 2007-9-30 9:14:04
Hi all,Can some one give me a link from where i can download jdk v 1.3.1_08?I could not find any link to this particular version.Any help will be appreciated.Ashish

Software Components Needed to Start Servlet/JSP development

113 byte By aartimehta at 2007-9-30 9:17:29
HiCan you list what are the software components required to develop Servlets and JSP pages.

How to get hardare cpu frequency by java API ?

283 byte By YuTseLin at 2007-9-30 9:17:48
as title.I want to know my ccomputer hardware`s cpu frequency even its total memory size by java code ?If I can get its cpu contnet (AMD or Intel or more) is better ?How can I do ?please help.Appreciate. thank very much.soultse

Pls Help me with I/O

679 byte By mdoubledragon at 2007-9-30 9:18:30
please help me with this strange problem regarding i/o to a file. you gottaread it carefully or else u wont get it!!! my program operates as a reader form and a writer form. in normalconditions, i can make(append) new entries whenever i want, and reader willread it. But my program works same as ...

somebody help me

326 byte By hiepdeptrai at 2007-9-30 9:18:33
i just want make applicationhave two JText Area : username and password and button Loginthen i wantwhen i click Login its will login to external page :D such as java.sun.com/login from my application its easy with JSP but i got into trouble with applicationsomebody help ...

Printing a Page when Hyperlink is clicked.

219 byte By PrabhuSai at 2007-9-30 9:21:43
I have .jsp page. with some generated content. In that page, there is an option PRINTABLE PAGE. When the link is clicked , the content in the JSP page has to be printed. How to do it......................?

Wrap the text

121 byte By JavaForumkgvinoth at 2007-9-30 9:21:47
I would like to wrab the content of the JTable column if the text is more. Is that is possible . If so How?

Why just after I reopen the JFrame ,i can see the image

116 byte By zzsnake at 2007-9-30 9:21:56
only when I maxsize or reopen the jframe ,i can see the image on the panelwhat's wrong .thanks

Reading Named Pipes in Unix from Java

416 byte By Taarini at 2007-9-30 9:22:10
How do I write a Java program that reads from a FIFO xferlog generated by the FTP server running on Unix. The java program should continuously read from the xferlog. How do I read the fifo xferlog on Unix from Java ? Is it the same as reading from a normal file input stream or Do I need to use ...

Problem in Accessing serial port using java comm Api

543 byte By hsprusty at 2007-9-30 9:26:01
I have installed java comm Api in my pc.i have gone through the instalation instruction which comes on this package.I have done the instalation like thisCopy win32com.dll to my <JDK>\bin directory. Copy comm.jar to my <JDK>\lib directory. Copy javax.comm.properties to my ...

Java Applets Without Installing JRE

250 byte By Mahesh@idealake.com at 2007-9-30 9:26:11
Hi , I want to know how can client can run java applet (which is downloading some data from server) on his/her browser without installing anything like (JRE/JSDK).waiting for solution...

J2EE SDK 1.3.1 and J2SE 1.4

509 byte By hsiaok at 2007-9-30 9:28:39
On URL http://java.sun.com/j2ee/sdk_1.3/It tell what versins of j2SE work with J2EE SDK 1.3.1:J2SE Version Solaris SPARC 7, 8 1.3.1_02 or 1.4 Windows NT 4.0 Windows 2000 Professional 1.3.1_02 or 1.4 Linux Redhat, v. 6.2 1.3.1_02 or 1.4 My question is on J2SE 1.4.Does it include any 14.xxxxx or ...

Performance hit when same file is read by multiple threads

2298 byte By sathya8784 at 2007-9-30 9:32:17
Consider this scenario : there are 100 users who are simultaneously trying to download the same file from a server. We ran into the problem that when such a scenario occured, the time for reading the file became enormous. Our code for reading the file is very simply :long startTime = ...

Make image gray

227 byte By -Ushanta- at 2007-9-30 9:32:53
I would like to know how to make a colorful image completely gray. I want to create a background for a web app of mine and i want to do so using java.....does anyone know?RegardsUshanta

Store filenames from path in an array

327 byte By olerag at 2007-9-30 9:33:24
Can someone tell me the class/method used to obtain the resultsof files located in a specific directory path. I suspect the results wouldbe returned in either a string array or vector AND that the specific pathcould be allocated thru a string argument value.Thanx for any assistance... ...

Julian Date - How?

230 byte By olerag at 2007-9-30 9:34:10
I guess the subject says it all. Can't find anything in the Date or Calendar classesthat provide this. Is this something I have to compute myself once a Date objectis instantiated from its constructor?

Performance of JBOSS 3.2.3 on AIX versus Linux.

593 byte By avinashbandgi at 2007-9-30 9:39:07
Hi All,I have web application deployed in JBOSS 3.2.3 on AIX - with IBM JDK (java full version "J2RE 1.4.1 IBM AIX build ca1411-20030930") and on Linux with Sun JDK ( "java full version 1.4.2_03-b02" ). Same application deployed in same Application server on different platforms with different ...

All JAVA related S/W

122 byte By Lovely_Girl at 2007-9-30 9:39:13
Is there any place i get all the versions of java software from first to till date.Plase post the URL

J2SDK1.5.0 (beta) - serial port support?

114 byte By siu-nashman at 2007-9-30 9:39:50
Hello, das this version of the JDK support the access to the serial port (OS --> Windows)?

How to create a JAR file ?

232 byte By mapleleafindia at 2007-9-30 9:42:38
Hi,I would like to know that how to create a JAR file. I know that a bean can be converted into JAR by taking the manifest file. But can we create a jar file to a java file other than a Bean.Thanking you.

Differences between JDK 1.5.0 Beta 1 and Beta 2?

145 byte By ThomasMueller2 at 2007-9-30 9:44:10
Hi,Does somebody know the changes between Beta 1 and Beta 2?I couldn't find the documentation anywhere.Thomas

org.apache.crimson and 1.5

595 byte By ToddCorley at 2007-9-30 9:44:33
I am trying to test an application in 1.5 and am getting compile errors for crimson references in classes someone else wrote.Looking at the JDK src, it looks like the apache packages are not bundeled in to the 1.5 beta.Wth the preface that I am mostly a Swing developer my questions are...I know ...