Getting a working signed applet (comments and questions)

930 byte By JarmanG at 2007-9-26 13:23:38
Hello again,I followed the 10 steps in the excellent post of ncoleman1.When I tested my applet it was still not recognised as a signed applet and I still got the runtime security exception.When I looked in cacerts, into which I'd imported my certificate, it appeared to have import the ...

Where to safely keep the decryption key?

363 byte By bjornbrynjar at 2007-9-26 13:23:58
Hi Everyone!It is a fact that that java binary class files can be decompiled easily with tools like Decafe. That is a problem when you want to keep your decryption key in the code, because everyone can decompile the class files and find the key! So my questions is this:Where can we safely keep ...

export PKCS#12 file from JKS keystore ?

198 byte By felten at 2007-9-26 13:24:00
Hi,I would like to export a Private Key/ cert. chain from an JKS Keystore as a PKCS#12 file.Do you kwow some tools or sample codes ?Thanks a lot for your responses

keystore with no password

904 byte By bvkn at 2007-9-26 13:24:16
I need to write a ssl application which gets authenticated with a server and sends a request to the server. A keystore was given by the server application developers.The keystore has no password. So when loading the keystore i gave password as null. But when initializing the KeyManagerFactory , ...

backup jarsigner database

141 byte By redpath at 2007-9-26 13:24:38
Using jarsigner which searches for a key to sign a jar where is the database file so I can back it up?redpath@us.ibm.com

make BufferedImage sharp after scale

150 byte By shayhandelman at 2007-9-26 13:24:41
hii do a scale (0.5,0.5) to a BufferedImage but the image is not sharp any more how can i make the image sharpafter scale.

Java3D books

217 byte By Breakfast at 2007-9-26 13:24:48
Can anyone point me at any books on J3D- I have gone through the tutorials but a kind of general purpose reference guide to the API with examples and stuff would be really handy. Does anyone know of one?

Java 3D OpenGL driver for 3DFX video cards

428 byte By filcobra at 2007-9-26 13:25:28
Hi all,Does anybody know of some Java 3D OpenGL driver designed for 3DFX video cards (Voodoo Cards)?These video cards have hardware 3D acceleration and I think that such a driver could boost the design and development of 3D Games and Complex Graphic Applications.So, if anyone has heard ...

Did everything till 10 steps..., but giving exception

1182 byte By B_randy at 2007-9-26 13:27:13
Hi All, I am trying to access the database records from MS -access.When I do it using a stand alone application, it works fine.But if I use the Applets, its gives following application,-- java.security.AccessControlException: access denied (java.lang.RuntimePermission ...

Canvas3D and JSlider

2148 byte By annecompa at 2007-9-26 13:27:21
I have a problem mixing a Canvas3D and a JSlider with a colored knob : when I set the background color of the JSlider, the Canvas3D doesn't appear and the JSlider blinks. What's wrong ? import java.applet.Applet;import java.awt.BorderLayout;import java.awt.event.*;import ...

New to EnCription

248 byte By kashefbasher at 2007-9-26 13:28:20
Hello to all ,i am just new to criptograpy and java security kindly guide me to begining and how to start it.if there is any tutorial or examples plz mail me.thankskashif bashirkashefbasher@yahoo.com

Origianl Algorithim

161 byte By intrested at 2007-9-26 13:28:51
I was intrested in knowing has anone tried in writing their own ecrryption/decryption algorithim rather than importing the ones provided with JCE.

New to JCE

171 byte By ericpotash at 2007-9-26 13:30:48
I understand that in order to intitialize a cipher you need to say Cipher.instanceOf("RSA");Is there any list of the ciphers that the library contains

Audio Q: How to capture and play back later?

461 byte By sklemmer at 2007-9-26 13:31:34
Hi, Looking at the JMStudio app, it's pretty clear how to capture audio and stream it out through the speakers. What I don't understand is how to capture audio, stop, and at a later time, play that stream back. In particular, I'd like to be able to play it back beginning at a specific ...

Animation runs slower on faster Computer !?

819 byte By Zwartan at 2007-9-26 13:32:23
A game applet which I have written runs well on my slow pentium 166 MMX and on one of my firends 166 MMX with doublebuffering and sounds, but it runs slower and the sounds play with cuts on faster computers like P2 333, P3 550 and P2 266.How can this happen?Another interesting point is that on ...

JAI and decoding

525 byte By nille40 at 2007-9-26 13:32:30
Hello everyone,I'm am new to JAI and could use some help...I wan't to decode images of different types, but NOT from files or strings (such as JAI.create). I currently use ImageDecoder decoder = ImageCodec.create(String,InputStream,DecodeParam).I get a stream from a ByteArraySeekableStream ...

j_security_scheck problems

11475 byte By s98dance at 2007-9-26 13:32:36
I have two problems with the j_security_check action that I use in my login page.The first is about when a user trying to access a protected page but don't have the rights to do that.1. The user type in a wrong user name or password and then it will send him to the error page.If he get back to ...

RTPSocketPlayer Cannot find a Player

7252 byte By manifest332 at 2007-9-26 13:32:49
I can not execute RTPSocketPlayer.class from sunmycode =import java.io.*; import java.net.*; import java.util.*; import javax.media.*; import javax.media.format.*; import javax.media.protocol.*; import javax.media.rtp.*; import javax.media.rtp.event.*; import javax.media.rtp.rtcp.*; public ...

Does java 2D support iamge enlarging?

174 byte By phaikee at 2007-9-26 13:32:50
May i know whther that Java 2D enable the effect of zooming in an image?For example,zoom in part of the image to enlarge it so that we can view it more clearly?

Using JIMI to load PSD and convert to thumbnails

1852 byte By [tone] at 2007-9-26 13:34:21
Okay, I've tested out using JIMI to load a psd image to a JimiCanvas, but I can't seem to work out how to load the PSD file into a standard Image object (or what equivalent I need to transform it).If I try:JimiCanvas jc = new JimiCanvas(imageFilePath); Image tempImage = jc.getImage();Graphics ...

BufferedImage in jai

72 byte By shayhandelman at 2007-9-26 13:34:28
hi it is possible to use in BufferdImage with jai ?

Set up JCE

1001 byte By tsaiA at 2007-9-26 13:36:00
I just installed j2sdk1.4.0-beta3 and compiled the following sample program from JCE doc:import java.security.*;import javax.crypto.*;import com.sun.crypto.provider.SunJCE;public class initMac { public static void main(String[] args) throws Exception { Provider sunJce = new ...

I want to make gImage Class extends Image and use Graphics2D

518 byte By g2astong at 2007-9-26 13:36:12
Sorry, my english short...I want to make gImage Class extends Image and use Graphics2D I trying to do...make class gImage..extends Image class. (Inheritance)but Image class is abstract class..And I want to use gImage class same as Image class.I can't use constructor... because by Abstract ...

how to adjust the volume when capture?

178 byte By fjaejs at 2007-9-26 13:37:41
my code is:processor.getGainControl().setLevel(5) ;it's return java.lang.NullPointerExceptionhow to solve this problem? thank you help.

Servlet Example with JAAS Authentication and Authorization

176 byte By erdkal at 2007-9-26 13:39:16
Hi,I search a Servlet Example, which includes JAAS.When you know page, or you have sample code.please send me replyThankserdkal

Cannot use JSSE

334 byte By salgado123 at 2007-9-26 13:39:32
I am using Windows 2000 !!!I downloaded JSSE-1_0_2-gj.ZIP and extracted its files. Then, using the instructions on INSTALL.TXT copied the JAR files to c:\jdk1.3.1_01\jre\lib\ext and edited c:\jdk1.3.1_01\jre\lib\security\java.securityAfter this, I still cannot "see" JAVAX.NET to use the ...

Installing J3D 1.3 beta 1

637 byte By titojermaine at 2007-9-26 13:39:54
Has anyone tried installing this yet? I'm trying to install it on J2SE 1.3.1 and/or 1.4. I know the previous versions won't work on 1.4, so I'm not too concerned about that. After the installer starts, it goes through the initial uncompression bit, and then I get an error message stating ...

String encryption with jdk 1.1.3 (don't ask!)

200 byte By shadowdw at 2007-9-26 13:40:45
Can any version of JCE be used with jdk 1.1.3? If not, what is the best way to encrypt a String field prior to storing it on a DB table. (Using DES or more prefferably Triple DES)

Concatenate two or more TIFF into 1 file

146 byte By matrixPooh at 2007-9-26 13:40:50
I have 2 or more 1-page TIFF input files that need to be stored into 1 large TIFF. Using JAI, is there any way I can do that?

Print TIFF

45 byte By matrixPooh at 2007-9-26 13:40:52
How can I print TIFF using JAI?

Setting Colors on GeometryArray

340 byte By pboysen at 2007-9-26 13:41:43
I have created a scene using VRML97 that creates a GeometryArray. I would like to be able to change the colors of the vertices using setColor but Java3D is reporting the error that GeometryArray has no color.Do I have to include color values in the VRML file for it to have color? Is there ...

Accessing Microsoft CA from java

203 byte By yawhcihw at 2007-9-26 13:43:14
Hi,I was wondering if anyone knew of an API that would enable me to access a Microsoft Certificate Authority on a Windows 200 Server. Any help would be appreciatedPeter

may I recover the string by its hashcode value?

142 byte By bidzhao at 2007-9-26 13:43:51
how can get the original string, of if can find another string which has the same hashcode with the original?thanks a lot

CPU Requirements

528 byte By virgus at 2007-9-26 13:45:03
Hi all,I've one application that sends and receives media (audio/video) over RTP. It captures video from webcam and audio from mic. The streams are encoded in DVI and H263. So, the problem is: on a P2 233 96Mb and generally on a "normal" pc it runs so slowly that the receiver of the stream (on ...

Verisign/Thawte monoply?

439 byte By ichbinich at 2007-9-26 13:46:13
As far as I can see Sun-Java2 recognizes only certificates issued by Verisign or Thawte. As Thawte is owned by Verisign this gives them a monopoly and they can ask any price they want (and indeed certificates from other companies for IE- or NS4.x-java are much cheaper).Shouldn't Sun include ...

While decrypting with the same key as used in encrytpion it gives an except

2340 byte By raja01 at 2007-9-26 13:46:59
I am trying to use the same key for encryption and decryption. Encrytption works fine but when I decrypt it gives me a IlllegalBlockSizeException... Input length (with padding) not multiple of 8 bytesHere is the the code. I think the problem is with the " byte[] cipherText = ...

HttpsURLConnection.disconnect() not working

1017 byte By vrb123 at 2007-9-26 13:47:36
I am using a https client(via HttpsURLConnection) to send messages to a web server. After sending message, all input/output streams are closed and used disconnect() method to close the connection. Seems disconnect is not working and connections kept on increasing on the web server. Can anybody ...

Subject get lost in AccessController.doPrivileged()

954 byte By henrychung at 2007-9-26 13:49:08
The subject s can be retrieved anytime in a Subject.doAs() block with Subject.getSubject() call. However, this does not work if within the Subject.doAs() there is a AccessController.doPrivileged(). In the following code snip, s1 is equal to s, but s2 is null.AccessController.doPrivileged() not ...

Java policy for accessing object data from another object.

2521 byte By DominiqueL at 2007-9-26 13:49:10
Hi,I am implementing custom serialization via some static methods that query an object for its data via reflection and code like:object.getClass().getDeclaredFields()[0].getInt(object)This code sits inside a class derived from PrivilegedAction and invoked via ...

Opening SSL socket from signed Applet fails

548 byte By kviswanthan at 2007-9-26 13:49:27
hi,I am trying to open a SSL socket connection from a signed (verisign certificate) applet to a web server. Applet is run using Java Plug-in 1.3.1 on IE 5.0This results in the following exception:(From the log):Exception in HttpManager.setupSSLaccess denied (java.security.SecurityPermission ...

set up JCE

1772 byte By tsaiA at 2007-9-26 13:50:07
In the last 3 days, I tried a variety of ways to set up JCE with either j2sdk1.4.0-beta3.exe or with j2sdk-1_4_0-beta-forte-ce-3_)-beta-win.exe on both Windows ME and Win98, but with no luck at all. I even reloaded the binary .exe files from java.Sun again and uninstalled the resident JDK ...

ibmjsse.jar vs jsse.jar: SSL implementation not available

881 byte By vyw at 2007-9-26 13:50:18
We changed versions of jsse and now can't do ssl from the client side; we get the "SSL implementation not available" error.We run Java 1.3.0 on aix with JSSE 1.0.2 on AIX. We got the software off the AIX web pages before Java 1.3.0 was officially available on the AIX distribution cd. One of ...

Https Connection from servlets using JSSE.

2985 byte By ethanlam at 2007-9-26 13:51:41
Hi all,Although my question is the same as the QOW for this week, there is an error "unsupported keyword EMAIL" returned when i try to establish a https connection using servlet. The error log is as follow:=====================================java.io.IOException: unsupported keyword EMAILat ...

possilbe to realize these actions using Java 3D?

401 byte By tony_Lincoln at 2007-9-26 13:52:27
Dear friends,Are the following things possible with JAVA 3D?1. animation of a scene(movements) transformation.2. rotating, translating, streching each single object and place new object inspace.3. sliding slices up and down.4. clickon a point in space and get its coordinates.5. Transparency of ...

keygenerator

517 byte By hommer at 2007-9-26 13:52:30
I have a file which compiles ok, however it gets a runtime error.Heres the output from the dos prompt - Exception in thread "main" java.lang.NoClassDefFoundError: javax/crypto/KeyGenerator at SecretWriting.main(SecretWriting.java:27) I have a sneaky suspition that its something to with the ...

load Image

514 byte By daloch at 2007-9-26 13:52:31
How I can load an image jpg from a file, scale it an save in another file?First problem: load the image I've tryed:-Image inImage=Toolkit.getDefaultToolkit().createImage(b);where b is a bytearray of images,-Image inImage=Toolkit.getDefaultToolkit().createImage("C:/java/image.jpg");but it ...

Installation of JCE1.2.1 required by XML Security Suite

780 byte By ajit070699 at 2007-9-26 13:53:09
Hi, I followed the installation steps given for XML Security Suite. When I excuted java enc.XMLCipher2 -e keyinfo.xml bookorder.xml /Invoice/cardinfo template1.xmlI got a security exception, keystore jceks not found. This default Keystore provided by jce is not present. I installed jce and ...

DataSink probelm

260 byte By yoavadler at 2007-9-26 13:53:21
I have merged DataSource and a DataSink .My Question is:Which Format is best for minimal disk space on the DataSink file.I used jpeg and for 30 seconds i got a file about 6 mega.Does this format is the best one?

Animation: BufferedImage and Graphics2D

963 byte By cluoyan at 2007-9-26 13:54:08
Hello all,I am new to Java animation.Now I want to write an animation showing the tracks of some points. The position of the points are allocated according to some blocks of data in somewhat time interval, for instance, every 2 seconds.So I want to draw out the position of points for each ...

I found nobody use Java3D !

18 byte By sinbawang at 2007-9-26 13:58:15
-**_