After call proc.waitFor();. My process is hang.

2531 byte By level255 at 2007-9-30 22:26:47
Dear sirI stuck to this trap for a few day. And don't know why my code not work.I want to shutdown mysql server by execute command"mysqladmin -u root -p shutdown"after call this command I must provide password.But after I wrote outputstream to Process. It HANG! (Do nothing and still in task ...

J2SDK install on W98 SE

791 byte By Billward at 2007-9-30 22:28:40
Problem installing Java 2 SDK SE v1.5.0OS W98 SE.Downloaded jdk-1_5_0-windows-i586.exe on 16 Nov 04. Size 44986kb.Clicked the above file and installation started.Asked to accept license agreement ?accepted.Msg: Please wait while the Install Wizard installs Java 2 SDK, SE v1.5.0. This may take ...

non-static method

2664 byte By Rusty at 2007-9-30 22:30:01
Hello everyone ... I know this will be a pretty simple problem for some of you, but keep in mind that this is my first course in Java, so I am sorry if this question is dumb.We have been studying methods, and are just now starting to write our own user-defined classes to create our objects ...

java library versioning

573 byte By EpiMartin at 2007-9-30 22:31:15
HiI have two versions of one library (jar file) and I need to support exclusively both of them in my code (firts version or second). Both versions have different APIs (e.g. method names, parameters ...). Since the Java doesn't have a preprocessor, I can't just use something like #if ver = ...

Synchronized block

944 byte By ludovicmaillet at 2007-9-30 22:32:26
HelloSimple question (not sure of the response) : I think that the following code means that two concurrent threads cannot execute at the same time the lockedObject in the synchronized block, is this exact ?To be more precise, this scenario is possible ?: 1. ThreadA lock lockedObject and ...

Java 1.5 - books, tutorials, etc...

188 byte By JavaWisdom at 2007-9-30 22:32:52
Hi, where can I find books/ tutorials/ any other source of material about Java 1.5? I'm interested primarily in the new language features: generics, enumerations and so on. Thanks.

jdk1.4 and jbuilder

4496 byte By willliam_q at 2007-9-30 22:32:58
hiI am using Jbuilder x 10 and have installed JDK1.4.2 which actually comes with jbuilder. I was given a program from my university lecturer who told me the program works in jdk1.3 and that I have to get it to work with JDK 1.4. here is the problem I am gettting. If anyone can help it would be ...

Please Help !!!

635 byte By nur_afwa at 2007-9-30 22:36:47
hi everybody...im a beginner to java..this is my assignment:i was requested to develop a web-based application that use java..im not expert in codes so i think i need java tools to help me so i can basically develop from the design. requirements:database - MySQLserver - LINUXi wonder can i use ...

Oracle 10g jdbc Driver Compatibility with JDK1.2

450 byte By assifmca at 2007-9-30 22:51:56
Hi,we are using jdk.12 as front end and oralce 9i as backend. We now upgrated the backend as Oracle 10g and we are now using oracle 10g jdbc driver. We are using the resultset interface in our project. It asked for the some updateref, geturl methods to implement. So we upgrated the resultset ...

Installing SDK from a Batch File without user Intervention

658 byte By partyman6666 at 2007-9-30 22:57:14
Is there any way to Install the SDK on a system from a batch file(using the .exe) without asking the user where to install it and to accept the license agreement?I would like to install the SDK as part of the installation of a bundle of software that I am producing, and I don't want the user ...

Get Method

519 byte By Royboy50 at 2007-9-30 23:00:41
I wish to invoke a method to override the ArrayList.get() method. I wish to return the top card within a randomly shuffled pack of cards. This is ok if i use an arraylist and then arrayList.get(0), but i have created a Deck class which uses a deck ArrayList to hold cards.If i invoke my own ...

How can I save user options

254 byte By tleis1 at 2007-9-30 23:03:47
Hello guysIs there any way to save the users preferences in my application for later use?for example the user clicks tools >> options. and there he/she choose one of three choices and this choice must be saved for the next use.

I want to connect my application with a website

489 byte By tleis1 at 2007-9-30 23:03:50
If I want to connect my java application with a website, where should I start. Can I begin by designing an Html file, to connect it later with my java application with will be in turn connected to a database? Or does java have some way to create html pages and connect them to internet?and ...

keyword this + finalize method + System.gc()

1589 byte By Rusty at 2007-9-30 23:04:03
We are currently on Chapter 9 - Inheritance in my CIS 201 class at school. There were three new things introduced in the last part of the chapter, all of which I have yet to grasp. Inheritance was smooth ... but I don't understand#1) Keyword 'this' ... what its used for, the difference ...

jbuilder(help help)

220 byte By persianshadow at 2007-9-30 23:08:48
hi i write program by jbuilder9 and execute this........i want remove jbuilder icon from this .exe file and put custom icon.......how can i this work?please help me........thanks

Mac OSX (JDK 1.4.2) Stubs for Windows Build

224 byte By paultaylor at 2007-9-30 23:10:35
Anybody know where the stub library is for building OSX specific code on windows (i.e the Application class).Ive seen it before on the Apple Website but having been looking for half an hour now without any luck

J2SE 5.0 ClassFormatError

1846 byte By bjvh at 2007-9-30 23:14:38
I've written a simple Enum, shown below, that uses a "constant-specific method" as described in http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html. I am using the J2SE 5.0 SDK for Windows.public abstract enum Color {RED() {String getName() { return "RED"; }};private String ...

How to start to build Java web application and compile/run it

247 byte By jackphang at 2007-9-30 23:16:23
Hi,I just downloaded the j2se sdk 1.4.2.i have the sun application server.the problem now is i dont know how to start to build a jsp/servlet application. Can anyone help me?thanks a lotregards,Jack.

asant problem

268 byte By jackphang at 2007-9-30 23:16:29
hi,when i run asant build in c:\j2eetutorials\examples\web\date, and error occurs=>BUILD FAILED. file c:/j2eetutorial/examples/web/date/build.xml:55 c:\lib not found. how to solve this problem?thanks alotregards,Jack

[Urgent] About hashtable, Vector

255 byte By IndyaRaja at 2007-9-30 23:18:58
Hi guys,I am going for an interview. Can you please help me on these topics or suggest me a good url to study ?1. About Hashtable , Vector, ArrayList2. When to use these ? comparison , pros and consCheersIndyaRaja

Maze application and 2D arrays

431 byte By wickedprayer at 2007-9-30 23:20:18
I'm in the middle of making a java application that solves a 2D maze obtained from a text file, the text file contains x's for walls and white space as space. I want to read the characters into a 2d arrays (rows and columns), so that if the maze is 40x30 then it reads the first 40 into an ...

where is possible to get j2sdk-1_4_2_02-linux-i586.bin ?

176 byte By Encapsulin at 2007-9-30 23:25:22
Dear community,where is possible to get j2sdk-1_4_2_02-linux-i586.bin ?i need to install jre on FreeBSD from ports, so needed this binary.Thank you.

Where do I get the JDK1.1?

314 byte By zoltan_ie at 2007-9-30 23:27:35
I've gone here ( http://java.sun.com/products/archive/jdk/1.1/ ) and downloaded the zip file but all I get is HTML files about the API and examples and other documentation. Where do I get the compiler (javac)? or have I gotten everything totally wrong?I would appreciate any help that you could ...

jdk 1.5.0 : javac : -target option?! Only 1.5 bytecode version is supported

253 byte By hworost at 2007-9-30 23:30:34
Hi,What has hapend to javac in jdk 1.5? It is able to compile just 1.5 bytecode version. You'll get "javac: target release 1.x conflicts with default source release 1.5" (where x < 5) message otherwise. No source is compiled. ?!

Eclipse strange window behaviour!

395 byte By 485537idq2k3a at 2007-9-30 23:32:32
Hi! I just started to use eclipse ide and i notice some of the window is not displaying correctly. The buttons are just too big and if there are lots of button on a dialog, the right hand side buttons will not be displayed. Has anyone have the same problem as well?Besides this strange window ...

Two Problems with IDE 3.6

400 byte By tleis1a at 2007-9-30 23:35:46
hiFirst, I cannot access images I do not include the absolute path, and I want to create an application that will be used on many machine that have different paths, isn't there any solution?Second, I installed the Morena library, compiling it with Net Beans indicates javatwain error. the ...

Where can i get all the information of doc tool?

119 byte By Jakooodinga at 2007-9-30 23:36:05
i am fresh to j2se,now i am puzzled by the doc tool.how can i use it,and why i should use it?thank u(in advance)

java running at background

484 byte By nottyboya at 2007-9-30 23:36:15
hi, I just installed Java sdk 1.4.2_05 for itanium in my server, after installation the java seems like running in tha background and taking up 99% of the processing power and slow down the server. although i have killed the process, but i just a bit curious on why it runs at the back ground ...

Covariant Return Types - J2SE 5.0

501 byte By azkerbana at 2007-9-30 23:38:56
I just read the tech tip regarding the new covariant return types in j2se 5.0In the doc, it said that you can now compile two methods with the same signature but with different return types. I was wondering if anyone knew how this would affect what the following expression returns: ...

No JConsole in latest JDK?

391 byte By ggehlota at 2007-9-30 23:39:32
I am using the following version of the JDK -java version "1.5.0-beta"Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)But I cannot find the new JConsole tool in %JAVA_HOME%/bin or anywhere else.Has it been ...

BROWSE Button

111 byte By Stuby085a at 2007-9-30 23:39:41
How can I make a BROWSE button that shows the user their harddrive and has them select a folder or file?

UNC Paths

415 byte By Ammara at 2007-9-30 23:40:33
Hi,I am using java.util.io package File class to create an instance as following:File f = new File("\\\\dctm-app1\mydir");where dctm-app1 is a machine on the network and files and "mydir" is a directory. Now the code works on my development machine which is using JDK 1.4.2, but when deployed on ...

dll file (please help me)

549 byte By persianshadowa at 2007-9-30 23:41:24
HII work with jbuilder9............I writing program that use into from "Windows Tray Icon" packagefor show icon in system tray of windows.When i run program into jbuilder program right work but when that i execute program (build .exe file) program not work!?(I put .dll file into classpath)(I ...

I want to use a variable inside and outside my class

3861 byte By tleis1a at 2007-9-30 23:42:30
Simply I have the application below, and I want from another application to check the value of the integer (action). how can I do this without doing this :Properties prop = new Properties();which opens the frame and this is what i dont want to do.// Here Is my programimport java.awt.*;import ...

PHP & JAVA (Unable to load Java Library)

865 byte By cj_1a at 2007-9-30 23:43:30
Hello, I try to execute a script ncluding the call with JAVA routines, I obtain the following message: Fatal error: Unable to load Java Library /opt/j2sdk1.4.2_04/jre/lib/i386/libjava.so, error: libjvm.so: cannot open shared object file: No such file or directory in ...

java.io.IOException: java.io.IOException

1967 byte By @monish@a at 2007-9-30 23:45:03
HelloI am trying to build my application on Linux using Weblogic 8.1 sp2 jars However the Build is Successful the application while building throws : java.io.IOException: java.io.IOException: javac Warning.the same build is successful without warnings if we use Weblogic 7.0 jarsPlease help if ...

super or not

840 byte By weica at 2007-9-30 23:58:53
I ran across the following in the java.lang.Properties code:public String getProperty(String key) {Object oval = super.get(key);String sval = (oval instanceof String) ? (String)oval : null;return ((sval == null) && (defaults != null)) ? defaults.getProperty(key) : sval;}IMHO, the first ...

SealedObjects and unsealing them

665 byte By RachelSwailesa at 2007-10-1 0:05:22
Hi thereI am busy coding the section of my program that will store the user's username and password in a SealedObject.The original object is called UserDetails and has two Strings. One for username and the other for password. They are both just Strings - no special encoding or anything.When I ...

Possible Bug on File.lastModified() [Java 1.5]

118 byte By pikachua at 2007-10-1 0:06:08
The method long lastModified() of class File is bugged, it returns a wrong time, the hours are increased by one

Prepared Statment - Order by

762 byte By ann460a at 2007-10-1 0:08:09
Language : JavaDatabase : OracleI am trying to use the following sqlselect * from EMPLOYEE WHERE EMPLOYEE_LASTNAME='ABC'ORDER BY EMPLOYEE_LASTNAMEusing prepared statment :select * from EMPLOYEE WHERE EMPLOYEE_LASTNAME=?ORDER BY ?I set the parameters using ...

learning Java on a Mac

397 byte By skibaera at 2007-10-1 0:14:13
hi,I just started to enter the world of programming and Java. I bought a selfteaching book. They tell me I have to download the J2SDK and the JVM.I find files for Linux and windows platform, butI am using a Mac with the OS X. What do I have to download to get started with Java and to do my ...

difference in load and loadlibrary

150 byte By swaroopkberaa at 2007-10-1 0:14:41
i couldn't figure out the difference between java.lang.system.load() and java.lang.system.loadLibrary().thanks in advance for any help.

Three Key Principles

2113 byte By Rustya at 2007-10-1 0:18:47
Alright ... I took a test today in my Java class, and this question was on the test. I feel as if I got it right, but I wanted someone elses opinion on this. Pasted is the question and my answer.1. ModularityModularity is an important aspect of Java. By using modularity, we move away from ...

Error executing examples from deitel book

241 byte By tleis1a at 2007-10-1 0:23:29
HelloI was trying to understand how the code in the mentioned book works, so I compiled a 3 files example, and it was ok. but when I want to execute the main (WebBrowser.java) I got an exception in thread Main. Any Help?

Timer and TimerTask Porting form win2k to Solaris

417 byte By Glenn_SAa at 2007-10-1 0:28:41
Hi,The program that functioned in windows did not work when ported into Solaris. Java gave a java.lang.NoClassDefFoundError in Solaris., not finding the Timer or TimerTasks class. Yet, I checked the rt.jar's contains the Timer and TimerTasks just in case my install did not do it right. Both ...

SimpleDateFormat

1458 byte By Stuby085a at 2007-10-1 0:33:07
I am using the SimpleDateFormat to reutrn the number of the week in the year. But I think I may be using it wrong. As everyone knows there are only 52 weeks in the year, but when I check the week number that was returned to me, I am getting 77.Here is my code:import java.util.*;import ...

Java No Operator Overloading Why?

233 byte By ThePreachera at 2007-10-1 0:37:01
Just wondering why Java didn't implement operator overloading as have just converted a quaterion camera from c++ to java and the maths equations in java is just painful. Was there a good reason for leaving out op overloading?

Identifying client ip from the server

103 byte By Anshuman.N.Ua at 2007-10-1 0:40:57
I want to know the ip address of the client who are accessing my app server.how to do it.

Problems with JStat / Visualgc connecting remotely

577 byte By MCMikeya at 2007-10-1 0:48:03
Hi All,I'm trying to use jstat / visualgc to look at the application we're currently developing which runs on solaris with jvm 1.4.2. From what I have read in the documentation I should be able to use visual gc [pid of jvm]@[ip of machine] to connect to it. However I get a connection refused ...

Why clone() in Object Class is protected

149 byte By HAISURESHBABUa at 2007-10-1 0:49:26
hi,Why clone() in Object Class is protectedWhy finalize() in Object Class is protectedWaiting for your replysuresh