Hi all.How can i buy a opensparc processor? Is it possible to buy only the processsor and only the motherbord? My point is to avoid spending of so much money and to have a sparc.Opensparc is good idea but where can i get the physical processor available?Regards,Svetoslav P. ...
I've been looking at the rnadom function but cant figure it out. I have three strings lets say:String s1 = "something1";String s2 = "something2";String s3 = "something3";well i cant figure out how i could randomly select one. Random(); doesnt look like it would work. And thats the only random ...
If I had the following snippet of code, how would you suggest to change the code to make it more portable such as across different platforms?int letter, start, base, val;int inbuf = new int[50];System.out.print( "Enter a letter between A and Z: ");letter = (int) System.in.read();if ((letter ...
If I had the following snippet of code, how would you suggest to change the code to make it more portable such as across different platforms?int letter, start, base, val;int inbuf = new int[50];System.out.print( "Enter a letter between A and Z: ");letter = (int) System.in.read();if ((letter ...
I was checking my add remove section and I noticed that I have 2 J2SE Runtime Enviroment 5.0 update 6 at 119 meg and also one below it J2SE Runtime Enviroment 5.0 update 9 at 119 meg. Can I delete or remove one?Thanks
class Dare does not found!?each class in a various.java file,so what's up?
hello, i have a question: i need to write a client-server application (the client will be running on a mobile phone using j2me and the server on a windows PC) that would communicate using xml documents over a bluetooth connection. My question is: is there a simple way to send and parse ...
import java.awt.*;import java.awt.event.*;import java.util.*;import javax.swing.*;public class DrawCurves extends Frame{CurvCanvas cBoard = new CurvCanvas();// Create area/Canvas for drawingsprivate ArrayList<Coordinate> drawPts;private boolean closedCurve;private int numSides;private ...
Hi allI am having problem installing J2ee 1.2.1 version in windowsXP.I have installed j2ee1.2.1 in C:\j2sdkee1.2.1 directory.and set the following environment variable: J2EE_HOME=C:\j2sdkee1.2.1 JAVA_HOME=C:\PROGRAM FILES\JAVA\JDK1.5PATH=C:\j2sdkee1.2.1\bin;c:\program files\java\jdk1.5\binnow ...
Yesterday I noticed that using the send-email form in the below tut, it's possible to add any header you want. For example, you can just write "date: 12/12/2004" and this header will be added. Is this really safe? http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/ema ...
I am trying to create a simple HelloWorld jsp page that calls from a java bean.I compiled the test.HelloWorld class and copied it into the tomcat classes directory so it is as follows: .../WEB-INF/classes/test/HelloWorld.classWhen I try running the page for the first time I get:a HTTP STATUS ...
I am trying to implement some license checking functionality by verifying that the application is being used within a specific range of valid dates.However, if someone turns back their system clock, they can circumvent this validation. Is there any way to get around this problem? Is there some ...
I am fairly new to JSF, and have a requirement to extend JSF components to enable or disable themselves without having to explicitly do this via JSF expression language. I was thinking the best way to do this was to overide getRendered(), and setRendered(). Apart from this method, I don't need ...
Wow - I didn't expect such a performance increase: our server app that already had a 80% performance part of database access increased by almost 30% just by switching the 1.5 JRE (with server HotSpot) with the new 1.6 JRE! This looks good! :-)
Our programmers have recently rolled out a new Java app to our company and are concerned that Java autoupdates may break the interface. Under MS, I have the ability to filter all the MS updates through a WUS server that allows me to test the update before releasing it to my computers. Is there ...
Hello,I just wonder how expensive volatile reads are, because I've to read an variable which is written once but read by many threads and which can't implemented using ThreadLocal tricks.I read the java-one paper about Java's memory model and it mentions that volatile reads are "very ...
hi there,is there anyway to tell what is the path of the program I'm running? (io wise)this works, but I dont understand the ././././.public class File4{public static void main(String[] args)throws Exception{System.err.println(new ...
I had a question on a test that I thought was poorly worded (that was apparently on an actual AP test). I wanted to see what you guys think. Here it is:A certain interface provided by a Java package contains just a single method:public interface SomeName{int method(Object o);}A programmer adds ...
Hello, Somebody knows what is the difference between SDK and JDK?I have searched in many sites, but the answer always is "they are the same thing". But, that's not true at all because the download page ask you for the "SDK no JDK" download, or the "SDK with JDK" download. Thanks a ...
I have just installed the latest version of JRE on three PCs.Only on one of them was I given the option *not* to install support for additional languages. I wanted to do this on all my PCs.Any idea what could be 'special' about one of my PCs?TIA.
Hi, looks like my computer has the following programs:Java 2 Runtime Environment, SE v1.4.2_03J2SE Runtime Environment 5.0 Update 2J2SE Runtime Environment 5.0 Update 6J2SE Runtime Environment 5.0 Update 9Question is, do I need all this or should I just keep the most updated one (I'm assuming ...
I have to create a GUI that works to navigate through an already created list of plants in another class. The user should be able to cycle through the plants in the in the list, and edit the list with the GUI. I have the GUI set up, but I can't figure out how to display new plant info in each ...
I'm not a programmer, but I need to use Sun Java products for my job. I need to sign up for Sun Java Signing from Verisign. They say I need to follow these instructions here http://www.verisign.com/support/code-signing-support/code-signing/digital-id.htmlI've done step 1 and downloaded the J2E ...
I have a Netra X1 and it have two HD. i disconnect the IDE0 and connect a cdrom. how i do to recognize the cdrom for boot in it SOLARIS 10?
HiIs it somehow possible to reverse engineer md5 hashes ?I mean, i just found [url] http://md5.rednoize.com[/url] and i wondered how this site works.
I need help in making this code compatible with Java (I use BlueJ):It's JavaScript... Thanks in advance!<HTML><BODY><CENTER><SCRIPT> var width=1; for (i=0; i <= 5 ; i++) { for (x=0; x<=4; x++) { for (y=1; y<=width; y++) { var Number=Math.random()*10; var ...
Hi.I have got a problem. I have got 100 mp3 files in a directory. All the mp3 file names start with E_. I want to programatically rename all these mp3 files by removing the charecters E_ from the file name. I used the below program but it is not working. Iam using java 1.6. import ...
i have this message when i type:boot cdromok boot cdromBoot device: /pci@1f,0/ide@d/cdrom@2,0:f File and args:Can't read disk label.Can't open disk label packageCan't open boot deviceHELP ME PLEASE
I have a webapp made up of many servlets. Is there a way to retrieve the servlet that linked to the current servlet?IE: My login servlet redirects to my main menu servlet. Is there a way for my main menu servlet to find out if the client was properly redirected from the login
Hi, My name is Sergio.I磎 trying to implement DBpool(DataSource) whithout an aplication Server, i have an aplication that it is used by 6.000.000 of user to the day, and it makes at least 48.000.000 DataBases Connection in 8 hours. and i磎 not using a Data Source.you can help me to implement a ...
Hi everyone. I noticed a strange behavior from PopupFactory.getSharedInstance().getPopup, I don't know if it's a bug or I'm just missing something.Try this:1. run2. click the "Click me" button3. reposition the window or maximize itThe popupPane is detached from the main JPanel. Now do the ...
hi all,I have 1.4.0 and want to upgrade to 1.4.2 or even 1.5.0 because of a commercial app which needs at least 1.4.2But installing 1.4.2 (or higher) causes an exception in one of my own developed apps which doesn't occur when I run 1.4.0. This occurs after multiple framework calls finally ...
/*NAME:Christopher BensonDATE:*/import java.awt.*; public class Coordinate extends Point// implements Comparable<Coordinate>{public Coordinate(){super();}public Coordinate(int diffX, int diffY){super(diffX, diffY);}public Coordinate(double diffX, double diffY){super.setLocation(diffX, ...
Hey, fellow java programmers.I've been working on a "Pig" program, which requires a class called "PairofDice" and a "Pig" class.I've gotten the "PairofDice" down without too much trouble. The driver program shouldn't be too hard to write...but I have NO clue on how to write a "Pig" ...
/*NAME:Christopher BensonDATE:*/import java.awt.*;public class Coordinate extends Point// implements Comparable<Coordinate>{public Coordinate(){super();}public Coordinate(int diffX, int diffY){super(diffX, diffY);}public Coordinate(double diffX, double diffY){super.setLocation(diffX, ...
Hi,Can any buddy tell me, if tarantella 3.3 is supported on Solaris 8 or 9?Thanks!
Hi All ,The below error message is extracted from /var/adm/messagesDec 11 10:51:22 DIRPRN1 Cluster.CCR: [ID 544775 daemon.error] libpnm system error: bind failed.: Cannot assign requested addressThe error message is occurying during execution of scstat command. Please give me the suggestion how ...
im only familiar with the border and flow layouts, is there another one i could use for this code? import java.awt.BorderLayout;import java.awt.Container;import java.awt.GridLayout;import javax.swing.BorderFactory;import javax.swing.JButton;import javax.swing.JCheckBox;import ...
HiWe are using Scanner or key board to read "product barcode" or command like "cmdAdd" or "cmdDelete".So if the text scanned is numeric value then its barcode or else it will interpret as a command. Basically the user does not need to touch the keyboard. Simply scan the product barcode and scan ...
import java.util.*;import java.lang.*;import java.io.*;public class Grades{public static void main(String []args)throws Exception{// check to see if user entered file name// Get the name of the data file from the screen// You should prompt user to enter the name of the// file with data for the ...
Hi Java Experts,I am running out of ideas on why my findSnomedCodes.java program is filling up the output file (Snomed-Codes.txt) with the same information ([M44110|T33010, , M92603|T10350, ]) continuously. This program goes through a dummy patient result file and pickup the 3rd line of each ...
Just came back from The Spring Experience in Ft. Lauderdale, FL.If you're not using Spring, try it. Awesome stuff from an awesome team. This is how Java EE should be done. Simple, yet powerful.I'm very excited by what I saw.%
/*NAME:Christopher BensonDATE:*/import java.awt.*;public class Coordinate extends Point// implements Comparable<Coordinate>{public Coordinate(){super();}public Coordinate(int diffX, int diffY){super(diffX, diffY);}public Coordinate(double diffX, double diffY){super.setLocation(diffX, ...
HiI'm messing about with the 'transient' modifier when serializing a threaded object; I have written a delay into the thread to slow it down however the delay stops me from serializing it. Does anyone know how I can apply the transient modifier to the following code? Or perhaps give me a ...
Hey, I have a program to write and have no clue what to start with. I was asked to write a Recursion program (program that calls itself) about palindromes. What it needs to do is to ask the user for an input of a string, then take that string and check for all possible palindromes inside of it. ...
Since JDK 1.3, there is a Proxy class that allows us to dynamically generate Java object classes from scripts. We can use it to implement interface functions etc and calls to these functions would be redirect to a hook.My question is, will Sun consider to extend this functionality to compiled ...
My Computer Science class has a major grade project to complete by Dec. 15. For my project I've decided to make a tabbed Java IDE with save, open, compile, run, and some font options. Due to the need to make Java use the command prompt to compile and run, it will be Windows specific.Now, next ...
Hi everyone,Here is what I have:there is a hyperlink on Page1.jsp, which opens another page Page2.jsp through onclick=window.open('./faces/Page2.jsp','mywindow','width=500','height=600');However, after Page2.jsp is opened in a new window, it is always behind the old window with ...
Hi to all,i need a method for ignoring empty lines when my program reades a file like thatstart of fileprint "xoxox"//ignore this lineprintln"xaxaxa"//ignore this lineend of filecheers
i would like to get my radio buttons to display below, a string of text, how would i go about doing that?/* * swingMakeup.java requires no other files. */import java.awt.*;import java.awt.event.*;import javax.swing.*;public class swingMakeup implements ItemListener, ActionListener{JPanel cards; ...