Modify the TicTacToeServer /client from deitel How to program

18741 byte By JavaDistress at 2007-11-26 12:17:48
We've been given example code from the deitel & deitel book how to program and have to carry out the following alterations:a) Modify the TicTacToeServer class to test for a win, loss or draw on each move in the game. Send a message to each client applet that indicates the result of the ...

java.io.IOException: Server returned HTTP response code: 500 for URL

661 byte By radsat at 2007-11-26 12:17:49
Hi I have an application running in the server and another application calls that servlet. It runs perfectly fine in my system, but does not in another system. Could any one please let me know why would that strange behaviour happen. The servlet code is,PrintWriter ...

Java version required for Sun API's for update 1

301 byte By jaguar2010 at 2007-11-26 12:17:50
Hi,I gather that with Creator update1, the JSF version has been upgraded to 1.1! Would this work on an appserver running java 1.4? Or do I need 1.5 for this?I was running the previous Sun API's (JSF 1.0) on java ...

SEVERE: caught throwable java.lang.AbstractMethodError: weblogic.webservice

1906 byte By S.Roy at 2007-11-26 12:17:51
Hi,I am getting the following error while calling the webservice deployed in Weblogic 8.1sp5 version: Please help:SEVERE: caught throwablejava.lang.AbstractMethodError: weblogic.webservice.core.soap.SOAPEnvelopeImpl.normalize()Vat ...

Having dificulties with a load method

177 byte By Akark at 2007-11-26 12:17:52
basically i have a read all lines LineIO method to read .txt files. after doing this i need to store them into my arraylist. how do i do this?any help appreciated.

Textarea

109 byte By EricFalbe at 2007-11-26 12:17:53
How can I add a Textarea to a Frame?Simply declaring a Textarea isn't enough.Isn't it?

DST changes for 2007

583 byte By dlegrid at 2007-11-26 12:17:54
Hello all,We are working through the planning for patching our Solaris 9 servers. The new DST change that is showing up in March of 2007 is putting a new spin on things. In order to get 300+ production servers up to speed by March, I need a better plan than trying to schedule outages the ...

JTable

233 byte By phill10 at 2007-11-26 12:17:55
Hi!I have a column that renderers String.The length of strings may be different from row to row.How can I insert all the string in the cell with line wraping.A string may be very long.Thanks.

JSP Automatic Refresh Retain Scrollbar Problem

841 byte By ktsystemteq at 2007-11-26 12:17:56
Basically I have a table that is inside a Div and the table gets filled out with data retrieved from the server. In order for the data to be up to date the Div has to be refreshed every 10 seconds or so. When viewing the table I will have to scroll down but with the 10 second refresh the ...

Solaris 10 on HP ProLiant 365 - Network device configuration

1022 byte By Philipp_Kunz at 2007-11-26 12:17:57
Hi thereI want to run Solaris 10 Update 6 on an HP Proliant 365 machine. I have checked the hw comp matrix and found its certified at http://www.sun.com/bigadmin/hcl/data/sol/systems/details/2025.htmlI followed the instructions referenced there. ...

Runtime problem

602 byte By Thunder_Blast at 2007-11-26 12:17:58
Can you please help me how to run this command with java (windows):In console : C:\Data> md5sum testing.zip > file.lstI have tried :===========================================================String s = "md5sum testing.zip > file.lst";try{Process p = Runtime.getRuntime.exec(s, null, ...

Smooth rendering Indian language fonts in Swing

307 byte By Deekshith at 2007-11-26 12:17:59
Hi all, Recently in my Swing application, I was trying to use Indian fonts. But rendering is not smooth. At font size 12, I could not read the letters. I had to make size 20+ to make it readable. But it is no smooth.Please help me to solve this problem.Thanks in ...

jdt ECLIPSE compiler

444 byte By daib at 2007-11-26 12:18:00
hi, i've a problem with compling with the jdt eclipse complier: I use this string in a java file to compiler a .java:org.eclipse.jdt.internal.compiler.batch.Main.compile("c:/test2.java");but i should compile like javac compiler, with this string:pb = new ProcessBuilder("javac", ...

Error in return of Vector method

1201 byte By alexmonassa at 2007-11-26 12:18:02
Hi people, I have a problem if a program in runtime: i call a method in a client class named JRSimpleClient and then occur a message of error: NUllPOinterException . let see the server class: the kind of return is VectorVector<Object> myVector = new Vector<Object>(1000); . . . ...

SWT ExpandableComposite question

215 byte By pavel.aronin at 2007-11-26 12:18:03
Hi guys,Does anyone know what kind of composite is VE Palette is layed on? I need the same concept,expandable curtain-like widget to be expanded horizontally. Any ideas? Thank you!

specification for 64 bit?

454 byte By covetous_kid at 2007-11-26 12:18:05
Hi,I am curious about whether or not it is possible to write Java programs that take advantage of a 64 bit machine; namely, would it be possible to allocate more than 4GB of heap memory? If this is possible, then what happens when you try to allocate more than 4GB of heap memory in a 32 bit ...

JEditorPane and line-wrapping plus validate-problem

7513 byte By Annette at 2007-11-26 12:18:07
[nobr]Hi!I have two questions: The first is about line wrapping in JEditorPane and the second is a validate problem.I have a JPanel in a JScrollPane. And to this panel are added and removed some TextBlocks which contain a JEditorPane. I want that scrolling vertical is possible when needed, and ...

Tree Structure in JSP

550 byte By Sabi@Sun at 2007-11-26 12:18:08
Hi,I have an xml file , my requirement needs me to display the xml file as a tree structure in jsp. The user should be able to make changes to tree. he can drag and drop the nodes and save the changes.I parsed the xml file and created a method that returns an arrayList of the immediate children ...

Launching a cmd window from within a servlet

1134 byte By 869065niceguyeddie82a at 2007-11-26 12:18:09
Hi,Im trying to launch a program from a servlet. Im using the following code:try{log.debug("Starting the cruisecontrol batch file...");//a batch file on the path to start ccRuntime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL c:/tools/startcruisecontrol.bat"); log.debug("Should have ...

String comparision

1535 byte By 605346seemapa at 2007-11-26 12:18:11
I have 2 string arraysString[] s1 ={"aroma" ,"Huge", "dock" ,"divide"};String[] s2 = {"a pleasant smell","big","place where ships are loaded","to split up"};The word in the textfield searching from first string array and if found writing the corresponding element of second array in other ...

Calculate Sunrise and Sunset time

90 byte By 556575RiekeyLeea at 2007-11-26 12:18:12
does anyone know how to calculate uk sunset and sunrise time with MIDP2.0 CLDC 1.0?

Cannot use setReadTimeout(), any other alternative ?

1517 byte By 679395XeroGa at 2007-11-26 12:18:13
Hi,i have a very typical problem. I am trying to get an inputstream by using conn.getinputstream(), and of course as everybody knows, the program hangs if the inputstream doesn't come or is delayed.I cannot use setReadTimeout() because i have a limitation of working with Java 1.4.2.I tried ...

how to create different session for 2 browsers

103 byte By 869318shashikumarscreena at 2007-11-26 12:18:14
how to create different session for 2 browsers , where one browser is child of another browser ?

Apache webserver can't find tomcat - mod_jk problem?

1324 byte By 567370bigjona at 2007-11-26 12:18:15
HiI have recently upgraded HP-UX apache software FROMApache webserver: 2.0.55Apache tomcat :5.5.9TOApache webserver: 2.0.55Apache tomcat :5.5.9I have 2 tomcats running, one JVM for a daytime service and another for a nighttime service. So while 1 tomcat is down, the other is up, apache always ...

Can someone explain this casting behaviour?

4421 byte By 677939KomodoDavea at 2007-11-26 12:18:16
Ok, so there are two classes, C1 and C2.C1 contains the following method:protected static final PersistentCheckBoxMenuItem[] getCollections() {Component components[] = ((JMenu)menubar.getComponent(3)).getMenuComponents();return (PersistentCheckBoxMenuItem[]) Arrays.copyOfRange(components, 6, ...

Hide and Show help

392 byte By 869812jimmyraya at 2007-11-26 12:18:17
I am using BEA Weblogic and I need to get a value from a previous jsp evaluate it and based on the value I need to show certain scripting on the next jsp. I was able to create a function and hide and show on the same jsp, but not get the value from one, check the value and then show or hide on ...

JComboBox popup behind frame

291 byte By 869709gehela at 2007-11-26 12:18:18
Strange problem today : I have a JComboBox on a JInternalFrame. When I click the combo, the list gets displayed behind the frame. I can see a small part of the list below the frame, but the rest is hidden.I really dont know in which direction I should be looking. Any pointer ?

Importing classes

54 byte By 869817sharath_priyaa at 2007-11-26 12:18:19
Does importing all classes make my file larger?

Compare types.

185 byte By 671944EikHorsa at 2007-11-26 12:18:20
I have a list with different types of objects in and I want to compare the selected objects type with a type, to see which type of object I have selected.Is that possible?

java package and c++ header files

95 byte By 869817sharath_priyaa at 2007-11-26 12:18:21
What is the difference between importing java package and including header files in c++?

Interaction between -Djava.library.path and -javaagent (bug or feature?)

1639 byte By 869800jj_shorea at 2007-11-26 12:18:23
I am using the -javaagent option to load a custom class transformer whichmodifies a specified method by adding a call to a native library at beginningand at the end. I have made exactly the same modification by hand and notused the option -javaagent:... to prove that everything works OK and ...

Can rs.last() be used after calling the stored procedure?

104 byte By 869789itsmedebaa at 2007-11-26 12:18:24
Can rs.last() be used after calling the stored procedure? If yes what should be the CURSOR types?

Java 1.3 / Java 1.4 - What difference to save a canvas3D in a PNG file ?

946 byte By 662134David38a at 2007-11-26 12:18:25
Hi all, I would like to know if there are some differences between Java3D 1.3 and Java3D 1.4 to save a canvas3D in a PNG file... I have written a class to save a canvas3D in a PNG file which runs with Java 3D 1.3 but not with Java3D 1.4. Java3D 1.4 returns following exception :Exception in ...

Regular expressions

594 byte By 524467niknaksbarbequea at 2007-11-26 12:18:26
Hi,I have a file which I have to parse and extract all the possible instances of a date from. The File is free text format and I can't impose any restrictions on the content (or formatting)I'm using java regular expressions to catch some of the dates, but it occurred to me that someone may ...

What is it that you do not like in Java 6.0?

333 byte By 468685sim085a at 2007-11-26 12:18:27
Anyone doesn't like something in J2SE6.0? Personally I feel that this version of Java was more on integrating Java with other tools and technologies then improving elements in the language. I could be wrong however since I still did not try the 6.0 out...anyways .. anyone wants to ...

Project Problem!

315 byte By 869455Eng_mohameda at 2007-11-26 12:18:28
The PHD to recreat the Microsoft NOTEPAD?can we do it?i can do copy,paste,redo,undo,delete,....,etc operation.i have agood knowlege about Panels,Files,Bars,...etc,but what about Save Dialog,Open Dialog,Print Dialog,Page Setting Dialog?can any one give me ahint or help ...

display is extremely slow for 5.2sp4 on solaris9

394 byte By 480018sun_iplaneta at 2007-11-26 12:18:30
Hi everyone,We are running 5.2sp4 ldap server. Currently we upgraded the OS to solaris 9 from 8. The server is running smoothly, however, we just found out two issues:1) if we use startconsole command to display the console, it shows up extremely slow.2) the font in the console is very small, ...

getPixelColor

264 byte By 869834dogza at 2007-11-26 12:18:32
I have the following line if (Robot.getPixelColor(x,y) == Color.red) but i get the following error, non-static method getPixelColor(int,int) cannot be referenced from a static context . How do i get that line to work?

How to update cell width on a JList?

531 byte By 678239java_knighta at 2007-11-26 12:18:33
Hello,I have a JList with dynamic content.At first the JList is correctly rendered so its width is sufficient to show its longest element. I do not use setPrototypeCellValue() as elements have unknown length.However after I add or delete some element the JList width does not adjust ...

short to byte

71 byte By 869770bzykua at 2007-11-26 12:18:34
Hello, can anyone explain how in JavaCard is cast short to byte?

g.drawstring

350 byte By 679420phillip1492a at 2007-11-26 12:18:35
For some odd reason, this set of code isn't workingelse if (checky == 11){setBackground(Color.white);g.setColor(Color.black);g.drawString("YOU LOST!", 110,150);}Can someone tell me why the drawstring isnt working? The background is becoming white, but nothing is being displayed on the ...

Optimization techniques for JSC2 and its AppServer

212 byte By 667030InfoSysExpertsa at 2007-11-26 12:18:36
There have been several forums posts about the lagging performance of JSC2 and the bundled App Server.Could anyone suggest some steps to optimize the IDE and app server without any hardware changes?

Unable to login to LDAP Directory Console

658 byte By 472187Darkside220a at 2007-11-26 12:18:37
I recently install Sun Directory server 5.2 on a SUN box. I have configured everything and all looks ok. I then proceeded to configure a client for testing, but when I tried to log back into the directory console, it seems as though it will not take my password. I get the following ...

Networking Properties and 3dns

937 byte By 462538BenCuthberta at 2007-11-26 12:18:38
All we have a 3NDS installed which has two of our apache webservers configured in it. These webservers connect to our application server which hosts the jnlp file which launches the swing application which then talks to the webservers for information. My problem is that when one of the ...

Mapping Objects to Relational Databases

797 byte By 594577Telleriaa at 2007-11-26 12:18:40
Hi,I do not know if this is the more suitable forum to ask this question, but I am going to try it:I am developing an application with two parts. 1. A server developed in J2SE which is connected to a MySQL database. 2. A client developed in Swing which shows data received from the server by ...

transcode

267 byte By 384953student14a at 2007-11-26 12:18:41
i use the file Transcode.java from this link: http://java.sun.com/products/java-media/jmf/2.1.1/solutions/Transcode.htmlbut can any one tell me what they mean by audioformat and videoformat , and how can i choose the suitable format.?thanks

Stack Trace Application Hang

359 byte By 671834chadbrindleya at 2007-11-26 12:18:43
Hi,We have a 3rd party application which calls a Java frame and intermittently it freezes!What is the best way for me to debug in a citrix environment or in a multiuser environment in general?Can we get this stack trace to a file?Please accept my apologies for poor understanding, I am new to ...

core lib inside of tag file evaluates el incorrectly?

1390 byte By 334991kheleneka at 2007-11-26 12:18:44
I'm having a major problem getting a tag file to evaluate my el correctly. Here's the test casetest.jsp======================================${value==null} ${value==0}${value!=null and value==0}<c:if test="${value!=null and value==0}">this is not shown, rightfully ...

Locking files on unix problem

4875 byte By 869836mljmeermana at 2007-11-26 12:18:45
Hi, I'm trying to lock a text file for exclusive write use for different threads of an application, started from websphere. I wrote a small standalone test harnass to verify the solution, and found that it works just fine on windows, but completely fails under unix !Using java 1.4.2_08 ...

Getting a reference to a super class.

1372 byte By 628015caffeinea at 2007-11-26 12:18:46
Suppose I have:* a class named Base which contains a function named foo().* a class named Derived which extends Base that also has a function foo().I'd like to call Base::foo() using JNI (this is me playing around getting to know JNI; I know this isn't terribly useful).In Derived, I ...