Is there any way to make work JAAS from browser.

467 byte By husayt at 2007-9-26 2:51:23
Hello all.I am making Intranet Login module, which should let the user in if he already logged in Nt and ask user/pass if not. It should be working from browser. I am trying to use JAAS. But I don't know is there any way to use JAAS from applet, since applications are not runnable on ...

byte[] to String

578 byte By rajesh009 at 2007-9-26 2:52:52
hi , i have got a base64 encoded byte array with me now i want to sent that from my server to client for that i am first converting the byte array to a string String a=ser.toString();and then passing it as a string from server to client and in the client side and in the client side byte[] ...

cannot get Cipher.getInstance to work

3762 byte By mbongcojr at 2007-9-26 2:55:16
Hi all,I have a class that generates the public & private key pairs using RSA and another that tries to encrypt a file using the public key generated from the former class. I'm getting a NoSuchAlgorithmException: Algorithm RSA not available. Why do i get this during ...

Database connectivity using Applets

363 byte By ramna21 at 2007-9-26 2:56:49
Hi,I have an applet which has to connect to the database and then fetch the result. THis applet is embedded in the HTML. This does not seem to work and it throws some security exceptions. I even tried policy files and signing of applets.Can someone suggest a step by step process for achieving ...

Adding text to an TIFF image loaded with JAI?

295 byte By linkdeath at 2007-9-26 2:56:51
I have been playing around with the JAI, and have been able to load an image rescale it and even save it as a different format. What I can't figure out is how can I add text to the image then save it back with the text as part of the image.. Does anyone have any ideas? Thanks...

Error in handling quicktime file

998 byte By wonjeon at 2007-9-26 2:56:59
Hi,When I try to transcode a quicktime-format movie to another file, it has the following errors.$ java Transcode -o a.avi file:/c:/a.mov- create processor for: file:/c:/a.movFailed to configure: com.sun.media.ProcessEngine@c2ff5 Bad header in the media: Expected media information header atom ...

Do I have to use certificates when writing an HTTPS server

579 byte By irun5k at 2007-9-26 2:58:39
I'm writing a client app and a server app. The client will connect to the server via HTTPS. A browser will never connect to this HTTPS server, just the client I have written. Can I skip the step of using certificates? I've been told it isn't a requirement. I just want SSL communication, that ...

Transforms

53 byte By Dnw at 2007-9-26 2:58:46
how can i move my cube with the arrows?

Weblogic Startup ERROR w/ JCE and JDK

512 byte By vulcanvik at 2007-9-26 2:58:51
HiIam running a WLS5.1 off Solaris 7 with JDK1.3 and JCE1.2.1 installed. When I try to start the WLS with the startWebLogic.sh I get the following error.The WebLogic Server did not start up properly.Exception raised: ...

Getting JMF to work- how?

447 byte By Peds at 2007-9-26 3:00:34
Hi,I recently downloaded and installed JMF 2_1_1 for windows 98 and already have JDK !.3.1.I develop my software using JBuilder 3 Proffessional.However, i cannot seem to be able to get JBuilder to recognise the JMF stuff.Does anybodt know how to get the JMF up and running on JBuilder3 Pro? I ...

Here's a complete example

3804 byte By pweb at 2007-9-26 3:01:57
This worked with Win98 + JDK1.3.1 + IE5.00 all installed to default locations. Notes follow.************************************************************************************ test.bat ************************************************************************************REM *** delete any ...

RTP's rate ?

484 byte By wflm at 2007-9-26 3:02:45
I developed a voice chat APP. I don't know it whether can real-time transmit voice in 56K's internet's connection?capture audio:AudioFormat format = new AudioFormat(AudioFormat.LINEAR,8000,8,1);Set the output content descriptor:ContentDescriptor cd = new ...

JAAS login modules?

124 byte By bujinwang at 2007-9-26 3:03:15
Hi,I am not sure whether all the 5 login modules come with jaas_1.0 or jdk1.4?Thanks,Burt

jaas: unable to instantiate Subject-based policy

796 byte By spieler at 2007-9-26 3:05:46
Hi I'm trying to use JAAS 1.0In order to check if JAAS is active/workingI try to get it's policy:javax.security.auth.Policy.getPolicy() But I get the following exception:java.lang.SecurityException: unable to instantiate Subject-based policyat ...

How to print out a Multilines plain text?

2014 byte By xin_foo at 2007-9-26 3:06:17
I get a String from a JTextPane, it's a multilines plain text, as follow,String mText= tPane.getText(); //tPane is a JTextPaneNow I want to print the String out, just as it displayed in the JTextPane, but the result come out without paragraph, just linked together without paragraph ...

fence zoom in 2d(urgent!!)

144 byte By sangeeta_bg at 2007-9-26 3:06:43
hi friends,can somebody tell me how to use fence zoom or simple zoomin zoomout function in 2d.thanks sangeeta

Scaling big b/w images --> poor display quality

587 byte By Pepilein at 2007-9-26 3:07:40
Hi everyone !!I'm displaying big images with Java 2D (PNG 5000 x 5000 pixels) and downscale the images by using Graphics.drawImage(x, y, width, height,...).The problem is that the scaled images are drawn in low quality. Setting RenderHints doesn't help because the images are only black and ...

Rotationinterpolator axis

350 byte By frisco_steve at 2007-9-26 3:08:19
I've noticed, ALL of the tutorials use a rotation over the Y-axis.So, since i'm new to java3d (not to java), i wonder how I could instantiate the rotationinterpolator to rotate over the other two axes, namely the X-axis and the Z-axis.And is the Y-axis rotation a default value for ...

MAC (Media Access Control)Addreess, Network Card address.

174 byte By rameswar at 2007-9-26 3:09:26
Hi ,Could you please tell me how to read computer's MAC Address using Java programme.its urgent ! Thanks ramesh

Cookie Encryption

665 byte By beattris at 2007-9-26 3:09:37
Hi all,I'm relatively new to encryption methods, so please excuse me if this question is too simple.We have a web application that is going to rely on session cookie authentication. The cookie is going to contain some information that we'd like to encrypt, such as a username, email address, ...

2D graphics to view CAD drawing files

382 byte By ryanrichards at 2007-9-26 3:09:55
Has anyone written anything or have experience dealing with viewing AutoCAD dwf files using java? I am trying to figure a starting point. Do I just need to decode the drawing file and convert the entities into Java 2D entities (Lines, arcs etc..) ? Any libraries included in the API to help ...

Problems in getting data from Raster

1525 byte By sally_deng at 2007-9-26 3:10:49
I did a test to system file : " :/winnt/system32/getstart.gif ". Its properties are: 16 colors, IndexColorModel and MultiPixelPackedSampleModel. After I loaded it to a bufferedImage, I tried to get data from its data buffer.But the data are either 0 or 8. Please tell me what's wrong with my ...

Verisign Certificates

813 byte By etelekeli at 2007-9-26 3:11:13
We want to purchase a maximum strength Server Certificate. To purchase one from Verisign, it is required that we provide the name of the Server Software provider upon which the Certificate will reside. There are only options for the servers from recognized brand names - nothing like "Other ...

source code

201 byte By kiosci at 2007-9-26 3:13:44
Hi,where can I found the source code for JMF.I want develop my JMF application with VisualAge,have someone experience with this?best regardkiosci

Image Creation

90 byte By tomym at 2007-9-26 3:14:19
HiCan anyone tell me how to make one Image object from JFrame.

GIF problem

1215 byte By ReynirH at 2007-9-26 3:14:41
Hi, Im in the process of writing a servlet that can take all images in one directory (gif /jpeg) and create new files with the same images in different sizes.I m using the ACME GIFencoder and a ScaleCopy to resize the gifs. ...but, Im getting an error, still only sometimes... it looks like this ...

Netscape 4.7, 1.3.1 Plug-In download

686 byte By beausoleil at 2007-9-26 3:14:49
Hi,Is this broken again? I am using 1.3.1 plug-in. IE knows where it is, but Netscape, even if I indulge it and download it again, install it again, it cannot find it. I get the browser window with the plug-in icon saying click here after plug-in is installed but nothing happens. I am using ...

JDK1.1 - Security on sockets

635 byte By kitto at 2007-9-26 3:14:57
I would like to secure my sockets(IO) within an applet.I am currently looking at the java.security api but amnot able to find a way of securing the sockets.As the sockets are within the applet I would like to recieve a public key and start decrypting the input stream based on the public key. in ...

PRIVATE AND PUBLIC KEY help

269 byte By swaroopba at 2007-9-26 3:15:03
HI ALLcan anyone tell me the difference b/w private key and public key used in encryption alg.for eg. in encryptiion file system of windows 2000private & public keys are made use of.thanksbelur

Put JComponent on Canvas3D

283 byte By mibmrf at 2007-9-26 3:15:24
Hello, I want to put some objects which extend JComponent on a Canvas3D. I have a JFrame and I add Canvas3D and JComponent in the panel (getContentPane()) but I don't see the Canvas3D ?How I can do this ?Excuse my english, i'm french :-)))

Area Object PathIterator Iteration Order With Holes

429 byte By wessto at 2007-9-26 3:15:59
I'm using a PathIterator to find all the boundaries of an Area Object. I am wondering if I can be guaranteed an order of iteration, that is, will the PathIterator go through the outside boundary of one part of the Area Object, then all internal holes, and then move on to other Outside ...

How do I replace Plug-In HTTPS handlers with JSSE?

2788 byte By Chase Barrett at 2007-9-26 3:16:16
We successfully developed a stand-alone application which uses JSSEfor its SSL implementation. Unfortunately, I am having problems withour plug-in applet version of that application (Java Plug-in 1.3.1).As far as I can tell, the plug-in is still using the browser's HTTPShandler. This is in ...

Binary Jar file?

281 byte By chadorbaf at 2007-9-26 3:16:44
How can we create binary Jar file in order to hide the code from the client?Note : The .xml and .html files are accessable /understandable in Jar file. I need somehow hidden this codes when deploy it. Or a way to prevent from opening the Jar file.Thanks

Binary Jar file?

278 byte By chadorbaf at 2007-9-26 3:16:59
How can we create binary Jar file in order to hide the code from the client?Note that: The .xml and .html files are accessible/understandable in Jar file. I need somehow hidden this codes when deploy it. Or a way to prevent from opening the Jar file.

String to SecretKey

708 byte By pdubeau1 at 2007-9-26 3:17:57
Hi,Is there a way to convert a string in a SecretKey object.I receice this string clee. I need to convert to a SecretKey public String decoder(String chaine, String clee){SecretKey desKey (SecretKey) = clee; ?KeyGenerator keygen=null;Cipher unCipher= null;byte[] buffDeCrypter= null;try{unCipher ...

public/private key

100 byte By sanamo at 2007-9-26 3:19:39
how to generate a private/public key pair for DSA?thanks in advance.lil.

Creating graphs on Servlet/Jsp

243 byte By sanjay_badola at 2007-9-26 3:20:05
I would be grateful if some one can tell me about custom APIs which can be helpful in rendering any type of images/graphs on servlet or jsp. Currently I can use awt package but I would like to know some other options.Thanx

Problem with JScrollPane when Image is zoomed

986 byte By lateef_sagar at 2007-9-26 3:20:42
Hi,I am makine an image viewer. It has a JFrame, a JScrollPane and a JPanel in it. The paint method of JPanel paints an image. I am doing mouse controlled Zooming so i am handling mouse pressed, move and released methods. When the mouse release is fired, i calculate the new zoom factor and set ...

jdbc secirity control

289 byte By sakaruye2 at 2007-9-26 3:23:43
Pleasecan someone tell me how can I modify java policy file in order to connect jdbc-odbc;I could not run an applet program which should retrieve a data stored in Micrsoft-access.I am just receiving an java security exception "Access denied"thanks

POST via https returns FileNotFoundException

4044 byte By AyKarsten at 2007-9-26 3:23:44
Hi, i'm trying to acomplish the following:- post some data to a distant webserver via https- read the return code and messageI succeed with the first. (I know that the posted data is accepted by the server). But when I try to read then return code (or anything else which accesses the ...

JSSE Reference Implementation vs. commercial implementation

682 byte By rdpiazza at 2007-9-26 3:25:20
I have a couple questions about JSSE being a "reference implementation" that I was hoping people could answer:1. From Sun's description, it sounds like this just means that it's not coming with a lot of the bells and whistles that commercial implementations have, but it is fully functional ...

Accessing HTTPS from a Servlet

1568 byte By anilkc2000 at 2007-9-26 3:25:43
In our Project, we are using JBoss 2.2.1 and Tomcat 3.2.1. From this environment we have to access the https port of another Web Server.(iPlanet). We have successfully configured https in iPlanet and is able to access the same from an ordinary Java class. But when the same code snippet is moved ...

InvalidKeySpecException

752 byte By gkaestle at 2007-9-26 3:27:39
Hello all, i am having a problem, and was wondering if anyone could help. I created a private key using openssl, and pkcs8 packed in der format with the command >> openssl pkcs8 -outform DER -in newreq.pem -out client.key -topk8Now, I import that into a byte[] byteKey, and execute the ...

RSA private key can't be read by microsoft crypt api

307 byte By thaenelt at 2007-9-26 3:29:01
Hi,we are trying to use RSA encryption between a java based system and a microsoft based system. RSA encryption is working well on the java side however when we try and import RSA keys generated by the java system into the microsoft app, it fails.Any one else experienced this ? ...

Image Processing

383 byte By weaxler at 2007-9-26 3:30:28
I have to load a gif image, and the get the rgb values in each pixel from this image. I am only allowed to use the methods of the jdk 1.1.8. I have tried the PixelGrabber class, but is struggling with this. It there anyone who can give an simple example on how to load an image, and then grab ...

Generating a CSR without keytool

150 byte By etelekeli at 2007-9-26 3:33:28
Can anyone point me to a "how-to" on creating a CSR without using the java keytool, but instead using the SDK?Thanks!--zjs

Change a File to String

181 byte By mclxo at 2007-9-26 3:34:41
hi, I'm doing Java Cryptography. I can encrypt a message and decrypt a message. But I don't know how to encrypt a file in java. Can anybody help?Thanks

Showing Jpg problem

5281 byte By sasato at 2007-9-26 3:37:05
I working on an aplication that shows Jpgs images.The problem is that when I've seen over 4 or 5 images the system spent about 30 seconds to show the next image. The Jpgs images are about 180Kb. I'm using JDK1.3. And here I put some of the code.At first I get outofmemory but I include the ...

securing webpages on the site with username and password

206 byte By amitsharma97 at 2007-9-26 3:37:42
whats the best way to secure web pages on a web site.if the users are given user name and password and are required to autheticate before accessing the information on the secured pages

Java3d is useless, here's why:

196 byte By Kayaman at 2007-9-26 3:37:46
Sorry 'bout the ruse gentlemen (the topic I mean)This forum doesn't seem to be very popular, I guess Java3d isn't used THAT much then.Or are you just the quiet sort?