random

141 byte By Ana2w at 2007-9-26 11:56:21
How do I really choose a seed that is truly random? I am currently using new Date().getBytes()Thanks in advance.

HTTPS Tunnelling and POST operation-Any Solution?

523 byte By Prabhakaran_R at 2007-9-26 11:58:34
We have a sample program(Javaworld Tip111) for HttpsTunneling Problem.In Forums also everybody points to the same program for HttpsTunneling .This program works fine but only for GET operation.I want to do a POST operation (Sending Message to the server.) but it fails.why this strange ...

Unreliably receiving NewParticipantEvent, ByeEvent

1657 byte By kevinjapan at 2007-9-26 11:59:28
My JMF RTP client connects to the sending RTP server and successfully opens the ReceiveStreams and creates a player.The problem is that *sometimes* it does not receive the ByeEvent when the server-side RTPManager's removeTargets() is called, thus the client never finds out the server is done ...

Servlet using HTTPS OK with Tomcat, JSSE, JDK1.3.. but what with WebSphere

578 byte By felten at 2007-9-26 11:59:39
I have a servlet which use HTTPS (with client authentication) to download URL from a Web bussiness partner site . I tried my servlet with Tomcat 4.0-b6-dev, JSSE, JDK1.3 => all is OK (Keystore, Trustore, client cert, url connection, download url .....). So, now i must put my servlet in my ...

java.net.URL and Form-based Authentication

310 byte By HelgeB at 2007-9-26 12:00:06
WebLogic 5.1JDK 1.3.1Is it possible to use the java.net.URL class to connect to a servlet or JSP that is protected by form-based authentication? I have tried including the j_username and j_password parameters in the request but WebLogic just ignores them and returns the login page. ...

Getting Code Examples for file encryption

411 byte By bphill1977 at 2007-9-26 12:01:51
I was wondering if there are any good examples of code out there that I could get. I want to write a file encryption program that randomly generates keys and can that can store that key. I would like to be able to encrypt and decipher file both ways. Does anyone have any suggestions. I just ...

Move ViewPlatform or Scene

446 byte By LouisGL at 2007-9-26 12:01:57
Java 3D API said: "Move ViewPlatform instead of scene for good performance". On Java3d1.2.1, OrbitBehavior class Moves the View around a point of interest which Includes rotation, translation and zoom actions. But I did not see the big difference on my project (256*256 big surface).I can easily ...

Proxy authentication doesn't work with JSSE

2507 byte By splushka at 2007-9-26 12:02:10
Hello,Seems like there is no common way to authenticate with proxy for HTTP and HTTPS.Connecting to http://... - works fine, but https://... returns error message:Unable to tunnel through 111.111.111.111:8080. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"(IP address is ...

Projection help me!!

504 byte By Griccio at 2007-9-26 12:02:15
Hi all,please help me!!I have a coordinate system of the Java3D virtual universe right-handed with x-axis positive to the right y-axis positive up and z-axis positive toward the viewer.I have drawn in this system severals LineArray with theirs coordinates and length.I want now represent this ...

Assymetric Encryption

499 byte By gandalfgrey at 2007-9-26 12:02:48
Is it at all possible to perform assymetric (public/private key) encryption using the JCE. At present need to write some code without using 3rd part products such as cryptix or bouncycastle to implement the algorithims. I know JCE provides support for RSA encryption but don't know whether it ...

Assymetric Encryption and JCE

500 byte By gandalfgrey at 2007-9-26 12:02:52
Is it at all possible to perform assymetric (public/private key) encryption using the JCE. At present need to write some code without using 3rd part products such as cryptix or bouncycastle to implement the algorithims. I know JCE provides support for RSA encryption but don't know whether it ...

request by web url works but fails by IP Address

864 byte By rishidas at 2007-9-26 12:04:01
I am in a fix . I am trying to develop and HTTPSClient in java which will run and get html from this URL https://webqa.mpnr.com/servlet/TestSince this website is served by 4 separate boxes with a load balancer in between . I want to creat a utility which can basically request HTML from each ...

Security Policies

483 byte By robertstrickland at 2007-9-26 12:06:29
I messed with my Security Policies while I was going through a Security Tutorial and I can't get some of my java programs to run correctly anymore. I get messages similar to this:Exception in thread "main" java.lang.ArrayIndexOutOfBoundsExceptionat Easter.main(Easter.java:10)These programs ...

missing repaint()

657 byte By jagga1982 at 2007-9-26 12:07:23
HiI am making a GUI for the movement of a virtual robot in a maze... the function is supposed to refresh the position after making a change in position by calling repaint()but the updation of the GUI takes place only after the whole traversal is done...the decision for the new position is ...

LineAttributes

838 byte By Griccio at 2007-9-26 12:07:58
Hi all,this my code but I don't change the tickness of my LineArray..why?Thanks.Gianni Color3f lColor1= new Color3f(1.0f, 0.0f, 0.0f);LineAttributes la = new LineAttributes();la.setLineWidth(5.0f); Appearance appla = new Appearance(); appla.setLineAttributes(la); LineArray axisXLines = new ...

PLEASE HELP javax.net.ssl.SSLException: untrusted server cert chain

1083 byte By paganware at 2007-9-26 12:10:06
I've created an SSL server and a SSL client that will comunicate with each other over a socket. if I run the applicationswith the -Djavax.net.debug=ssl parameter I can see that the client is starting a handshake with the server however I get the following error.j avax.net.ssl.SSLException: ...

This forum is dead!

119 byte By mark20011 at 2007-9-26 12:10:17
I think there won't have much developer using java 3D in this world. Otherwise, why it is so quiet here?

Using a PKCS12 key with Java's keytool

2293 byte By rpspall at 2007-9-26 12:10:47
Folk,I struggled for the longest time using a PKCS12 key to sign jars / applets with the Java Keytool.Despite documentation stating otherwise, JDK 1.4 (beta 3) and JSSE 1.0.2 would not let me sign files from a PKCS12 keystore exported from MIE / Netscape, or exported from IBM Http Server Key ...

JCE1.2.1 and VisualAge

954 byte By post2abhi at 2007-9-26 12:13:13
Hi,JCE1.2.1 is a bunch of 4 signed jar files. When these .jar files are imported into VisualAge they somehow loose their "digital certificate". When I run my encryption code that uses JCE1.2.1 classes, they fail giving error "can't set up certs for trusted CAs". If I run my code out of ...

How to tell when a sound is done playing

292 byte By lukepalmer at 2007-9-26 12:13:14
Hello,I am writing a java application that needs to know when playback of a sound terminates. Calling play() on an audioClip goes off and starts its own thread, I'm assuming- how can I do this so I know exactly when the sound is done playing?ThanksL Palmer

Rendered Scenes require lights?

285 byte By ig88 at 2007-9-26 12:13:29
I am trying to make a sample app using the primitives supplied in the ..utils.geometry package. However, whenever I render the scene, no objects appear. ColoCube works fine, but Cone and Cylinder don't. Do they require a global light to be seen?thanks,Andy

Problem while loading the applet across SSL in IE 5.0 & NS 6.0

2927 byte By Soniya1 at 2007-9-26 12:13:53
Hi Can any one of u guys solve my problem?I m trying to load an applet thru https protocol in both the browsers( IE 5.0 and Netscape 6.0). I am having a jar file which contains the applet class files and some helper files for the applet.When i m accessing the image URL (in the html file for the ...

Server Authentication - calling all experts (or those that have it working)

914 byte By colin_goodall at 2007-9-26 12:14:29
OK, it's the usual "You've got three days to be an expert in this" scenario. I'm posting this message to the forum to see if I can get expert help quickly! All comments greatly appreciated.Scenario:I need to produce a Proof of Concept for server authentication by 13th November. This means ...

Rotation about ANY axis

330 byte By ajaykumargupta at 2007-9-26 12:15:13
Hi all !!!I am a novice to 3d programming but i have done some JAVA programming earlier. The problem i am finding is that I do not know how to rotate any geometric object (say, a cylinder or a cone) about any arbitrary axis, say ax+by+c=0.Can anybodyhelp me ?Thanks in advance.Ajay ...

shearing in the AffineTransform class

815 byte By nsam83 at 2007-9-26 12:15:58
I am having trouble figuring out what the units of the parameters to the shear(shx, shy) method in the AffineTransform class are and as a result am unsure of precisely what affect this method has on a shape. I thought a shearing operation was usually expressed in terms of degrees but the ...

Self Signed certificates and automated Javascript/JSP

813 byte By aschiffman at 2007-9-26 12:16:12
Has anybody used Javascript, or JSP to automate the certificate process on a self signed applet? I want to have Javascript load the certificate file, maybe at most popup a Do you want to install a Root CA Certificate, and then when the user clicks Yes the Applet automatically loads.Minimally ...

Bouncy Castle

252 byte By gandalfgrey at 2007-9-26 12:17:55
Have downloaded bouncycastle's cryptography jar file. Now how do I install this. What directory do I place it in under the JRE and is that all I have to do. Also is there any documentation that explains the how to use methods and class.

Bouncy Castle

252 byte By gandalfgrey at 2007-9-26 12:17:58
Have downloaded bouncycastle's cryptography jar file. Now how do I install this. What directory do I place it in under the JRE and is that all I have to do. Also is there any documentation that explains the how to use methods and class.

SSL and making a trusted cerficicate

3058 byte By lithindrym at 2007-9-26 12:18:54
Hiyas,I'm trying to create an SSL connection between a client and server and have had decent luck so far. I was able to create a new keystore (mykeys) with a password (xyz) and I have a SSLServerSocket create a SSLSocket which accepts a SSLSocket connection from a client. So far, so good.Then ...

adding BranchGroup after compile() : live objects

1172 byte By swkeum at 2007-9-26 12:19:14
hi. after compile() my objRoot (BranchGroup), i detached some children and attached new ones with picking. but when i try to pick the new child object, i got these error messages.Exception occurred during Behavior execution:java.lang.IllegalStateException: Picking can only work if BranchGroup ...

GIF decoding from stream

1281 byte By alexmj at 2007-9-26 12:20:41
In the table are stored GIF and JPEG images, which can be edited by the user, and then to be written back. Here the code, which handles JPEG-images:OraclePreparedStatement pstmt = (OraclePreparedStatement) conn.prepareStatement (" SELECT mime _ type, content FROM wwv _ document $ WHERE name =? ...

Converting VRML to JAVA 3D

422 byte By Mazz at 2007-9-26 12:21:44
I have a number of models that I created in MAYA and then exported to VRML. I now want to put these models into a JAVA 3D environment.How should I go about this? Would I have to go through the VRML code converting it all to JAVA 3D manually, or is there another way? I am new to JAVA 3D and only ...

byte code?

262 byte By mrraph at 2007-9-26 12:23:38
I have to write my own provider for sun's JCE... for performance, i was asked to write some part in "byte code" ... is it possible? never heard about that... and i found nothing in java doc about that... if someone can help me?thanks

creating GIF/JPEG in servlet environment

1079 byte By chitcool at 2007-9-26 12:23:41
hi everyone,<p>i found a site where gif are created on the fly. (see http://integrals.wolfram.com/index.en.cgi ) we all calculus students just need to typein intergal equations and it returns the answers in GIF format.. in Applet, there is already a container/component where everything is ...

session data in cookies

246 byte By vindi1976 at 2007-9-26 12:23:43
Hi. I'm have a web application where I store the session data in cookies. Can I encrypt this data using JCE?Though some code snippets would be great, a simple yes or no answer will at least get me going. Thanks.Vinny.

3D Polygons

309 byte By s03 at 2007-9-26 12:23:44
I am taking a 2D ordinace survey map and transforming it into 3D in Java. I intend to create 3D polygons along the contour lines and then generate a mesh which brings all the polygons together to represent the hill/mountain. I was wondering if anybody has done this before or has any info on it. ...

IS "javasound://44100" a live audio source?

581 byte By lbahneman at 2007-9-26 12:23:45
I'm trying, without success to use the AVReceive/AVTransmit tools to test sending audio between two linux boxes. I want to send microphone input audio to another machine. Is "javasound://44100" a live source? There is another JMF example that involves ising JMStudio which I was confused ...

Fonts in Java

1069 byte By vijaywadnere at 2007-9-26 12:23:54
hi there,I've recently started using Jdk 1.3. I found a new method for creating font in the java.awt.Font class named "public static Font createFont(int, InputStream)"This method works well in Applications but gives following error when used in Applets:java.lang.SecurityException: Unable to ...

448-bit Blowfish encryption not supported?

1012 byte By lithindrym at 2007-9-26 12:24:48
Hiyas,I'm trying to encrypt a file with 448-bit blowfish encryption. However, it won't work. I get a java.lang.SecurityException: Unsupport keysize or algorithm parameters error. Here's my code...try {KeyGenerator keyGen = KeyGenerator.getInstance("Blowfish");keyGen.init(448);SecretKey ...

Capture Audio and Slide show with JMF?

451 byte By sai_nukala at 2007-9-26 12:24:51
Hello All;Can anyone guide me to start on how to stream or capture both Audio from the Mic and Slide show from Power point and generate a AVI file.ie., User starts presenting a Conference with Audio and Slide show, I want to implement an Application that runs in the background and Merges Audio ...

VOIP CALL

190 byte By rituchawla at 2007-9-26 12:26:52
Hi,i want to implement h.323 protocol using java.Is there any API's supporting this.My objective is to place a voip call using h.323rgdsritu

Zoom Scene

88 byte By sinbawang at 2007-9-26 12:27:04
How can i click the mouse ,the scene zoom as the center of Mouse cursor ?

How do I set permission grant for sunjce_provider.jar ?

213 byte By footprint at 2007-9-26 12:27:37
How do I set permission grant for sunjce_provider.jar ?I want to use the program from jarsafe, but it require the Cryptography Extension to be set.Can anyone teach me ?Thank you.

JComponent scale

358 byte By fdom at 2007-9-26 12:29:09
Hi all, I need to scale components that extend JComponent and are positioned in another JComponent that acts as a container. How can I use the same scale for the container and the components ? I have tried to use scale() method from Graphics2D, but I have not been able to get what I want. Any ...

Granting custom ClassLoader construction

690 byte By youview_support at 2007-9-26 12:30:34
Hey.I've sprent pretty much all day reading and experimenting with the security stuff surrounding signed applets, it all seems fine except one ickle thing. I can't figure out how to get that popup security warning window asking the user to verify that it is ok for the applet to be granted ...

javax.crypto (JCE) not recognisable

511 byte By rohitgad at 2007-9-26 12:31:10
Hi all,I downloaded the J2re1.4.0 (which is supposed to include JCE). Inspite of this I get an error in my code where I reference Crypto usingimport javax.crypto.* I get the message that the package crypto does not exist. I also downloaded JCE1.2.1 and put the appropriate jar files (from ...

FLEXlm ?

183 byte By gsilverm at 2007-9-26 12:31:44
Has anyone done a review of FLEXlm for Java License Manager?If so, could you please send the URL?Any additional comments you have are invited.Thanks

How can I make a screen zoom ?

461 byte By sinbawang at 2007-9-26 12:33:09
>Hi, I want to make Zoom but without modify the objects in the virtual world, neither the size of the screen. I mean, I just want to see the same objects (some of them will dissappear, I know) but bigger, just like anormal zoom. without moving the viewing platform. Just like a 2D program. ...

How can I know the Position of Mouse cursor after zooming?

21 byte By sinbawang at 2007-9-26 12:33:43
thankX

Playing sound files from an executable jar

1688 byte By lbarnett at 2007-9-26 12:36:47
I'm trying to write a Java application that (among other things) plays sounds from a series of .au or .wav files. This all works fine when the applications are run from .class files and the sound files are in a subdirectory. But I'd like to package the whole thing up into an executable jar ...