java applet problem

404 byte By Fiona123a at 2007-10-2 0:54:53
My friend has to access a web site he has to access which wont load the java applets on his computer. He can access them from his work computer which is connected to the server. Is there anything he can do to make these applets work on his home computer? Any settings we should check on internet ...

SDK installation integration

321 byte By NZGa at 2007-10-2 1:08:41
My company is distributing an open tools package using Eclipse.We would like to integrate the Sun SDK installation into our installer.Is there any way to do this?A URL I could point at perhaps that would start the SDK download process and bring up the licensing ...

when did JDK 1.5.0_02 release?

394 byte By symbolscha at 2007-10-2 1:09:41
hi all, I have a question about JDK 1.5.0 update 2 released date.can anybody help me ?if anybody knows the link of JDK 1.5.0 update 2 notes, please tell me.Or if anybody has the release notes of JDK 1.5.0 update 2, please send it to me.I will talk to the user and tell him the released ...

running java program under previous JDK release

211 byte By codefreak81a at 2007-10-2 1:20:24
I have a program that requires jdk 1.3 or 1.4 to run. I have 1.4 and 1.5 installed on my system, but the program detects my jdk version as 1.5 and will not run. How do I tell the program to run under 1.4?

Storing filenames in an array

291 byte By kamyaa at 2007-10-2 1:26:05
Hello, I am very new to Java.I was wondering if there was a way to read all of the files in a directory. Then how do I store the names of the files in an array. I spent all day yesterday trying to do this and I couldn't get it. Do you think you can help me out? Please.

just getting started.

432 byte By mitcho2005a at 2007-10-2 1:27:33
hi, i wanted to run some java files a friend gave me, he told me to download the all in one bundle from the following link - Error : Invalid path, \bin\javac.exe -classpathit basically installed a folder in my C drive called Sun and so on.so i open j creator and try to run the java file and i ...

J2SE 5.0 in Linux: Some Programs Will Not Run

3064 byte By Coriandera at 2007-10-2 1:30:44
Hi there,I'm running an xp/Ubuntu (5.04, using Gnome) dual boot.I've installed J2SE 5.0 Update 5 in linux, and I can run a simple Hello World. But, when I try to run more complicated programs (swing, awt, etc) I get errors. So, I switched to XP and installed the same java version, and it ...

Please help a java newbie

2993 byte By addona at 2007-10-2 1:39:18
problem is im doing some homework and have no idea what to do.ive created two files, in one:public class Cube {private double length;private double surfaceArea;private double volume; public Cube(double lengthIn){length = lengthIn;surfaceArea = ((lengthIn * lengthIn) * 6);volume = (lengthIn * ...

J2SE 5.0 Update 5 on XP

3872 byte By zachstevea at 2007-10-2 2:01:08
Hi, I'm following the instructions to Core Java2 Volume I and loadded the j2se version 5 with update 5. I assumed this was inclusive of all patches. My java -version ran well. When compiling Welcome.java into bit code, I have a compiler exception <1.5.0_02>. Was the download inclusive of ...

issues with endorsed directory feature

813 byte By rcs_javaa at 2007-10-2 2:07:14
We are trying to mvoe to xalan 2.7. This obviously entails using the endorsed.dir -D java option to let the runtime use the newer xalan version.The issue is that while the new xalan version is picked up correctly the exisiting functionality that needs a shared library to be loaded has stopped ...

Error running

631 byte By rsornesa at 2007-10-2 2:08:37
I've compiled, preverified and jar-ed the Blinker.java example from de source examples, but when i try to run the MIDlet i get the following error:ALERT: Unable to load class com/nokia/m2m/imp/iocontrol/IOControlExecution completed successfully83091 bytecodes executed11 thread switches321 ...

difference between J2EE SDK J2SE SDK

121 byte By rst...a at 2007-10-2 2:14:41
Can someone please tel me the difference between J2SE SDK and J2EE SDK, Im new to java n currently using J2SE SDK.

UnsatisfiedLinkError

5310 byte By dawuada at 2007-10-2 2:16:12
I have JBoss running on Windows, and need to move it to Linux. I have the following installed on it:JDK - 1.5.0_05JbossI first thought it was the JDK so I upgraded it to the newest one, and I still get the error. Everything works fine, except one servlet throws the following ...

Problems with JasperReports

5252 byte By Ricardo_Nevesa at 2007-10-2 2:21:05
Galley, if you don't understand excuse very well, and that alone half weak in English, but we are going to the that interests, I am beginning with JasperReports, and I am coming across a mistake that is not going for way front any, if somebody can help myself, below the example that I am using ...

hi ppl

349 byte By sweet_salta at 2007-10-2 2:22:03
hi ppl,i have installed jre-1_5_0_04-windows-i586-p-iftw . but i am not able to compile any java program. when i try to run javaw it is generating an error " could not find the main class : program will exit ".pls help me to figure out what went wrong.do i need to install SDK.pls i need a reply ...

Error while resolving class. Help needed

5017 byte By sn0wa at 2007-10-2 2:28:13
I've just installed J2SE JDK 5.0 under Ubuntu Linux 5.10. I used to have it installed under Ubuntu 5.04, and then I did not experience the problem I'm having now.I had no problems during the install, and I can compile all .java files I've tried. I can also run a simple program like ...

ThreadPoolExecutor afterExecute() & beforeExecute()

3609 byte By logician007a at 2007-10-2 2:31:22
I have a problem with these two hook methods. I have my own ThreadPoolExecutor that extends ScheduledThreadPoolExecutor (MyScheduledThreadPoolExecutor) and an interface (MyRunnable) that extends Runnable to provide some extra value-added functionality (.extraStuff()).I want ...

Unable to load class

631 byte By rsornesa at 2007-10-2 2:42:42
I've compiled, preverified and jar-ed the Blinker.java example from de source examples, but when i try to run the MIDlet i get the following error:ALERT: Unable to load class com/nokia/m2m/imp/iocontrol/IOControlExecution completed successfully83091 bytecodes executed11 thread switches321 ...

Java 1.5 Generics

238 byte By BigPhonya at 2007-10-2 2:56:26
I was reading the online tutorial of java generics and found this line:<code>List<String>[] lsa = new List<String>[10]; // not really allowed</code>Why is that not really allowed?

Regular Expression error messages

336 byte By knassera at 2007-10-2 3:00:42
Is there any possibility to generate a readable error message after an failed match of regex pattern, to indeicate the index of the first character caused the non matching patter, something like this "Character 5 must be a figit". or is this not even possible to implement for regualr ...

Which SDK

152 byte By richardlennoxa at 2007-10-2 3:00:49
Hi I want to create a simple desktop app that takes an XML file and reads searches manipulates and writes back teh data. Which JDK do I download?

Hyperlink Not Working In Chinese Machine Using 1.5.0

756 byte By jvma at 2007-10-2 3:02:00
Hi Everyone,We have application that supports chinese locale (using Chinese Simplified). When running in the Chinese machine, the hyperlinks do not have the underlines when using 1.5.0. The functionality is still there, i.e. it is still clickable, but without the usual underline. When I ran the ...

Tutorials gone?

232 byte By jwstudenta at 2007-10-2 3:04:16
Are the free java tutorials (from sun) gone. They had some good examples online. http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.htmldoes not take me to the JScrollPane tutorial for example.

BitSet vs boolean array

1982 byte By jadedindustriesa at 2007-10-2 3:06:06
I wrote a class that could calculate prime numbers using the Sieve of Eratosthenes by 2 different methods. One method used a BitSet for the sieve, and the other used an array of boolean primitives. Both return an int array containing all the prime numbers between 1 and an int method ...

Update Query

1499 byte By JLIZ2803a at 2007-10-2 3:08:38
I am connected to a database and trying to update a table, wiht a value in a similar field, based on it's null values. I keep getting and error that says syntax error in update statement. This is my first time trying this my code is below any suggestions?import java.sql.*;public class ...

interthread communication

935 byte By sharkeea at 2007-10-2 3:20:13
hiI am developing a game but since it is a very naive game it is not multithreaded except when a missile is fired from the spaceship. There is a seperate thread for the missile and in this thread ofcourse the collision between missile , hindereances and alien spaceship is detected. Now the ...

Losses JLabel underline when switches to Windows L -and-F using 1.5.0

677 byte By jvm11a at 2007-10-2 3:21:02
Hello,I have an underlined label created using this:new JLabel ("<html><u><font color=#FF0000>SOME TEXT HERE</font></u></html>");By default, UI is using the "Windows" look-and-feel. When the application is running in Chinese locale, the underline disappeared. ...

error after running eclipse

7089 byte By Deepa_Kraoa at 2007-10-2 3:52:59
I installed eclipse 3.0.1 on the Win xp ....i have jdk1.4.2....but when i run eclipse( double clicking eclipse.exe) I get this error...!SESSION Oct 30, 2005 15:22:59.293 eclipse.buildId=M200409161125java.version=1.4.2_05java.vendor=Sun Microsystems Inc.BootLoader constants: OS=win32, ARCH=x86, ...

Java 1.5 and 1.4

327 byte By ahwaza at 2007-10-2 3:54:23
Hi everyone,What is the difference between Java 1.5 and Java 1.4 in terms of new Features which Java 1.5 provides?Also is there a difference between Java 1.5 Standard Edition (J2SE)and Java 1.5 Enterprise Edition (J2EE). in terms of new features?many ...

Problem with Flash-database communication?

342 byte By craigscottya at 2007-10-2 4:04:58
This server component, called Emissary, is really a problem solver. It is easy to use and is a big time saver. Looks like a dream come true (for Flash designers and programmers). The site (www.flashlinksolutions.com) has a free developer edition which one can experiment with.It also provides ...

JDK 1.5 and TimeZone/sun.util.calendar.ZoneInfo issue

508 byte By egurkhaa at 2007-10-2 4:05:42
Hi -I am working on a client/server application. The server code is being ported to JDK 1.5, but we need to support clients that are still running JDK 1.3. One of the issues we are facing is that the defaultTimeZonein JDK 1.5 has been changed to sun.util.calendar.ZoneInfo whereasthe default in ...

Hashtable alternatives

262 byte By Znorka at 2007-10-2 4:06:31
I need to store a key-value index for fast lookup, is there an alternative to the Hashtable class that does not have the overwrite problem?Is HashSet a viable alternative or does this class have the same problem?And help appreciated, thanks.

Java SDK License - FreeBSD

712 byte By Ingo.Maurischata at 2007-10-2 4:09:35
I have a question concerning the JAVA SDK licenseOn http://www.bsdmall.com/freebsd49.html they were selling a distribution with following components.Java 1.3.1, JBoss, Jakarta, Tomcat, NetBeans, Apache-Ant ...I always thought, that it is not allowed to make Java SDK Binary distributionens, and ...

java 1.5 and Windows Server 2000

557 byte By tangowitza at 2007-10-2 4:37:44
Has anyone tested the compatibility of java 1.5 (j2se 5.0) with Windows Server 2000? We have an application that runs currently with jvm 1.4.2_09, and we want to upgrade, but we still want to support Windows Server 2000. On Sun's site, Windows Server 2000 is not explicitly supported for j2se ...

text file parsing and output

1172 byte By pepto_geckoa at 2007-10-2 4:38:46
Hi,I'm extremely new to Java and need to read and parse a text file and generate a new text file with modifications as follows:1. Ignore and rewrite comments2. Ignore and rewrite compiler commands3. (a) Modify function prototypes be removing their return values, if any,(b) append an '_VAR' ...

text file parsing and output

1172 byte By pepto_geckoa at 2007-10-2 4:38:48
Hi,I'm extremely new to Java and need to read and parse a text file and generate a new text file with modifications as follows:1. Ignore and rewrite comments2. Ignore and rewrite compiler commands3. (a) Modify function prototypes be removing their return values, if any,(b) append an '_VAR' ...

Waiting a Dos Command?

592 byte By batuja at 2007-10-2 4:47:14
Hi;In one of our projects, we have to call a dos command in java. That seems ok however there is a problem about code. It gives an exception because the remaning program goes without waiting the dos command's completion. Runtime r = Runtime.getRuntime(); r.exec("cmd /C sort 1.txt /O ...

Monitoring Port 80

737 byte By Aswina at 2007-10-2 4:48:16
I'm writing a java program to monitor port 80 & retrieve the bytes that pass through that port. For this, i wrote the following code.Socket sc=new Socket(InetAddress.getLocalHost(),80);BufferedReader in=new BufferedReader(new InputStreamReader(sc.getInputStream()));String s="";while ( ...

Java 5.0 on Linux/IBM P Series Power 4

547 byte By Scott_ESa at 2007-10-2 4:57:15
Hi,I was wondering if anyone has had any success compiling the Java 5.0 source on Linux for the IBM P Series Power 4. We are currently running AIX 5.2 and are looking to install a Linux partition specifically for Java.The P Series Power 4 is the architecture I have access to which is currently ...

J2SE SDK for OSX Tiger

605 byte By Mercanisa at 2007-10-2 5:00:41
Well, this seems like a good place to make my post...My problem is quite simple. I can't find a JDK for my Mac running OSX Tiger. Links on the internet always lead me to Apple's Developer Connection, but their 1.4.2 developer tools will only run on Panther.Maybe I'm missing something ...

unable to download J2SE SDK from sun website

326 byte By prejudged_firea at 2007-10-2 5:05:10
Whenever I try to download the J2SE SDK from sun at the following URL http://java.sun.com/j2ee/1.4/download.htmlI get a Fatal Exception error. I figure it is a bug in the Sun website so I was wondering if anyone knows another site that I can download it from. Any help will be apreciated. Thanks ...

how to build a simple and native PDF viewer in java

405 byte By palhelloa at 2007-10-2 5:13:27
I am trying to build a simple PDF viewer which will be able to read the texts and probably some images of a PDF file. Is there any good API in JAVA to do the job or if we don't use the API what could be the best way to get started .Please understand that I am not trying to use ADOBE ACROBAT or ...

Run python within Java - Mac OS X

347 byte By Jimmy0676a at 2007-10-2 5:15:25
Hi, I would like to know if it is possible to start a python program using the Process p = Runtime.getRuntime().exec(cmd)command running on Mac OS X 10.4.2. I have triedString [] cmd = new String [] {"open", "-a", "python ", "pythonProg.py"};Am i on the right track? Thanks in advance, ...

Word processing in Java

419 byte By abogoma at 2007-10-2 5:16:46
Hello:I need basic word processing in Java, and there is no time to program JEditorPane. Neither there is any desire to.Does any one know of a class or a bean available to this end. I need1. Open/Save2. Font selection3. Bullets4. Pic embedding5. Hyperlinksand being able to check whether the ...

Obtaining Proxy Settings in Swing

403 byte By exhilaratora at 2007-10-2 5:26:23
Hi all,I am using Internet through Proxy URL and port through my corporate LAN. I want to make a small Swing Application to connect to Internet and retrive some info.How do I write code to obtain the proxy URL and port number from the user at run time to connect to the internet?Alternatively I ...

Connecting to wildcard SSL certificates?

655 byte By zoookapia at 2007-10-2 5:30:59
I'm trying to do a HTTPS connection to a host using a wildcard certificate from GoDaddy. When I attempt to connect to it I get the following exception:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: ...

Nested try-catch blocks

985 byte By Frantic211a at 2007-10-2 5:34:52
Hello All,If I have 2 nested try-catch blocks see belowtry{//....//Some codetry{//Code that throws an IOException}catch(NumberFormatException nfe){//Handle the NFE}}catch(Exception e){//Handle the Exception}Now what happens if in the inner try-catch an IOException is thrown? Will it be ignored, ...

how to get index value of an arraylist

287 byte By misterraoa at 2007-10-2 5:37:46
hi i have an arraylist and i need to get a index value of a certain element and i am passing that element as a String.... like arraylist.method(string elementname) ..... here for getting the index value of the element which method i have to use... thnx

how to analyse the project

136 byte By misterraoa at 2007-10-2 5:39:53
i am new to programming plz tell me how to analyse project i have database schema,usecases,srs plz explain indetail

how to write logout method

124 byte By misterraoa at 2007-10-2 5:40:17
hi how to write logout method..... i am new to programming protected void logOut(){} asap