hiin my program i am capturing the screen and showing it in to the jframe and after 2 second delay i am capturing again and want to display that new image in same jframe by following program but i am unable to do soplease help me outpackage javaapplication1;import java.awt.AWTException;import ...
Hello,May I know what is the SJSAS equivalent for the Tomcat's version of the following server.xl configuration:<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@{IP ...
Hi all,Please help me with this problem which is troubling me from last 3-4 days.There are two files1)Receiver.java2)Sender.javaIn Receiver.java,I am generating a public and private key using RSA and storing them in two separate files public.dat and private.dat.Here is the code segment for ...
Hi all.When I use kinit on 1.5 a ticket is generated correctly but under 1.4 I get a Pre-authentication error.Why is it differnt between the 2 environments?Is there something special I'm missing (... I've probably set myself up here! :-) in the 1.4.2 environment?The same thing happens when I ...
i made a camera application i used the in built streaming video and tried to capture the image but it showed an error when i clicked the button captureit showed Application not authorized to access the restricted API.i used synchronised(this) in the function for command invocation of ...
Hi,I am trying to load images with a transparent background and have worked out that to do it i need to make my program ignore certain pixels (for example i could make the bit i don't want bright orange) i would then max pixelgrabber ignore all bright orange pixels.Does anyone know how to do ...
hello,I have to load an image from filesystem, rotate it, and save it on filesystem. I don't need to write it on the sceen... This is my code... but all what i get is a new black image[code//BufferedImage toStoreBufferedImage toStore = new BufferedImage(Width,Height,BufferedImage.TYPE_INT_RGB ...
1202 byte By
Mozeza at 2007-11-27 6:01:02
Hi,I'm creating an application that utilizes multichannel audio. I have managed to get the app to play back a 4-channel wav through my creative pcmcia surround sound card. My problem is that I would like volume control over (preferably) all channels. The FloatControl way of controlling volume ...
Is it possible to convertone video format to anothere.g. mpg to avi or mov to mpgHelp plz
266 byte By
u771711a at 2007-11-27 6:03:29
I have an applet that I want to add an image to. I would like to map the image so I can do different things depending on what section of the image the user clicks on. How would I go about doing this? Does anyone have a sample I can look at?Many thanks.
HelloI want to encrypt a message by using the public key which is stored on a file. I load the key from the file but i cannot initiate the cipher for the encryption. The key is encoded and stored on a file The code i use for loading the key is FileInputStream PublicKey = new FileInputStream ...
650 byte By
vivinda at 2007-11-27 6:04:00
hi,i have to join two line with smooth curve eg....................................................o2.......................o1............................p1....................................................p2// This dash-dash point are nothing Suppose given o1(x1,y1) & o2(x2,y2) are ...
1280 byte By
mephia at 2007-11-27 6:04:20
Hi, i have a problem with a few png images. they have the type TYPE_BYTE_INDEXED. if i do any resizing or anything else with Graphics2D the transparency is lost.. here is a simple example.. BufferedImage bi = ImageIO.read(new File(args[0]));double w = 450;double oriw = bi.getHeight();double ...
HiThank you for reading my postCan some one please explain what is relation of Kerberos and Active Directory with java? By my knwledge LDAP (such as AD) can store many information and also userID/password which we usually use for authentication.What is relation of kerberos with LDAP (AD) and ...
Hey everyone, well I want to know if anyone knows how to rotate an image? I did it last year, but I don't remember how I did it or where I found out how to do it (I lost the code in numerous reformats of my computer). But basictly if anyone has ever played the game Zuma ...
3113 byte By
cup_joea at 2007-11-27 6:05:09
Hi,I want to provide a program that will generate a certificate request (CSR) and a private key, without using a java keystore. I was able to generate the CSR fine and persisted the CSR in base64 format to a file. But I'm having trouble generating the private key and having it store in a base ...
Hello everyone, Do you take care of studying the josso-gateway-config.xml and find the Credential Stroe block is lacking of a way to store the username/passport pairs by DataSource? this is the josso-gateway-config.xml listed as below:<?xml version="1.0" encoding="ISO-8859-1" ?><!-- ...
304 byte By
.@_a at 2007-11-27 6:06:43
Is there any way to retrieve the client certificate in an established SSL Client Authenticated Session? I am using Tomcat Web server 5.5 in which server and client authentication are enabled. Thanks.. If I am posting this question in wrong forum then please redirect me to the correct ...
Dear all,i post my question. I have to pick a shape (already done), move it (already done) through / along a line. Example: i have a small rectangle and it has to follow the line in a "S" shape.What do you suggest me? is there any class that can help me? do I have to implement the whole logic ...
HiThank you for reading my postIs there any sample (java files) with a howto that i can use as an start point?for example some complete sample which authenticate users with windows server 2003,and sample gives some details about when to use kinit and klist and ...
All,I have the following problem with encryption:I want to encrypt String into byte[] using: PBEWithSHA1AndTripleDESHere's the code:public class SecurityTest {//private static final String encodingType = "PBEWithSHA1AndTripleDES";private static final String encodingType = ...
What is CA? Is there a full documentation about it?
The following link says that the public key that corresponds to the private key used to sign the JAR is placed in the JAR, along with its certificate. http://java.sun.com/docs/books/tutorial/deployment/jar/intro.htmlI have a couple of questions: are both the public key and certificate in the DSA ...
801 byte By
rezsama at 2007-11-27 6:09:51
Hi,I'm new in java security. I'm trying to grant "java.security.AllPermission" to my program but getting AccessControlException. Here is the program:package t;public class MyApp {public static void main(String[] arg) throws Exception{FileWriter writer = new FileWriter( new File("c:/a.txt") ...
506 byte By
torfua at 2007-11-27 6:10:01
Is there a way to force j_security_check to redirect a user to a specific page every time, rather than wherever it came from?If someone goes directly to my login page and logs in using the login form, they get a 404 error since there is no page to be sent to.I would like to bounce everyone to a ...
HiI have an applet which i want to make a signed applet, has anyone created an internal certificate and use it with the applet, are there any disadvantages for doing so, rather then getting a certificate from verisign or some third party company.is there any expiration date for my generated ...
Hello again.I am posting on a new topic because i could not change the name of the previous topic i posted. I cannot decrypt an encrypted message which i load from a file.File encryptf = new File("encrypt.txt");int enclen = (int)encryptf.length();DataInputStream dis2 = new DataInputStream(new ...
I have audio coming into me from several locations, online via sockets.I want all the audio to go through all the speakers. No problem there... However i want to mix each piece of audio received to be sent back down the other end of the socket except the user who sent the audio over.... so no ...
Hi,I have a java desktop application which is actually a kiosk application. I have to run some promotion videos in my application when no user is using the kiosk.videos can be any avi or neother which can easily be played in java applications.What is the best way for me to play video files in a ...
80 byte By
vivinda at 2007-11-27 6:12:19
hi ,i want simple example of "curveTo" (java.awt.geom.GeneralPath)
it's possible do it with jmf? in which way?thanks in advance for helping me.
566 byte By
yipsheea at 2007-11-27 6:13:31
Hi,I've generated a keypair using KeyPairGenerator and after that saving the public and private keys individually to files as hex. Now when I read the hex back and used SecretKeySpec(byte[],"RSA") to reinstate it as a Key object and plug that into Cipher.init(Cipher.ENCRYPT_MODE,pubKey,random) ...
I've made the following code but i'm having some problems with the parameters, can anyone help please!This is what i have made of the class and main program so far:Class:import java.awt.*;import javax.swing.*;import java.awt.event.*;public class Game{JFrame jf;public void window(int x,int ...
Hi folks,is there a chance to generate a X.509 self signed certificate with JDK 1.6 without using the sun.security.x509 package or Bouncy Castle or KeyTool? I would like to implement this only with the JDK 1.6 API.Thanksmirikiwi
2265 byte By
j-roda at 2007-11-27 6:15:47
I am attempting to create a program that will encrypt and decrypt file using password based encryption. However I have been having trouble decrypting. If I try to open up a decrypted .doc Word file it doesn't work or any other files for that matter. Here is the decryption coed I am using. Any ...
187 byte By
vivinda at 2007-11-27 6:15:51
hi,I have very simple problem, i have to write a Text in applet( or canvas ),Text will contain multiply-line And Paragraph .Text must be not be editable.Thank you....
3468 byte By
xlinuksa at 2007-11-27 6:16:41
I have a jar file that is singed. I only need to update a text file inside this .jar file every few minutes by replacing it with another file from outside (same name but different size and contents). So I'm just copying the files from the old jar to a newly created one, then delete the old one ...
Hello folks! I need some help and I think that I'm in right place... Please help me if you have time...I want to create an application to create and export digital certificates. I know how to use keytool command and what I need is basically that command but in a form of GUI...Here's my ...
3336 byte By
Magusa at 2007-11-27 6:20:33
Hi. I'm trying to get JCE to work with the following example using AES in ECB mode (yes, ECB shouldn't be used, but it's what I'm supposed to use): given a clear text String represented by the bytes (in hex) 546578746F2070617261207465737465 and a key 6573736173656E686165686672616361, the ...
Hi,I need the functionality that the serversocket gets the sockets inet addresses in the given port before the sevrer socket accept() method.Is there any possibility please let me know. Thanx in advance.Regards,Tiger
When I try to customize the jmf.jar using the script: "java -classpath customizer.jar JMFCustomizer"I get this errors:Working directory is C:\Archivos de programa\JMF2.1.1e\lib\cusworkFound jmf.properties in jmf.propertiesRegistry Size = 172javac path = C:\Archivos de ...
Hello!I want to make a custom Control component for an mp3 player. The problem is that I don't know when it will be notified for show the elapsed time of a file. Which kind of ControllerEvent should I listen for?bye!
187 byte By
Pedpanoa at 2007-11-27 6:23:48
Hello,I was wondering if is there any way to force a specific cipher in SSL connections.Because in the examples that I have read I have not seen any thing about that.
1307 byte By
cup_joea at 2007-11-27 6:24:02
Hi there,I need help making my private key in pkcs#8 to pkcs#8 PEM format. I've been stuck on this for a while any help is much appreciated! I've generated my private key using with the following: KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");keyGen.initialize(1024, new ...
231 byte By
Roverta at 2007-11-27 6:24:22
How would I go about creating a Canvas inside of my JFrame with the picture named "Track"?Your help is greatly appreciated. Also, should the picture be a .JPG or .GIF?Message was edited by: Rovert
3318 byte By
P57a at 2007-11-27 6:25:28
public class MIDITest{ public static void main(String[] args) throws MidiUnavailableException, InvalidMidiDataException, IOException {Synthesizer synth = null;Soundbank soundbank;MidiDevice device = null;try{MidiDevice.Info[] devices = MidiSystem.getMidiDeviceInfo();for( int i = 0; i < ...
I downloaded the guide, but I can't find Javaoc documentation for JMF, to have a quick reference, does this Javadoc exist
Hi friends, I have a little question in using jmf. I can play (using fobs) any kind of my .avi file but i couldn't here any kind of audio. I have the following error:Unable to handl mpeg layer 3.... I have downloaded the Java MP3 PlugIn and registrly it with successfully.How could i fix?thanks ...
1524 byte By
Mskumara at 2007-11-27 6:26:31
Hi friends,Currently imdoing a project in online radio streaming.I have some problems in my coding.Will anyone help me to find out?or will anyone send me the codings,if u have?Below this program its showing error message as " COULD NOT CREATE AUDIO STREAM FROM INPUT STREAM".and how to use this ...
23305 byte By
Kalvin1a at 2007-11-27 6:27:08
Hi, I m new to JMF.We are using MjSIP and i want to transmit video through JMF to other machine.The problem is the implementation which is given in MjSIP isnt working .I mean whenever i execute the implementation given in mjSIP like JVisualReceiver etc.Both machines hangs coz they are not being ...