56 byte By
jmyrla at 2007-10-1 0:57:12
May I know about Metadata Feature in simple words
i am new in java programming.basically i have learnt it about 2 weeks ago. and i have tried created a simple program and i've got this problem.here is part of codes...i am using BlueJ and my error is cannot resolve symbol - class staff. what's that mean?private Staff[] staff = null;private ...
1427 byte By
p595659a at 2007-10-1 0:58:18
Hi, I was wondering if there was a way to use charAt to save a variable as a String or a way to compare a charecter with a String.Here's my code: public static boolean check(String []word,char guess,int letterNo,int j){boolean correct=true;int i=0;String ...
135 byte By
sunlnka at 2007-10-1 0:58:50
I don't know if this question is too personal for Sun ... but who writes the VMs for windows? Sun coders or MS coders? or both?
Does anyone know how to pass input parameters to a Java executable program, which is called by a Unix shell script? I am replacing COBOL stand-alone batch programs with Java stand-alone programs. The Java programs will be called from shell scripts to create reports, which require input ...
443 byte By
David04a at 2007-10-1 0:59:23
I'm trying to do a chat, something like msn messager. And I'm stuck (one more time :-) with a problem:The client logins in the server, and asks to talk with another client, so the server was to make a "room" for them, and give the client an IO stream for that room. But there is only 1 IO ...
Why doesn't a thread become the owner of an object's monitor by running a blank synchronized method of that object?
Hi,I am running a Java process and I am trying to gather memory information using -Xrunhprof. Sometimes it works fine, but sometimes the file ends up only having the minimum of 1974 bytes (which is the header of the file).Anyone have problems like this before? I am starting my programs from a ...
Hi, I have this program, where a method should go through a linked list, and when reached the end, start over again, but I keep getting a NullPointerException... Take a look at this ;) public static void calc() {double rand = 0;double day_rand = Math.random();day_rand = Math.round(day_rand);try ...
2030 byte By
SWATa at 2007-10-1 1:00:04
I'm quite new to Java, but I couldn't find the answer to my question anywhere.1. It's an applet2. I'm using a MS Access 2000 ODBC/JDBC database3. Everything seems to work. I can connect, I can see the database entry if using the first ResultSet ("SELECT * FROM PARKEERGARAGE WHERE DATUM ='" ...
1025 byte By
CAD_Guya at 2007-10-1 1:00:14
I am a CAD Design Engineer, and my CAD system (Pro/E) uses a Java application called J-Link for accessing the CAD system's API, apparently because this CAD system originated on the UNIX platform, although we use it on Windows. The Windows-based CAD systems I have used in the past used VBA for ...
and close down sockets? I have a client/server app and when I close down the socket and associated streams on the client end then the other end gives me java.net.SocketException because it is still reading on its associated stream. Now, it has to be reading because it has no clue that the other ...
creating multithread in a LOOP like......for(int i=0;i<3;i++){threadTest t=new threadTest();t.start();}and Creating multithread separately by 3 different instance .....is there any difference in between ?say, suppose i need 3 thread. should i do thread1.start()thread2.start() ...
<jsp:useBean id="customer" type="Auction.customer" scope="session"/>sometimes instead of type , keyword class is written..... any difference ?
80 byte By
mlka at 2007-10-1 1:01:04
* If you find this lack of PCness upseting, Merry CrappyTV Reruns to you.
71 byte By
jmyrla at 2007-10-1 1:01:09
May I get a simple explanation regarding Process Builder feature
488 byte By
riea at 2007-10-1 1:01:41
hello everyone, i am a newbie in java. I am tring to create a chess program for my java practice. I want to have the dial up connection throught the telephone line in the program. What library should i use? is JTAPI good for me? or i have other simplier choices? by the way, i don't know how to ...
577 byte By
Tuikea at 2007-10-1 1:01:46
Why this code is ok (=user can add new shapes by pressing the button) but when I try to do same in JApplet, with JButton to get new 2dshapes it doesn't work? I can't find any examples or tutorial including any help. (I have found only tutorials on how to reshape an existing 2dshape by ...
Hello,In my application I want to a feature that would show up a dialog when an exception (checked or unchecked) is thrown.The simpliest solution - putting all of main() in try/catch block, and adding dialog code in every catch, is not very good I guess - code inside try/catch executes ...
if(true){System.out.println("I am executing");}else{System.out.println("Sorry I never get a chance");}Why java is not giving a compile time err on the 4 lineSystem.out.println("Sorry I never get a chance");Unreachable ...
Greeting.I tried looking for this topic on the FAQ and various tutorials but I couldn't find it.When I compile an application, I get a .class file with the same name as my primary class and some variable number of "$n" suffixed class files. For example, I have an application that does a least ...
91 byte By
sunlnka at 2007-10-1 1:03:08
I was wondering... Has anybody written code to have java make coffee for you?
Hello again world.Let's get it together folks.Although I'd love to just sit here and look stupid (my favorite activity), I'm not learning anything.Season's Greetings to all.Ciao for now.
<sighhhhh> It's just so quiet and boring around here now.... I might just have to actually go do some work now. Well, it's lunch time anyway, so that'll entertain me for 45 minutes or so.....?
I live in Dallas area and interested in teaching Java for the students who want to learn the Object oriented concepts and Java programming. In the past (3 years ago) I worked as a Java Instructor. I wanted to know whether there is any demand for Java training or not. I would appreciate very ...
When I do heap profiling with HPROF I can get vastly different results even though I am running the same program on the same input.Has anyone else experienced this?Can anyone else recognize and good profiler? I tried JProfiler but it was far too difficult to use and get useful data from. ...
2112 byte By
AWyanta at 2007-10-1 1:04:33
I hope that I've got this in the right forum. I am sure that I might get flamed for this, but I'm needing some help.I've use a secure website that uses a lot of java apps in it (ordering and updating transactions, etc...). The site works in IE wihtout a hitch, however, in Firefox 1.0 and ...
Hi,I have just started using Java. I'm so new the only program I've tried to compile and run is "Hello World". I'm already having problems running the applet. I'm using Java 2 SDK on Windows 2000. The applet works just fine on appletviewer, but I can't get it to work on Netscape or MS ...
Hello to everyone, well I've just installed the j2sdk in my machine, I made a test program in java but when I try to execute the .class file with the java command an error comes out.This is what i do: ./java Hello.classand the error is this: Exception in thread "main" ...
Hi allI would like to ask how to convert int array to String array?rdgsTj
List list = Collections.synchronised(new arrayList())...........what it does ?
510 byte By
Garukaa at 2007-10-1 1:05:35
hi,currenntly i'm reading a html file by giving a the full path of it. But i want to read it giving the realtive path of if. can any one tell me how to give the realtive path of a file in java.Now its something liek this BufferedReader fileIn = new BufferedReader(new ...
How do we create a simple server?We can create a simple server if we do the following: server_socket = new ServerSocket( 5050, 100, InetAddress.getByName("127.0.0.1")); look those statements from a tutorial..where is server ? a language can create a server !!!....... whats happening in this ...
I am trying to interface computer to telephne..The basic problem is i want to detect the ring & detect the pressed numberson telephone keypad, Through modem which is connected to a serial port.I have use javax.comm package., & ring is detected using this package..Is it possible to ...
1175 byte By
Garukaa at 2007-10-1 1:06:10
hi , i'm developing a window (master detail)(JInternalFrame) which has a table (detail part) inside of it.(which i get from a class which extends AbstractTableModal) i'm populating it using mysql database. now this is the problem. i want to add a record to the database via this table. at the ...
Hi All,Actually I need FTP program , it should do the following, (1) Get the IP address,user name, password and destination directory from config file (2) If the Connection is refused/timed out or Directory not aceesible, In this case it should take another IP from the config file and do the ...
Hi. I've just downloaded the Java Communications API Specification 2.0 and am trying to install it. In the installation instructions, it says I must install the "javax.comm.properties" file or else "no ports will be found by the system". Can anyone tell me how to install javax.comm.properties ...
I have created package name abc in which i have a interface "myinter" and a class "myclass". The class "myclass" implements interface "myinter". but when i am tring to compile class "myclass" i am getting an error --Unresolve Symbol Sysmbol:class myinterlocation: abc.myclasspublic class myclass ...
Why do we need JAR file to run our programs? Do we need them always?Pls explain.Thanks
2394 byte By
TreborCa at 2007-10-1 1:06:55
I can hardly put problem in words, less see a solution :^/ But here goes nothing..What Id like to accomplish..A 2D boardgame. Where U jump over bricks with other bricks, as any other classic boardgame. The gameboard is basicly an array[][]/matrix .The Array[][] keeps track of where gamebrickes ...
Hi AllHow to return an array back to the main, below is my program,import java.util.*;import java.io.*;class test{public static void main(String args[])throws IOException{BufferedReader in = new BufferedReader(new InputStreamReader(System.in));Vector nums = new Vector();System.out.print("Enter ...
660 byte By
Arcoma at 2007-10-1 1:07:07
this little thing is preventing my webside from running porperly. the function it is supposed to do ani't happening. the debugger keeps popping telling me this line document.getElementById(...)' is null or not an objektmybe its an easy one but i am to dumb ti know =) (want more of the code ...
Hi everybody,what's wrong with this code?long start = System.currentTimeMillis();/* do some nasty calculation */long end = System.currentTimeMillis();SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss.S");String Elapsed = dateFormat.format(new Date(end-start));For let's say 23,500 ...
Well, I asked at java support and couldn't get a straight answer to somequestions on there Java WEB courses, so I figured I would ask here and see if anyone has taken them or has more info on a particular web based series of courses I was looking at. I am a developer with about 15 years of ...
342 byte By
javakida at 2007-10-1 1:07:49
HiI have developed a web application using jsp, mysql and apache tomcat. Could someone please explain the steps required for me to put my site on the net as I have not done this before. How do I decide who to pick for web hosting? My application is simply two pages with an admin login and a CMS ...
489 byte By
ibicema at 2007-10-1 1:07:59
hi,I want to test the javaMail api. I was told to add "mail.jar" and "activation.jar" files to my CLASSPATH. or to copy these two files to j2sdk\jre \lib\ext.I copied these two files and wrote in my classpath :c:\j2sdk\jre\lib\ext\mail.jar;c:\j2sdk\lib\ext\activation.jarthe compilation of files ...
458 byte By
David04a at 2007-10-1 1:08:30
This has not to do with java.I've read in the forums some "comments" on computer attacks, and haking, etc... But I don't understand one thing: If the only way into a computer (by internet) are ports, and (even if they are all open, without any firewall) if there is no program listening in ...
3019 byte By
Carl666a at 2007-10-1 1:09:18
Hi,I am relatively new to java so apologise if I am being stupid.Ok, this is the scenario: I have a text file called access.log that I wish to split into tokens and then put into a multidimensional string array (apologises if they are not know by that term in java). The reason for this is ...
Hi Everyone, I am new to Linux environment. I am trying to run a simple java program in Linux, I have installed the latest jdk, jdk1.5.0. The program is as follows:public class test1 {public static void main(String args[]) {System.out.println("Hello in Linux");}}I complile it using javac ...
Hello guysI just got 4 gmail invites in my inbox and I don't know what to do with them. I don't think it is some very special, but I want to give them to the forum regulars.So, if anyone wants it, do let me know and I will send you one.