run java application on mainframes

160 byte By lalithasivekumar at 2007-9-30 17:19:32
i have a financial application which needs to run java application on mainframes. Any ideas how i may do it. where do i get the jvm for the various OS. !

garbage collector sets class-variables to null ?

510 byte By Warrior24 at 2007-9-30 17:20:42
I was trying to create a 2-3-tree. After insertion of the third element I got my first problems: somehow the left element of the "root" was set to "null". before the modifying method was closed, everything was alright. Afterwards I tried to reference the pointer, but it was null. The nodes ...

strange inner class behavior

1511 byte By Sun.LiWei at 2007-9-30 17:21:28
[CODE] class Outer {private String foo = "Outer.foo";private String bar = "Outer.bar";private Inner1 inner1 = new Inner1();private Inner2 inner2 = new Inner2();private class Inner1 {private String bar = "Inner1.bar";Inner1() {System.out.println("new " + getClass().getName() + ": ...

program that recognize music

125 byte By coledan at 2007-9-30 17:22:37
I want to make a program that recognize a melody that play.Any little help will be welcome : )Thank you ,Daniel

a utility to get/set permissions of files/folders?

153 byte By preetham.c at 2007-9-30 17:22:43
Hi,I was wondering if there is any utility in java that can allow you to get/set permissions of files/folders? ThanksPreetham

Use java to write a Telnet program...use ANSI

362 byte By ariging at 2007-9-30 17:23:16
I gonna to write a program like Telnet in java. It comes two problems first..1. of course we got use socket to receive/post data. but how to trans ascii code/unicode to ANSI code?2. If use Swing to draw the "termial screen", what object should I use? Jtext? JLable?It must allow users to input ...

J2SE 5.0!? for real dude?

373 byte By JavaWriterDude at 2007-9-30 17:25:52
Hi,Why do I keep seeing J2SE 5.0 all over this website? At first I thought it was a misprint because when I tried download it was 1.5.0 but I see this "5.0" all over the java home page. Is this a marketing ploy and Sun is upgrading their version numbering system or are the new features of "5.0" ...

get unique userid

269 byte By hectar at 2007-9-30 17:26:04
I am getting a first and last name from the database. now i need to create a userid like lastname and first letter of the first name. I did this. Now i need to check if the userids are unique. If it is not unique i can add a 1 to it. Can anyone help me in this.

Strinig.indexOf(String str, Int fromIndex)

3142 byte By aoeuidhtns at 2007-9-30 17:26:07
Hello. In the API reference manual J2SE 5.0 (and earlyer also),"public indexOf(String str, int fromIndex)"is discribed such as,| Returns the index within this string of the first occurrence of the specified substring,| starting at the specified index. The integer returned is the smallest value ...

Definition of Release Candidate?

128 byte By spiritual_fields at 2007-9-30 17:27:22
What differentiates Java 5.0 RC from being a regular release? Is it considered too buggy still, but less so than a beta?

Appliance device JRE Licensing...

779 byte By scottmeeuwsen at 2007-9-30 17:27:23
The JVM would essentially just be running my software. The 'appliance' would be just an install of my software on a standard PC running Linux for those who prefer appliances to installing software on their own box. The same software would be available as a standard standalone software package ...

j2sdk1.4 on WinXP?

533 byte By mplatini at 2007-9-30 17:27:40
Hi, everyone.A greeting from a new comer~_~I got a problem when migrating a small program from win2000(j2sdk1.4.0) to winxp(j2sdk1.4.0).That is a small application using JOGL, and i got a "net.java.games.jogl.GLException":"Unable to enumerate pixel formats of window using ...

Adapter Pattern

77 byte By sasi150 at 2007-9-30 17:28:17
Hi! what is Adopter Pattern in java?Thanx...-Sasi

what is a proxy server. how it works .

168 byte By hi_bgrhari at 2007-9-30 17:28:25
what is a proxy server. how to configure that one . how it works . any one give example . suppose standalone system means how to configure . i want all details.

what is the diffrence between map and map.entry in core java

125 byte By hi_bgrhari at 2007-9-30 17:28:26
what is the diffrence between map and map.entry in core java . where it will be use ful. any one give one example plz.

about collator

69 byte By hi_bgrhari at 2007-9-30 17:28:28
how to use collator in core java. any one give one example .

about dameon thread.

148 byte By hi_bgrhari at 2007-9-30 17:28:29
what is a daemon thread in java. how it works back behind. is garbage collector is daemon thread or non daemon thread. can u give one example

input 12.5 after DecimalFormat's ROUND_HALF_EVEN setScale, can get what?:)

2388 byte By khonsou at 2007-9-30 17:29:06
hi, everybody. i think ROUND_HALF_EVEN means when i input 12.5, after the process of setScale(0,BigDecimal.ROUND_HALF_EVEN), i can get 13.but in fact, the out put is 12....so. i tried 13.5....i get 14( that's what i want...) and i tried more, all the result are right but 12.5..........and i ...

Why Java is so complex ?

754 byte By arfanari at 2007-9-30 17:29:26
Hi, i am a new beginner in Java technology. I feel confused with a lot of technology in java, there are J2SE, J2EE, J2ME, Java Beans, Java 3D,etc. J2EE contain JSP and Java servlet. I just want to ask why java is so complex ? In my opinion, software to build Java application is not user ...

True JavaScript to Java communications

784 byte By Marader at 2007-9-30 17:29:55
What would the interest be in a JavaScript to Java system that can create and use Java components?Examplevar f = create("javax.swing.JFrame"),b = create("javax.swing.JButton"),u = create("X44.events.Uplink");f.getContentPane().add(b);b.addActionListener(u);u.actionPerformed = function _() { ...

New J2SE Release

784 byte By JavaNewbie0841 at 2007-9-30 17:30:18
I've heard about a new Java Release which is optimized concerning the size of the J2SE SDK Platform file. The current file is about 51 MB big including a lot of languges. I'm searching for a smaller file (5MB) which only contains one supported language or even 3 specific languages. At the ...

java -server option not working

473 byte By vineetb at 2007-9-30 17:30:22
Hi,I am trying to run my java application (Windows XP, 2003) in "server mode" by using the -server option but I am getting this error -C:\>java -serverError: no `server' JVM at `C:\Program Files\Java\j2re1.4.2_05\bin\server\jvm.dll'.The server jvm.dll is located in ...

Article on Annotations in Tiger (J2SE 5.0)

442 byte By powelljgr at 2007-9-30 17:30:30
Annotations, a new feature in J2SE 5.0 (Tiger), brings a much-needed metadata facility to the core Java language. In this first of a two-part series, author Brett McLaughlin explains why metadata is so useful, introduces you to annotations in the Java language, and delves into Tiger's built-in ...

Multi-threaded application crashing the VM

353 byte By vineetb at 2007-9-30 17:30:38
Hi,I have a multi-threaded (about 120 threads) application which crashes without after running for a while.I get this in the windows event viewerFaulting application java.exe, version 0.0.0.0, faulting module kernel32.dll, version 5.2.3790.0, fault address 0x000017b1.Anyone knows why this would ...

unload a class

89 byte By sanju_76 at 2007-9-30 17:32:30
What is the command to unload a class @ runtime...(the opposite of Class.forName.)

infrared with java

1488 byte By illuminatus17 at 2007-9-30 17:32:58
I'm trying to communicate between a nokia 6600 and a linux laptop. I downloaded the java IrDA API's from http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/Java.html I don't know if anyone has played around with these, but if you have it would be great if I could ask you a few questions ...

who can give me a reasonable explanation for this situation

153 byte By dadaocy at 2007-9-30 17:34:07
why it is not permitted to put the key word, static, in the front of a method which implements a interface method,and how to understand the sense.

Java can do it that changes file image?

116 byte By okwuzhijun at 2007-9-30 17:34:23
windows platform.Like C:\j2sdk1.5.0\bin\javaws.exe's image is JavaCup.ico, but windows default image.

.equals and "==" WHY ?

296 byte By Itachi_Uchiha_Go at 2007-9-30 17:34:33
String s1 = "String";String s2 = "String";System.out.println(s1.equals(s2)); //Returns TrueSystem.out.println(s1==s2); // Also returns True// Is this correct ? why ?// == compares by mem add right ? meaning those to Strings have the same memory address ?

What are advantages of JDK/JRE 5.0 ?

576 byte By JavaNewbie0841 at 2007-9-30 17:34:52
hello,at the moment I use J2RE 1.4.2_05 and I plan to update to the new Version 5.0.What differences (dis-/advantages) will result from this update especially concerning Java WebStart.I'm not very experienced in this area.I would like to know what the current situation of development is about. ...

Serialization issue

468 byte By vmeghraj at 2007-9-30 17:35:26
Hi there,I have a class A which has an instance of class B and it is not a transient. Class A is serializable and B is NOT. When I serialize class A it throws an exception "java.io.NotSerializableException". Assuming class B is third party where I don't have any control. In this senario what ...

Unexpected java.util.Scanner behaviour

1404 byte By cehjohnson at 2007-9-30 17:36:21
Is it just me or do others find the following behaviour strange? It seems that in order to break out of the loop in the following, it's necessary to enter some character(s) unparseable as a double. Hitting return *won't* cause it to break:public static void scanInts(String[] args) {Scanner ...

button.click() not working ,ie HTTPUNIT

2254 byte By bhimi2003 at 2007-9-30 17:36:27
Hi,I am bhimi... I am facing problems with "httpunit", I would like to know how to click the "continue" button in Compose Text Message page of www.mail.yahoo.com. with my destination mobile phone number and text message as setting parameters....(I could set these parameters but could not click ...

ResourceBundle throwing misguiding MissingResourceException

969 byte By Sourav-Sipani at 2007-9-30 17:36:45
MissingResourceException thrown by the ResourceBundle class can be misleading.The MissingResourceException is thrown by the"getBundleImpl(String baseName, Locale locale,ClassLoader loader)"and propagates to the to"getBundle(String baseName, Locale locale,ClassLoader loader)"and then propagates ...

Wanted: Java code using 1.5

324 byte By mel_at_sofcheck at 2007-9-30 17:37:28
I am looking for (preferably large quantities of) Java source code using the new features available in 1.5 I am going to use the code as part of a test suite for my program which analyzes Java programs. Any suggestions greatly appreciated! Does Sun provide any significant code samples? So far I ...

Unable to Retrieve HtmlCode

739 byte By rlinga at 2007-9-30 17:38:41
Hello,I am trying to retrieve html souce of webpages.The following code works fine for most of the Url's....URL url = new URL(" http://www.coupons-coupons-codes.com/search.asp");InputStream ins=url.openStream(); // read the content of the urlBufferedReader in = new BufferedReader( new ...

Howto: Change users password in Linux with Java

84 byte By MarshallAVT at 2007-9-30 17:39:09
Hi, how can i write a Java program to change user acounts passwords in linux?

resize image with mouse

119 byte By persianshadow at 2007-9-30 17:39:26
hi how can i resiza image or other component with mouse similer to jbuilder ide.....thanks

Adding a class to JDK?

622 byte By TNC2000MAT at 2007-9-30 17:39:45
My teacher provided me with a class that allows me to get input from the user. In order to use this class we have to copy and paste it into every folder which this class needs to be used...having 20 different folders for 20 different projects makes this a pain in he butt since I have to keep ...

J2SDK1.4 on Windows NT 4 SP 6

292 byte By kkestner at 2007-9-30 17:43:37
During installation, I receive the following error:"The procedure entry point GlobalMemoryStatusEx could not be located in the dynamic link library kernel32.dll"Is there any way to resolve this problem, or am I stuck with installing it only on an XP system?Thanks.

J2SDK 1.4 on Linux/PPC32

491 byte By b.dejean at 2007-9-30 17:43:52
Hi.I'd like to get the Sun J2SDK 1.4 for GNU/Linux on PPC32.There's nothing to download on sun.com. Blackdown last release was 1.3 which is obviously outdated. I've found a J2SDK 1.4 packaged by IBM for its pseries but it can run any graphical apps (SIGILL :/) and is very slow (no JIT, or at ...

About Generics of JDK1.5

427 byte By bigbang.zhao at 2007-9-30 17:44:23
Hi,My question is if should I use this feature at this time?If I use it now I have to compile my code with JDK1.5.And since it齭 a compile-time generics, so seems it could not give us much more advantages at runtime yet.But I am not sure whether it will have any compatible risk with future JDK ...

what is persistent variable?

104 byte By sasi150 at 2007-9-30 17:44:47
Hi!what is the correct definition for persistent variable in java?Thanx-Sasi

is it possible to declare an interface without any methods?

106 byte By sasi150 at 2007-9-30 17:44:49
Hi Guys!is it possible to declare an interface without any methods?Thanx -Sasi

JDK New VErsion J2SE5.0RC

73 byte By PrabhuSai at 2007-9-30 17:45:49
The latest version JDK is J2SE1.5RCWhat doed RC stand For ?

Select the printer tray using the Java Print Service with JDK 1.4.2

1710 byte By ricotan at 2007-9-30 17:46:05
Hello,I have got a problem with 1.4 Printing. I would like to specify the printer tray for printing on Windows platform (XP and NT4.0). I am trying to use the attribute javax.print.attribute.standard.MediaTray class (ex. MediaTray.BOTTOM).Howerver, I can control the printer tray if I use the ...

Trouble with FTP input

1460 byte By CaffeinatedCoder at 2007-9-30 17:48:06
I'm writing an FTP client based on a generic socket example I found. I'm not sure if this is a good idea or not. I'm getting a few lines of data from the server, but I was expecting to see the username prompt too. Here's my code...public void run(){Socket clientSocket = ...

Array in Vector Problem

389 byte By sankipoon at 2007-9-30 17:50:24
Hi All,I tired to put an Array into Vector :/-public Object[][] tobject = new Object[100][100];public Vector TreeInfo = new Vector(); ..... some code for input data into tobject .....TreeInfo.addElement(tobject);<it works !/-But how can i get back value of tobject[1][1] from vector TreeInfo ...

How to implement JAAS in J2EE

410 byte By senthil-k-kumar at 2007-9-30 17:50:28
Hi All,I need to implement the windows based authentication system to an intranet based application. In other words, the user should be allowed to log into the application with their windows username and password, so that the application does'nt need store a different password, and the ...

javac doesnt work?

1553 byte By Kodara at 2007-9-30 17:51:11
Hello..I recently started to learn Java programming at school.. Now I want to do some at home too. I got the Java Development Kit... I set the path to D:\Java\JDK1.5.0\bin and it now recognizes the java commands as commands.. So that's not the problem.The problem is; when I try to compile ...