help with security in RMI

765 byte By TechnoBug at 2007-9-26 10:31:29
I tried reading RMI tutorials and some threads in some java boards but i could find nothing which assembles my caseI am writing a simple servlet which calls another servlet to post a XML file. The first servlet is suposed to parse the second one before posting it (cause the XML files can get up ...

Where to find sun.misc.BASE64Encoder

531 byte By lilleponken at 2007-9-26 10:31:47
Hi!I'm not sure if this is the right forum but...I need to encode a string in Base64 but I don't know how.I found people using the class sun.misc.BASE64Encoder but I cant find it.I suppose it is part of a package that is downloadable (i hope at least) but I don't know where to search.I ...

keytool error: java.lang.Exception: Input not an X.509 certificate

189 byte By connollypaul at 2007-9-26 10:32:34
I have a certificate from verisign and when i try to import it as my certificate i get the above error. any suggestions would be gratefully appreciatedcheerspaul

Digital Signature

361 byte By jglj at 2007-9-26 10:32:42
Hi,How to use Digital Signing with Internet Explorer and Netscape?In details :1. to digitally sign data entered in an HTML form andalso2.The user should to be able to choose the signingcertificate with which he prefers to sign.Thanks In advanceGeraldo Linsjose.lins@eversystems.com.br ...

Signed applet loses permission when called from Javascript

554 byte By braudabaugh at 2007-9-26 10:33:05
I have an applet signed for Netscape 6 that is trying to do file i/o. I'm finding that sometimes the applet has permissions and sometimes it does not. It has permission when the init and start methods are called. It also has permission when an AWT event fires from user input. However, when ...

Applet - Netscape Signtool - RSA cert in jdk1.3.1

806 byte By pradeepv at 2007-9-26 10:33:11
Hi, I am facing some problem with Netscape and signtool.I am trying to load Applet from two Signed Jar file,signed by RSA.1. one jar file conains provider classes etc, and other jar file loads these classes ad set the Provider. 2. I signed these jar files using Netscape Signtool and RSAcert. 3. ...

addProvider in a signed applet(cab file)

2792 byte By padisha at 2007-9-26 10:36:18
Hi,I have been trying to sign an applet such that I can use the JCA from withinan applet.My goal is to encrypt a file and then ftp it to a server. I am currentlyable to "read" the file from the client's system and then ftp it. I havecreated a test certificate and signed the applet grandting it ...

StackOverflowError in Signed Applet uses a jar

64619 byte By ringpond at 2007-9-26 10:37:02
Hello, AllI have an signed applet that uses a jar that contains a crypto provider.when i running that applet, i got a java.lang.StackOverflowError.how can i solve this problem?ps. i use java plugin 1.3.1_01 in ie 6java.lang.StackOverflowErrorat ...

Java don't run

264 byte By baronian at 2007-9-26 10:37:47
I have this problem: After i hve compiled my .java and i got the .class, i can't run it.I get this message:Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/j3d/GroupWhat's the meaning of this?Thanks

socket comms in an applet

378 byte By jmor1 at 2007-9-26 10:38:41
Hi,I know a fair bit of Java but I'm new to applets. I have a stand alone Java program which shows images and which also uses Socket communication. I want to convert this to an applet.I'm trying to understand the security constraints.If I use a signed applet, will I be able to use the socket ...

ProgressBar with percent

239 byte By foulon at 2007-9-26 10:39:11
Hello,I'd like to find a progressbar inclueding the percentin it. The percent must increase with the progressbar. The only I've found is with the percentage next to it.Some sources?Thx.ALF

change image

77 byte By teddy22 at 2007-9-26 10:39:34
How can I insert String to image(GIF,JPG)?Thanks!

Applet Problem in Netscape

266 byte By RavindraV at 2007-9-26 10:39:37
hello,i have a application in java applet which gets the data via servlet. but its hangs often and it gives some netscape memory error. can any one give the suggestion. please and i can be contacted on ravindrav11@yahoo.com ravindra

JAI image loading works in application but not in Servlet

1872 byte By jenzinas at 2007-9-26 10:39:41
I'm trying to do a standard load with the JAI using:JAI.create("fileLoad", imageFile.getAbsolutePath()).getAsBufferedImage(); it works just fine when run in an application but when i try and use it in a Servlet, i get the following exception:java.lang.ExceptionInInitializerError: ...

2D barcharts

372 byte By TheZ at 2007-9-26 10:39:44
I know this question has been asked 100 + n times here, but none of the answers did help me.I need to draw a horizontal 2D barchart into a JPanel in an application. Since I don't have a clue how to do this, I'm asking if someone could help me with a piece of code or information how to do it. ...

Encryption/Decryption failure for pdf and MSWord files

4885 byte By kowalik at 2007-9-26 10:40:24
Hi,Is there anybody to help me to find out what is wrong with my class (listing below)? I am sucessfuly using this class to encrypt and decrypt txt, html files but for unknown reasons I am unable to use it for e.g. pdf files. The encrypion somehow works but any atempt to decrypt is a failure. ...

signed applet using ssl connection Problem!

479 byte By petertg at 2007-9-26 10:40:41
Hi all.The problem is that when I sign my applet and try to connect trough SSL the IAIK throughs ClassCastException when trying to load the client certificate. 1. I added client certificate ( DER format ) to the applet jar.2. I signed an applet with another certificate so it whould have all ...

What is Appropriate for working signed JARs

881 byte By redpath at 2007-9-26 10:40:57
I have a signed jar now. The previous jar works perfectly fine in all versions of browsers (netscape and IE), no special swing code. The Jar is signed now; since I want to save state as per requested by the user. If I code a normal HTML file with Applet tag IE (the latest) does nothing to show ...

MS VM and JCE

310 byte By jnewton37 at 2007-9-26 10:42:42
Okay. Simple question - hopefully this will provoke a quick response:MS Internet Explorer 5.5+ (MS Virt. Machine > 3309) supports JDK 1.1.4, including JNI.Does the MS VM support JCE?And if not, does it logically follow that you can't use JCE classes on IIS?Thanks, ...

Signing for Netscape and IE

963 byte By swingfreak at 2007-9-26 10:44:31
Hello everybody,I wrote a program which's purpose is to establish and hold a communication between different computers. The user will login and receive data with the help of some hidden and a displayed applet.My problem with this is, I have to sign those applets, because they have to do some ...

certificates

210 byte By swingfreak at 2007-9-26 10:45:02
hello again,two short questions:1. do i really need two different certificates for my applet to make it trusted in IE and NS?2. can an applet be multiple-signed?regards

certificate gets-> ......is not trusted ?

328 byte By connollypaul at 2007-9-26 10:45:25
i got a cerificate from verisign and when i used the java command "keytool -import -alias mykey -file cert.cer"the reply included what was to be expected in the cert but followed with the line "... is not trusted. Install reply anyway? [no]: no"any suggestions? cheerspaul ...

How to do security setting automatically

993 byte By flae at 2007-9-26 10:45:37
The security setting property file named "java.security" is in directory "JAVA_HOME/jre/1.3/lib/security". For one of my applet, I need to set login configuration entry such as: login.configuration.provider = com.sun.security.auth.login.ConfigFile login.config.url.1 = ...

importing your new verisign/thawte certificate

235 byte By connollypaul at 2007-9-26 10:46:31
When you get your certificate from one of these companies, when using the keytool -import option, must you chose the 'trustcacerts' option? When i have been importing the cerificate i get the error its not trusted......

Problem while loading a JApplet ( which uses JAI ) on Netscape across ssl

1110 byte By jameel_khan78 at 2007-9-26 10:47:11
Hi Folks...I m having some problem in applet.. can any1 of u guys help me? My problem is as follows..I m having 2 JApplets (Swing applet) one of the applet is using JAI (Java Advance Imaging APIs). I m trying 2 load both the applets in IE as well as in Netscape across SSL (ie thru https ...

How to serialize GeneralPath (java.awt.geom)

305 byte By hf990190 at 2007-9-26 10:50:12
Can any one tell me how to make GeneralPath serializable?I'm trying to create an object (a freehand drawn curve) which later I need to write into ObjectOutputStream. But I'm getting java.io.NotSerializableException.Please help! Thanks in advanceregards,Clement ...

How to move the "camera" and change its direction

185 byte By javadeviloper at 2007-9-26 10:52:00
I read the tutorial made by Sun and looked at the API but I still have no idea how to look elsewhere or getCloser to my objects.Can you help me?(I'm using SimpleUniverse)

Can JMF work with DivX ;-) Codec?

280 byte By meng_xx at 2007-9-26 10:52:59
Because of some copyright questions, IBM can not open the MPEG4 Codec for JMF to us. But I notice that JMF can play AVI films created by DivX(of course pre-install it), compare with the pure java MPEG4 Codec, what is the difference in DivX? Can i take DivX instead?

Verisign signed JAR and HotJava

358 byte By redpath at 2007-9-26 10:53:07
The verisign signed JAR panel comes upon Opera 5.12 when loading the verisign signed JAR through the APPLET tag and under netscape 6.1 via the HTMLconverter stuff. Thats good butUnder HotJava nothing happens? It thinks its not signed.What do I need to do? We want to recommend ...

resize image from DB

1368 byte By alexmj at 2007-9-26 10:58:27
Hello!I had following problem.There is a code, which receives images from one table in RDBMS (images are stored in LONG RAW fields),reduces them and writes in other table. Here the code:OracleStatement stmt = (OracleStatement)con.createStatement();OracleResultSet rs = ...

Signed plugin Applet security issues

848 byte By kevinamc at 2007-9-26 10:59:47
Hi,I was wondering if anyone has been able to get a unrestricted Java Applet to work over Java Plugin in Netscape 6. I have a signed applet which I can grant all permissions to in IE via the initial Java Plugin (1.3.1) dialogue box. However, the same operation in Netscape 6 does not grant the ...

Keystore and trust store

419 byte By vanihegde at 2007-9-26 11:00:01
Hi,i am writing a lib that uses JSSE. I need to set the keystore and trust store for the SSL to work. i do not want to use the system properties to set the above as it is a lib and user may have different values set. Is there any other way of specifying the location of Keystore and trustore, ...

APIs for encryption/decryption

93 byte By ccmanohar at 2007-9-26 11:01:07
Are there any APIs available to encrypt and decrypt any data? Any sample code?

JAD.EXE

220 byte By ccmanohar at 2007-9-26 11:01:08
Using "jad.exe" (from http://www.meurrens.org/ip-Links/java/codeEngineering/jad15.html) I am able to genetae the source code from any "class" file. Is there no way for the author to protect his code?

JAD.EXE

220 byte By ccmanohar at 2007-9-26 11:01:09
Using "jad.exe" (from http://www.meurrens.org/ip-Links/java/codeEngineering/jad15.html) I am able to genetae the source code from any "class" file. Is there no way for the author to protect his code?

No Cipher suites in common

632 byte By dhughes1 at 2007-9-26 11:01:21
Hello, When I switch to using "setNeedClientAuth" to true on the end of the server the socket fails to connect. The error message that I get is "fatal handshake failure, no cipher suites in common". When I do not require client authentication, the program runs fine.I created my own key using ...

Socket connection in Applet

668 byte By enjoynkp at 2007-9-26 11:01:38
Hi champ,I created an server and client chat applet. when i execute server and client application it works fine. but when i use applet for client it throws IONetPermission denied error. I know i have to do some thing in policies. But i cannot do in client machine. So is there any other way to ...

make screen saver with java3d

77 byte By ping_16 at 2007-9-26 11:03:08
Can i make screen saver with java3d?If yes,how to do it?thanks.

Need help drawing lines in an application

532 byte By jsugrue at 2007-9-26 11:03:45
hi.What I need to do is to draw a line between 2 components on screen. However, these aren't just straight lines, but ones with corners, so that no component is overwritten.So if you were to connect 2 components, (2 buttons for example) and you had another button in between, the final line ...

Applet using sockets works perfectly under Netscape but not under IE

425 byte By spectrumx at 2007-9-26 11:04:01
I have setup a java applet compiled with Sun Forte which implements a connection with a server application with sockets. The applet works perfectly on the same machine when it is loaded from netscape communicator but I receive an com.ms.security.SecurityExceptionExsecurity error when I am ...

AffineTransform images look poor

492 byte By ztolley at 2007-9-26 11:04:11
I am writing a photo album app, so like many others, and part of this resizes images. The problem is athough resizing an image to 800x600 ish using affine transform look ok, resizing to 200x140 ish looks really poor.I know this could look better cos other applications I have see using the same ...

policy file deployment for signed JApplets in 1.2 security model

590 byte By FranckC at 2007-9-26 11:04:24
As far as I understand, for a signed JApplet to get permissions of a 1.3.1 plugin, you have to provide the client with both:a) a certificate b) a policy fileWhile providing a certificate for download and validation is fairly easy, i don't see how to pass over the corresponding policy file to ...

message digest . save hash code as a string

505 byte By veazy at 2007-9-26 11:05:23
I used messageDigest class to get hash code as an array of bytes.The problem can be summerized in those lines:byte[] hash = MessageDigest.digest();String s = new String (hash );MessageDigest.isEqale(s.getBytes(),hash)the result is false .i think It has to do with special charactersbut I could ...

Buffers not filled with Stereomode and Swing

521 byte By bestanpouri at 2007-9-26 11:05:49
Hi,I am running a complex 3D User-Interface which is working fine, using almost only Swing Components.I have implementet the use of the Stereo Mode of the openGL Java3D API and it works fine with my Quadro2 Chip. But there is one real Problem. the Swing Componets are only drawn to one Buffer, ...

Password Encryption - Urgent

133 byte By himanshug at 2007-9-26 11:06:00
Hi,Is there a way to encrypt password using Java and then store it in the database?Thanks,Himanshu

Obtaining browser(IE and Netscape) keystore

526 byte By soorej1 at 2007-9-26 11:06:55
Hi All,I need to allow client to digitally sign data typicaly from a client browser( for non - repudiation purpose). I am trying to achieve this by loading a applet to client broswer, But my problem is where to find keystore so that i can use clients private key to sign the data before sending ...

Help with Factorial Calculations

742 byte By drykat at 2007-9-26 11:07:23
Hi,I've got the following sample code for getting the Factorial of a number. It works fine for small numbers but I need it to handle larger ones (eg 365! ). Any suggestions for how to get it to work :public class Fac{ public static void main(String[] args){ int n = (whatever number I wish to ...

Has anyone found a workaround (e.g., mesa) for OpenGL on Solaris/x86?

519 byte By holtert at 2007-9-26 11:08:31
I'm developing Java 3D apps on Solaris/Sparc that need to run on Solaris/x86 as well. Java 3D requires OpenGL which I have on the Sparc but which is not available (Sun has no plans on supporting it) on the x86. Has anyone found a workaround for this problem? I guess mesa might be a reasonable ...

java 2D graphics

542 byte By kamatchi79 at 2007-9-26 11:09:02
Hi!I'm new to the 2D graphics. Basically i'm writing network management software for wireless product.I have a gif or jpeg file of a wireless product, depends on the real time data i have to make the image file to blink in various colors. For more clear, i have to display the image with 3 ...

Is it possible to compile under Forte with import com.ms.security.*;

126 byte By spectrumx at 2007-9-26 11:10:34
Is it possible to compile under Forte with import com.ms.security.*; or do I have to compile from Microsoft SDK?