MD5

1008 byte By Nidhuggura at 2007-11-27 4:12:25
Hey,I've had two, similar strange experiences with MD5-encryption. I'm currently testing and developing an application, with users and passwords and stuff. In the 'add new user'-section, I've got two password fields. In 'processnewuser.jsp' I compared MD5-hash 1 to MD5-hash 2, coming out ...

How to write two images into one file.

1087 byte By flexeda at 2007-11-27 4:13:13
Hello all,I have a very big image and don't have enought ram to make a copy of the image in the buffer. So, I want to convert this image partly and on each iteration append an image part to a file.BufferedImage bigImage = ImageIO.read(new File("bigImage.jpg"));for (int i = 0; i < 100; i++) ...

Having trouble deciding what format to use for my application

610 byte By Dreamerza at 2007-11-27 4:14:14
Hello, I am a student and new to using the JMF, please give me some pointers and directions to look for.I am starting a project that requires a computer to transfer screen caps to several computers(say 8 computers) simultaneously.The image will be 800*600, it must not be blurred but the color ...

Format of Stream not supported in RTP Session Manager

325 byte By dreampeppers99a at 2007-11-27 4:14:26
Track 0 is set to transmit as: unknown, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 176400.0 frame rate, FrameSize=32 bitsjava.io.IOException: Format of Stream not supported in RTP Session Managerwhy this erro occors?if need i put more code and more explanation here.(was ...

How to use JMF in SWT

284 byte By mahesh.komuravellia at 2007-11-27 4:15:13
Hi all,I want to create an application in SWT, which is able to play all types of music files. By using JMF i am able to do it in Swing, but i want to do it in SWT. (Should not use any AWT components). Can any body tell how to do this ?Thanks in advance !!

Encrypting and Decrypting XML file

192 byte By fins4ua at 2007-11-27 4:15:23
Hi,I would like to encrypt and decrypt the content of an XML file. How I can perform that? Please help me to do so.If any of them have source code for this, please.

Handling SSLHandshakeException in Tomcat 5.5.17

5618 byte By PenguinClevina at 2007-11-27 4:17:36
Hi,How do I handle this exception, when the user clicks "Cancel" upon SSL Client authentication when prompted for a certificate.javax.net.ssl.SSLHandshakeException: null cert chainTomcat throws this exception, but I would like to catch it and redirect the user to a proper error page. The full ...

Write Permissions for signed applet

1344 byte By ktommyka at 2007-11-27 4:17:42
Hi, i'm using a signed applet to get a file access for my applet to the lacal disk. I want to write a file to a local directory. When i'm trying it in the appletviewer it works, but it is not running in the browser. I'm using the version 1.5.0_11 of the JRE.I got the follwing ...

Using Kerberos delegation with Internet Explorer and JGSS, workaround?

1305 byte By havwiga at 2007-11-27 4:18:29
I'm trying to set up single sing-on (SSO) into a web application with Kerberos, where the web application in turn should use the Kerberos ticket it received to access a backend service on behalf of the user.In theory this should be a fairly straightforward Kerberos delegation scenario.I'm ...

"System.loadLibrary" From JApplet

861 byte By Fada at 2007-11-27 4:18:38
When I try to run: "System.loadLibrary("myDll")" from a JApplet I receive this error message:java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.SNJApi) at java.security.AccessControlContext.checkPermission(Unknown Source)I use Java 1.6.0_01I run my ...

Converting a string into X509 encoded byte array

1042 byte By Josettpata at 2007-11-27 4:18:48
Hello,I'm using a diffie hellman key exchange algorithm. So I created a publickey and sent it to the server.Here, I have a problem coz I sent the publickey as a string and I used byte[] publicKeyBytes = publickeystring.getBytes() to get the bytes value.This gives me a "Invalid Key spec ...

JPEG Quality

352 byte By flexeda at 2007-11-27 4:19:08
Hello all,I open JPEG, make some transformations and want to save it again.Is there any possibility to get the quality of the file I have opend and to save the JPEG with the same quality as it was created.In other words I want to find out this quality param:encParam.setQuality (1.0f, ...

Exchange of certificate between Server and Client

421 byte By hayamia at 2007-11-27 4:19:27
Hi, I am working on an application that requires Server and Client to communicate using SSL. I have managed to get the codes to create the link. Now I have one problem. As both the Server and Clients requires each other's certificate for authentication, how can I have the application to ...

Please guide me on the issue of private key

952 byte By pkta at 2007-11-27 4:19:30
Hi All I am working on application that requires to do encryption and decryption using public and public key. I need some guidance on how to implement this functionality. The only requirement is to have public key and private key in two different files. For public key i can get it from .cer ...

question for standing

54 byte By nickgoldgodla at 2007-11-27 4:19:48
how to make one image stand on the other image?

Angle Question

7651 byte By Fenrisa at 2007-11-27 4:19:56
I'm writing a program for a Pong-like game, but I'm having trouble with the angles. I'm using two variables: XSpeed and YSpeed, for the ball, and every timestep I add XSpeed to XPos and YSpeed to YPos, then I redraw the ball using the statement Draw.fillOval(XPos-Radius, YPos-Radius, ...

Smart Card based ssl connection not possible with SunPKCS11 Provider?

2512 byte By Masia at 2007-11-27 4:20:12
Dear allWe use jsse connections with file based Pkcs12 Keystores for longer time.Now we d'like to replace these .p12 files with SmartCards.While the jsse 5 reference guide suggests:"To use a Smartcard as a keystore or trust store, set the javax.net.ssl.keyStoreType and ...

Setting a JDBC Realm using the Tomcat Administration tool

162 byte By Batsupa at 2007-11-27 4:20:48
Is it possible to do it? I got a hosting where i cant get to the server.xml, so i would need to set my JDBC Realm using the Admin tool.Thanks Batsup

Java 1.6 SSL degraded to 768 bit DHE_RSA/SHA

860 byte By karlvra at 2007-11-27 4:22:11
I have encountered a problem in Java 1.6 with Java SSL servers and Diffie-Hellman key agreement, as compared to the same SSL servers in Java 1.5.Opera issues warnings if SSL connections do not meet its security standards. Java SSL servers in Java 1.5 use the following encryption protocol (as ...

playing videos

192 byte By amrishkra at 2007-11-27 4:22:54
hii hav made a website where users can upload videos.....how can i play the uploaded videos of all formats......my concers are video buffering and traffic managementthanks

missing libraries

70 byte By amrishkra at 2007-11-27 4:23:12
where can i download javax.media.* libraries from?thanks

Need help making Physics simulator

8031 byte By EwilTwina at 2007-11-27 4:24:31
I'm new at programming and I wanted to make a small physics simulator for an assignment. I have to get the program working by tonight, so I thought that someone in here might be able to help.I am trying to add some collision detection to my program.. I have a ball that drops and I want it to ...

JMF Not playing wav files in Linux

6315 byte By Anantja at 2007-11-27 4:25:04
Hi all,I'm using the code below to play a simple wav file in Linux:==import java.io.IOException;import java.net.MalformedURLException;import java.net.URL;import javax.media.ControllerEvent;import javax.media.ControllerListener;import javax.media.EndOfMediaEvent;import ...

why the picture can't show?

1456 byte By suncs2001a at 2007-11-27 4:27:46
i just want to show a picture as a JButton on JFrame,the picture's path is the path of the project,bu when the program run ,i can see the frame,bu can't see the picture,why ?import java.awt.*;import javax.swing.*;public class UseImage extends JFrame {JButton bn;ImageIcon icon;public ...

Drawing an image and send it to another class

424 byte By karma1234a at 2007-11-27 4:29:18
Hi. I need to draw some lines in one class that I have in a program, and then, when I have my lines drawed, I have to send those lines to another class that have the JFrame and put this lines on the content pane to display it.My first problem is that I dont know how to invoke a method that have ...

problem for moving image

7720 byte By nickgoldgodla at 2007-11-27 4:30:41
i want to move the image auto going down when i press enter or space bar.i do this for my codebut it does't work.class Playscreen extends JPanel {ImageIcon playbg;ImageIcon playerIcon;ImageIcon[] stair;int floor;int live;Point loc = new Point(100,100);int dx = 3;int dy = 3;Rectangle[] ...

Comparing two X509Certificate

496 byte By jorge.ortiz@tirea.esa at 2007-11-27 4:31:53
Hi,Which is the best way to compare X509Certificates? My system should authenticate users by their certificates and I磀 like to be able to compare the certificate presented by the user and the one - or the info stored about it - in my system. Using serial number could be a good approach but I ...

support for non-proprietary secure encrypt&sign format?

1486 byte By Kiwiguya at 2007-11-27 4:32:16
Hi,I want to embed data in my application which I have encrypted and signed using strong cryptography, so that the application can verify the data (assuming the application itself doesn't get changed).Currently I construct three byte[] arrays: 1.) DESede encrypted data 2.) RSA encrypted DESede ...

Accessing data from encrypted file...

245 byte By Kuntilanaka at 2007-11-27 4:33:02
Hi, is it possible to read data from file that encrypted using javax.crypto.* without decrypting that file back such as Microsoft Access Database file?If it is possible, would somebody please show me how to do that.....thank you...

Strange...

580 byte By Eyal2007a at 2007-11-27 4:35:20
Hi All,When I want to run my small Java2D program with Eclipse I get the following for the simple sentence :g2.draw(shape); The Eclipse says:"The method draw(Shape) in the type Graphics2D is not applicable for the arguments (Shape)"How come?Also for this one : Shape shape = ...

Help with Digital Signature

371 byte By eng.aymana at 2007-11-27 4:35:29
Hi,I used the digital signature technique from http://java.sun.com/docs/books/tutorial/security/apisign/gensig.htmlI need to save the private key into file, i save and read it as Object, but when generating the digital signature from the private key saved from the file, the digital signature ...

Applet Deployment issue

255 byte By Drogo_Nevetsa at 2007-11-27 4:36:28
OK I have a application that works 100%I have changed it so that is should work as an applet.but when I run the web page with it i just get a white box. no java load page thingIs this an issue with Canvas3D or something?

Need help rotating an image :)

775 byte By AbstractFirea at 2007-11-27 4:36:37
Alrighty!public void rotate(Graphics g, int direction){Image ship = sprite.getImage();double turnDirection = Math.toRadians(direction);AffineTransform AF = new AffineTransform();Graphics2D g2 = (Graphics2D) g;//g2.drawImage(ship, 0, 0, null);g2.drawImage (ship, ...

how do I change the Graphics Font

708 byte By hillmia at 2007-11-27 4:36:52
I want to use in Java one of the following MS XP fonts:Tahoma, Verdana, or MS Reference Sans Serifbecause they distinguish among the Il|170O.When I use the line referencing Graphics instance g:System.out.println(g.getFont().getFontName());in a program, it prints 揇ialog.plain?Then when I use the ...

Proxy and NAT BYPASS

336 byte By Sunaya at 2007-11-27 4:39:17
hi everbody,i have already sloved the problem of voice transmission for the LAN, working fine on the LAN but for the Internet, to make it working for it there are some problems of NAT and Proxy, If any one have solved the problem like this then pls help me i m really in need of it. With Regards ...

Image from byt[] - byte[] from Image

289 byte By Ehsuna at 2007-11-27 4:39:26
How can I:Construct an Image from byte[]?And get byte[] from an Image?I've found some examples but none of them fit my need completely.The final goal of mine is to read an Image from a BLOB and resize it (making thumbnail) without any intermediate file.

No pilot found - Testing embeded audio in JSPs

547 byte By deaconj1234a at 2007-11-27 4:41:29
Hi, I have a JSP which works fine.I added a link <a href="sounds\cello.wav">play the song</a>to play a sound file.I tested the link in a normal html page in a browser and it works fine (open MS media player when clicked).I checked the path and its correct.Could it be that I am ...

(newbie) Importing certificate with keytool..?

429 byte By ypomonha at 2007-11-27 4:41:30
I'm trying to import a certificate with: * keytool -import -alias mycert -file lalakis.pembut I keep getting: ~ keytool error: java.lang.Exception: Input not an X.509 certificateIt is: - An OpenSSL generated certificate with - Signature Algorithm: PKCS #1 MD5 With RSA Encryption and - Subject ...

Changing Browser Variables - Help Needed Urgent!!!

383 byte By BalajiRamnatha at 2007-11-27 4:41:44
Hello ,We have a web application in which the browser performs user authentication. The authentication window prompts for User Name and Password. The User enters his user name in "Domain/User Name" format. Is there any way to tweak the browser/browser variables so that it prompts for User Name, ...

Does java on Linux use native calls to openSSL?

270 byte By AlfredTheGreya at 2007-11-27 4:43:13
I apologize if that is a stupid question but I'm trying to track down if this :com.sun.deploy.security.X509ExtendedDeployTrustManager.isSupportedAlgorithmwould use the installed openSSL codebase on a Linux server.Thanks.-Dennis

Problem Encrypting URL using AES

2050 byte By sdfgs3456a at 2007-11-27 4:43:52
I am successfully encrypting a URL from my client servlet and my serverside servlet handles the request. The code is below.My problem is that the decrypted URL is not the "id=101&item=22&conf=12234" I am expecting -- in fact, the encrypted part of the URL is changing each time (not what ...

Slow background image in a JPanel

1866 byte By williwa at 2007-11-27 4:44:10
I have a simple JPanel class which only draw the background image. I'm using the StackLayout of other JPanels ontop of the background panel, doing different stuff like draw rectangles. But everything is in slow motion. But if I comment out the background panel, everything runs smoothly. The ...

Help please

638 byte By Spaniana at 2007-11-27 4:45:14
hi,I am doing a media player, and the help i need is when i run my media player and try to play video, it gives me the following errorFobs4JMF - Native shared library NOT foundjava.lang.UnsatisfiedLinkError: no fobs4jmf in java.library.pathat ...

creating video from images

129 byte By it_shailua at 2007-11-27 4:45:20
i want create video from series of mpeg imagescan anyone help meany help appreciatedThanks in advance

How to provide streaming in J2EE web application?

455 byte By vikaskhengarea at 2007-11-27 4:47:54
Hi Friends,I want to build web application which will provide streaming of data. This data may be in raw data, binary, files, audio, video etc. As we are using HTTP protocol for web application, then how to do streaming between server and client using HTTP protocol i.e in request response ...

Polygon - Clique Drawing

4870 byte By Jona_Ta at 2007-11-27 4:48:54
Hello,I wish to shorten my earlier posting for clarity. If I can re-implement the code below using a dynamic approach, then my problem in the earlier posting will be solved.import java.awt.Color;import java.awt.Graphics2D;import java.awt.Polygon;import java.awt.image.BufferedImage;import ...

how to rotate a imageicon?

112 byte By suncs2001a at 2007-11-27 4:48:59
just 90,not any degree,i can't not find any information about this in my books now ,so can you help me ?

java <--> openssl interop

701 byte By tzachara at 2007-11-27 4:49:34
Hello.I have a problem when trying to decrypt data in java, which was encrypted using openssl.I keep getting a BadPaddingException("Given final block not properly padded").After trying to come up with a simple test case, i found the following strange fact; when encrypting a string in openssl ...

Encrypt using Public key

177 byte By eng.aymana at 2007-11-27 4:49:53
I have a plain text and public key, how i can encrypt the message using the public key and decrypt it using the corresponding private key?Any Example?Thanks

Why merge.java does not die like most of the programs

206 byte By jahansoza at 2007-11-27 4:50:42
Hi I am new to JMF Why merge.java does not die like most of the programs and System.exit(0) is used to kill it. Is there something I can add so it dies once it is finished.Thanks