Chat applet closes browser!!

I'm programming a chat applet using MulticastSockets
the connect button does something like this:
dest = new InetSocketAddress("228.5.6.7",4321);
try{
socket = new MulticastSocket(4321);
NetworkInterface netif = NetworkInterface.getByInetAddress(InetAddress.getLocalHost());
socket.joinGroup(dest, netif);
InetAddress address = InetAddress.getByName("228.5.6.7");
socket.joinGroup(address);
I also have a signed jar file so the client gives rights to the applet (so it can open the sockets)
It works on win2k and winXP but on win98 when the client clicks the connect button the browser closes itself. I don't know what kind of error could produce this.
Any ideas??

In response to the original: Have you tried updated browsers on the 98 machine?
In response to everthing else:
If you were developing a chat application using php and javascript, I could understand using the http protocol, but if you're using an applet, why not just connect with a socket? And, for that matter, it seems fairly simple to make it peer-to-peer and just connect to whoever you want to send to.(just keep a hash of names and ip's)
The conversation is interesting though since I've thought about the feasability of creating a php/javascript client to jabber. As far as keeping the http connection open and polling, seems like you could specify some send rate from the server side(1 packet every other second isn't the end of the world) and re-poll whenever the client hasn't received a packet for a straight 3 seconds, or something like that...
The problem with php and javascript is that they really have funny threading and time limits(some that are server invoked), but I suppose this can be circumvented. There are loopholes.

Similar Messages

  • Getting hang/crash problem when I try to close browser window from applet

    I have a small Apllet that has a button that calls a Javascript function in the opening window, to close the window in which it is loaded.
    The Applet window is a PopUp window from one of my application's window. First time I start my application and load that Applet the button works fine. It calls the Javascript method and the Method closes the window using the self.close() method.
    But now if I open the applet window again and click on the button to close the windows, it hangs. I put in trace statements and saw that it hangs on JSObject.getWindow() window.
    I am using JDK Plugin 1.4.2_07 and 5.0 , if I work out on IE browser, it works fine.But when I use firefox or mozilla it gives problem of hanging/crashing.
    Note that in case of 1.4.2_07 this problem experienced some times but in case of 5.0 it gives always for other than IE browser.
    Please, if somebody could give me some clue about why this would happen, I will really appreciate that. and code related to this is given below
    import javax.swing.JApplet;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import netscape.javascript.JSObject;
    public class TestApplet extends JApplet implements ActionListener{
    protected JButton closeButton = null;
    protected JSObject win = null;
    private JFrame frame = null;
    private boolean alreadyClosed = false;
    public void init(){
    this.win = JSObject.getWindow(this);
    this.closeButton = new JButton("Close Browser Window");
    this.add(this.closeButton);
    this.closeButton.addActionListener(this);
    frame = new JFrame("Test Frame");
    frame.setSize(300, 400);
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.out.println("windowClosing");
    alreadyClosed = true;
    TestApplet.this.stop();
    frame.show();
    public void actionPerformed(ActionEvent ae){
    stop();
    public void stop() {
    if (!alreadyClosed) {
    alreadyClosed = true;
    frame.dispose();
    closeLaunchedBrowser();
    System.gc();
    System.runFinalization();
    private void closeLaunchedBrowser() {
    final TestApplet thisObject = this;
    Runnable r = new Runnable() {
    public void run() {
    try {
    JSObject win = (JSObject)JSObject.getWindow(thisObject);
    if (win != null && win.toString() != null) {
    //win.eval("top.opener=self;self.close();");
    //win.call("close", null);
    win.eval("self.close();");
    } catch (Exception e) {
    Thread t = new Thread(r);
    t.start();
    Thanks.

    I am waiting for any reply. I have tried for all these below options still I am getting Problem. I heard this is because of javascript, it wont call methods more times .Thats
    why I need other than JSObject or java script solution.If some one know anything about this or any modifications I have to made for the below options to avoid that problem please let me know.
    // URL durl = new URL(thisObject.getCodeBase(), "test/CloseMe.htm");
    // System.out.println("URL :" + durl.toString());      
    // thisObject.getAppletContext().showDocument(durl);
    //     thisObject.getAppletContext().showDocument(new URL("javascript:window.close();"), "_self");
    //win.eval("top.opener=self;top.close();");
    //win.call("close", null);
    //Object[] args = { "close", new Integer(50) };
    // win.call("setTimeout", args);
    //win.eval("setTimeout("close", new Integer(50));");
    If it is the problem of JRE I just need it should work on 1.4.2_01 or higher.
    thanks.

  • Updating Applet in chat application in browser

    iam developing a chat application in browser using
    1.Http connection and no sockets
    2.Using applet iam sending messages to servlet in server and servlet handles the client request
    My problem
    how to update every clients connected to the server.
    (ie i want to pump the data that is recieved from one client to every one)

    If no socket connections is totally necessary then you could accomplish this task with this process using javascript as well as java.
    1. In your html web page that will contain the chat window. Create an html "Form" set the "Name" attribute for it. The chat window will be of input type "TEXTAREA" it will also have to have a "NAME" attribute set for it. Next create a new "Form" set the "Name" attribute.
    In the same new form add another input type of "TEXTFIELD" set the "Name" attribute and the "MAXSIZE" attribute if you want to limit the number of letters the text field will accept. Next in the same form add another input type of "SUBMIT" and add
    your servlet as an attribute.
    2. Construct your servlet in a manner that will receive
    the forms text field data by accessing "getParamater"
    method also create a "Cookie" object. As requests are sent to the servlet append the new text to the cookie object and send the new web page with the old cookie
    out to all sessions.
    3. Set the refresh time for your web page with the chat
    window to a reasonable amount of time.
    4. Add javascript to the web page. In the BODY tag of the html page add the javascript function onLoad="someFunction()". You will also have to add
    someFunction to the HEAD tag of the web page
    by doing something like this.
    <HEAD>
    <SCRIPT Language="javascript">
    function someFunction() {
    document.forms.<form name>.<text area name>.setText(document.cookie.cookieName.getValue())
    </SCRIPT>
    </HEAD>
    There may be some inconsistencies in these instructions,
    but its functionality is sound. Good luck.

  • Close browser window when applet closes (seperateFrame=True)

    Hello,
    Does anyone know a way to close the parent browser window when the java applet closes when the config setting seperateFrame=True?
    Thanks

    Do a little search in the forum, there are 100s of solutions on how to close the browser window.

  • How to activate browser(to top) whenever chat applet recieves new  message

    This is problem with Chat applet. This chat applet is placed in a web page. It is working fine with all the messages recived. But my problem is , the page(if winow is minimized)) sholud activate to top of all applications whenever applet recieves a new message .
    How can this be solved.
    Thanks

    Well, you could try getting the parent window of the applet (use getParent() till you find a Window object) and call toFront, but I don't think there's anything you can do if it's minimized.

  • How to design a chat applet?

    Hello,
    I have to design a chat applet in such a way that two users on different systems should be able to chat to each other after they login into a site. The applet should be able to save the transcript after the chat gets over (and that is considered to be done when one of the users logs out or closes the browser window).
    How do I design such an applet? Should I use sockets to enable communication between the browsers? Is there any place where I can get source code for similar applets?
    Regards,
    Arun Jayaprakash.

    The pages have to be designed in ASP. The applet should only provide the functionality of a chat room with the specifications that I had mentioned in an earlier post.
    Regards,
    Arun Jayaprakash.

  • Chat applet won't load in Yahoo

    Whenever I try to enter a Yahoo chat room it only loads the tools and the rest of the page stays blank with the message 'loading chat applet'.
    I leave it run for hours and it never loads the chat room.
    What can the problem be?

    Dear Euskir
    Thanks so very much for your reply. I am really disappointed about that, because all my family and friends have windows and now I can't converse with them.
    I actually downloaded Firefox, but it still doesn't load Yahoo chat either. It gets a bit closer than Safari but just doesn't get there. What could be the problem with Firefox that I am having. I would rather have it in a strange and unstable way than not at all.
    Is there any other way other than 'Charla'. Is Charla a browser? Can I just download it from the internet? How come Charla is not a happy one?
    Is it safe??
    I would be grateful if you could please let me know!
    Oh...maybe I should have just bought a Windows machine!!??!!
    Have I done the wrong thing? Oh well..it's too late now.
    Regards From
    Very Worried
    Tina

  • Java Chat applet won't send messages

    So i got a brand new MacBook Air yesterday with Mac OS X 10.8.2 and installed Java 7 Update 9 from Oracle.
    When using Safari 6 i run into a problem with a browser based Java chat applet.
    First of all: Java and Javascript are actibated in Safari.
    So I go to the chat's website and start the chat.
    Java works fine at first and the chat starts.
    People can send me private messages and i can type in a reply.
    However I cannot send these replies. Neither in the private messages (applet) nor in the main chat (browser).
    Any idea how to fix this issue?
    (BTW: Java 7 was the first Java ever installed on my Air, so no going back to Apples Java 6)

    And Java 7 Update 10 did not solve the problem either.
    Can anybody offer any ideas for a solution?
    Help would be much appreciated.

  • Chat applet

    hello,
    i developed a chat applet using JDK 1.3 .It is a swing applet.when i compile and run the applet ,it runs well inthe appletviewer.In IE ,it shows the following error "java.lang.ClassNotFoundException: javax.swing.JApplet".I think it needs java plugin.In JDK 1.3, javaplugin is already builtin.Then why it shows the above said error?.Kindly clarify the error.THIS IS VERY URGENT.

    i also have done that type of applicaton with messenger , if you use Only Applet
    then client side browser have also java plugin in defult and suport Applet but
    if you use JApplet then u should have to use java plugin which support Swing
    at client side.
    i come at this Forum some time, if you u have any problem then u can
    contect me at [email protected]
    OK ?

  • Firefox not loading Orkut chat applet while IE or Chrome does.

    Firefox is not able to load Orkut chat applet.
    It loads Gmail and all other sites of Google properly.
    Even it is able to load Chat in Gmail but unable to do so in Orkut.
    In addition to that Internet Download Manager is not functioning since I upgraded to 3.6
    Earlier version 3.5 was working perfect with all apps and websites.
    Please look in to this as Firefox is losing a substantial fan-base due to failure to load most popular websites and support auto download from websites.
    Thanks

    I am constantly using Private Browsing.
    Please let me know if this is a reason for the problem

  • Applet within browser not releasing file resource

    hi,
    I have an applet for ftp images upload.
    run from eclipse IDE (which uses applet viewer) the applet is ok.
    if i run my applet from browser here is what happens:
    i upload a file .& leave the browser opened.
    i then open this same file with gimp or photo-shop & get file in use error.
    if i close browser & try opening file .it works ok.
    why the file isn't released when applet instance still on browser ?
    is there a fix to this issue ?
    thanks for helping .

    thanks for prompt reply.
    yes i close all streams...
    the core method i use to upload files is below (client is a FTPClient object)
    private synchronized void putFile(File file, String remoteFile)
                   throws FileUploadException {
              String sFile = null;
              try {
                   sFile = r.chomp(remoteFile, '/');
                   client.put(file.getAbsolutePath(), sFile + file.getName());
                   r.numBytes += file.length();
              } catch (Exception e) {
                   //e.printStackTrace();
                   try {
                        retry(file, sFile);
                   } catch (Exception e1) {
                        throw new FileUploadException(e1.getMessage());
         }what am i doing wrong ?

  • URGENT!! help on CHAT APPLET

    i've created a chat Applet as client. i want it to be used like this
    -user login
    -choose chat room
    -and start applet.
    what i've done now is chat applet. i want it to be used by multi user.
    and display online users name or username.
    but now it can only detect one user. if i run many applet concurrently using my pc, it can't detect other user's name.
    how to do that?
    please someone help me!!

    this is my codes.
    it can be compiled but nothing appears when i run appletviewer ChatApplet2.html
    what happen?
    import java.lang.*;
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    public class ChatApplet2 extends Applet implements ActionListener,Runnable
    String user;
    String msg;
         String chatServer;
         ObjectOutputStream output;
         ObjectInputStream input;
         Socket client;
         public void init() {
              super.init();
              //{{INIT_CONTROLS
              setLayout(new BorderLayout(0,0));
              addNotify();
              resize(518,347);
              setBackground(new Color(12632256));
    displayArea = new java.awt.TextArea("",2,0,TextArea.SCROLLBARS_NONE);
              displayArea.setEditable(false);
    displayArea.disable();
    //displayArea.hide();
              displayArea.reshape(0,0,380,216);
              add(displayArea);
              idbox = new java.awt.TextField();
              idbox.reshape(84,288,284,24);
              add(idbox);
              button1 = new java.awt.Button("EnterRoom");
              button1.reshape(384,288,72,21);
              add(button1);
    list = new java.awt.List();
    //list.TOP_ALIGNMENT();
    //list.disable();
    list = new java.awt.List(5);
    list.add("#Default User"+"\n");
    list.reshape(384,24,128,196);
    list.setFont(new Font("Helvetica", Font.BOLD, 12));
    add(list);
              label2 = new java.awt.Label("Members");
              label2.reshape(396,0,100,19);
              add(label2);
              label1 = new java.awt.Label("UserName");
              label1.reshape(0,288,72,27);
              add(label1);
              enterField = new java.awt.TextField();
              enterField.reshape(84,240,431,44);
              add(enterField);
              label3 = new java.awt.Label("EnterText");
              label3.reshape(0,252,72,25);
              add(label3);
    //uf = new UserFrame();
              button1.addActionListener(this);
    idbox.addActionListener(this);
    enterField.addActionListener(this);
    list.addActionListener(this);
    public void actionPerformed(ActionEvent ae)
              if(ae.getSource()==idbox)
    user = idbox.getText()+"\n";
    list.addItem(user.trim());
    idbox.setText("");
              displayArea.append(user +" HAS JOINED THE GROUP");
         if(ae.getSource().equals(button1))
    user = idbox.getText()+"\n";
    list.addItem(user.trim());
    idbox.setText("");
              displayArea.append(user +" HAS JOINED THE GROUP");
    if(ae.getSource().equals(enterField))
    sendData(ae.getActionCommand() );
                   /*msg = enterField.getText();
    displayArea.append(msg +"\n");
    enterField.setText("");*/
    if(ae.getSource().equals(list))
    String l = list.getSelectedItem();
                             //uf.setTitle(l);
                             //Frame i[] = uf.getFrames();
                             //uf.setVisible(true);
    public void start()
              try {
         // Step 1: Create a Socket to make connection
         connectToServer();
         // Step 2: Get the input and output streams
         getStreams();
         // Step 3: Process connection
         processConnection();
         // Step 4: Close connection
         closeConnection();
         // server closed connection
              catch ( EOFException eofException ) {
         System.out.println( "Server terminated connection" );
         // process problems communicating with server
              catch ( IOException ioException ) {
         ioException.printStackTrace();
    if(vt == null)
    vt = new Thread(this,getClass().getName());
    vt.start();
    public void run()
    try{
    for(int i=0;i<10;i++)
    displayArea.append("One stop Java source code - www.globalleafs.com"+"\n");
    displayArea.setForeground(Color.red);
    vt.sleep(30000);
    vt.resume();
    }catch(Exception e){e.printStackTrace();}
         private void sendData( String msg )
              // send object to server
              try {
              output.writeObject( user + ">>> " + msg );
              output.flush();
              displayArea.append( "\nuser>>>" + msg );
              // process problems sending object
              catch ( IOException ioException ) {
              displayArea.append( "\nError writing object" );
         // get streams to send and receive data
         private void getStreams() throws IOException
              // set up output stream for objects
              output = new ObjectOutputStream(
              client.getOutputStream() );
              // flush output buffer to send header information
              output.flush();
              // set up input stream for objects
              input = new ObjectInputStream(
         client.getInputStream() );
              displayArea.append( "\nGot I/O streams\n" );
         // connect to server
         private void connectToServer() throws IOException
              displayArea.setText( "Attempting connection\n" );
              // create Socket to make connection to server
              client = new Socket(
         InetAddress.getByName( chatServer ), 5000 );
              // display connection information
              displayArea.append( "Connected to: " +
         client.getInetAddress().getHostName() );
         // process connection with server
         private void processConnection() throws IOException
              // enable enterField so client user can send messages
              enterField.setEnabled( true );
              // process messages sent from server
              do {
              // read message and display it
              try {
              msg = ( String ) input.readObject();
              displayArea.append( "\n" + msg );
              displayArea.setCaretPosition(
              displayArea.getText().length() );
              // catch problems reading from server
              catch ( ClassNotFoundException classNotFoundException ) {
              displayArea.append( "\nUnknown object type received" );
              } while ( !msg.equals( "SERVER>>> TERMINATE" ) );
         } // end method process connection
         // close streams and socket
         private void closeConnection() throws IOException
              displayArea.append( "\nClosing connection" );
              output.close();
              input.close();
              client.close();
         java.awt.TextArea displayArea;
         java.awt.TextField idbox;
         java.awt.Button button1;
    java.awt.List list;
    java.awt.Label label2;
         java.awt.Label label1;
         java.awt.TextField enterField;
         java.awt.Label label3;
    private Thread vt;

  • Yet another chat applet, but with good reason...

    Hi, I realise there are thousands of perfectly good chat applets out there (and millions of rubbish ones) but this is a last ditch to make something functional, fun and effective for my Computing Coursework. Thanks to AQA's sylabus, any remotely interesting topics are inplausable as it would result in me getting an instant U.
    My questions on this topic are as follows...
    What would be the best way to connect applets to server?
    - Straightfoward Sockets
    - RMI
    - XML-RPC
    With the last two would these run on joe user's browser without an additional extra bit being installed? Also, if sockets is the best answer is it possible to use XML as my data transfer medium? How can I encrypt this? If RMI is the best solution, are there any quick and concise tutorials kicking around? Will RMI be secure? How can I make it secure? Are all of the above clouding the issue too much and is there a better solution?
    Thanks in advance. Sorry if that left your head in a spin...
    - Andrew

    I did this a few years ago with straight socket communication. I would say start off with that, then if you'd like to use XML you can still send XML through the existing socket connections and parse it on the other end. But, there's no reason to make it more complicated than you need it, especially if you'll get a bad grade.

  • Problem in display file in java applet embeded browser

    hi, i am facing problem to display the file from local drive in java applet embeded browser. here is the error message i get:
    Exception loading file from path:java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    i think it should be the java security problem and i have try to get the solution from internet. i try to solve by using the fllowing method:
    keytool -genkey -keyalg rsa -alias yourkey
    keytool -export -alias yourkey -file yourcert.crt
    javac yourapplet.java
    jar cvf yourapplet.jar yourapplet.class
    jarsigner yourapplet.jar yourkey
    but the command prompt ask me to enter the keystore password. i try to enter any password. but i show me the error:
    keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect.
    So may i know what is the problem actually?Thanks a lot.

    Hi,
    here is the sample coding :
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import com.sun.j3d.utils.geometry.ColorCube;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.behaviors.mouse.MouseRotate;
    import com.sun.j3d.utils.behaviors.mouse.MouseZoom;
    import com.sun.j3d.utils.behaviors.mouse.MouseTranslate;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import org.web3d.j3d.loaders.VRML97Loader;
    import com.sun.j3d.loaders.Scene;
    public class SimpleVrml extends Applet implements ActionListener {
    String           location;
    String           initLocation;
    Canvas3D     canvas;
    SimpleUniverse     universe;
    TransformGroup     vpTransGroup;
    VRML97Loader     loader;
    View          view;
    Panel          panel;
    Label          label;
    BranchGroup     sceneRoot;
    TransformGroup     examineGroup;
    BranchGroup     sceneGroup;
    BoundingSphere     sceneBounds;
    DirectionalLight     headLight;
    AmbientLight     ambLight;
    TextField      textField;
    Cursor          waitCursor;
    Cursor          handCursor;
    public SimpleVrml() {
    initLocation="cylinder.wrl";     
         setLayout(new BorderLayout());
         GraphicsConfiguration config =SimpleUniverse.getPreferredConfiguration();     
         setLayout(new BorderLayout());
         canvas = new Canvas3D(config);
         add("Center",canvas);
         panel = new Panel();
         panel.setLayout(new FlowLayout(FlowLayout.LEFT));
         textField = new TextField(initLocation,60);     
         textField.addActionListener(this);
         label = new Label("Location:");
         panel.add(label);
         panel.add(textField);
         add("North",panel);
         waitCursor = new Cursor(Cursor.WAIT_CURSOR);
         handCursor = new Cursor(Cursor.HAND_CURSOR);
         universe = new SimpleUniverse(canvas);
         ViewingPlatform viewingPlatform = universe.getViewingPlatform();
         vpTransGroup = viewingPlatform.getViewPlatformTransform();
         Viewer viewer = universe.getViewer();
         view = viewer.getView();
         setupBehavior();
         loader = new VRML97Loader();
         gotoLocation(initLocation);
    public void actionPerformed(ActionEvent ae) {
         gotoLocation(textField.getText());
    void gotoLocation(String location) {
         canvas.setCursor(waitCursor);
         if (sceneGroup != null) {
         sceneGroup.detach();
         Scene scene = null;
         try {
         URL loadUrl = new URL(location);
         try {
              // load the scene
              scene = loader.load(new URL(location));
         } catch (Exception e) {
              System.out.println("Exception loading URL:" + e);
         } catch (MalformedURLException badUrl) {
         // location may be a path name     
         try {
              // load the scene
              scene = loader.load(location);
         } catch (Exception e) {
              System.out.println("Exception loading file from path:" + e);
         if (scene != null) {
         // get the scene group
         sceneGroup = scene.getSceneGroup();
         sceneGroup.setCapability(BranchGroup.ALLOW_DETACH);
         sceneGroup.setCapability(BranchGroup.ALLOW_BOUNDS_READ);
         // add the scene group to the scene
         examineGroup.addChild(sceneGroup);
         // now that the scene group is "live" we can inquire the bounds
         sceneBounds = (BoundingSphere)sceneGroup.getBounds();
         // set up a viewpoint to include the bounds
         setViewpoint();
         canvas.setCursor(handCursor);
    void setViewpoint() {
         Transform3D viewTrans = new Transform3D();
         Transform3D eyeTrans = new Transform3D();
         // point the view at the center of the object
         Point3d center = new Point3d();
         sceneBounds.getCenter(center);
         double radius = sceneBounds.getRadius();
         Vector3d temp = new Vector3d(center);
         viewTrans.set(temp);
         // pull the eye back far enough to see the whole object
         double eyeDist = 1.4*radius / Math.tan(view.getFieldOfView() / 2.0);
         temp.x = 0.0;
         temp.y = 0.0;
         temp.z = eyeDist;
         eyeTrans.set(temp);
         viewTrans.mul(eyeTrans);
         // set the view transform
         vpTransGroup.setTransform(viewTrans);
    private void setupBehavior() {
         sceneRoot = new BranchGroup();
         examineGroup = new TransformGroup();
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_EXTEND);
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_READ);
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_WRITE);
         examineGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
         examineGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
         sceneRoot.addChild(examineGroup);
         BoundingSphere behaviorBounds = new BoundingSphere(new Point3d(),
              Double.MAX_VALUE);
         MouseRotate mr = new MouseRotate();
         mr.setTransformGroup(examineGroup);
         mr.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mr);
         MouseTranslate mt = new MouseTranslate();
         mt.setTransformGroup(examineGroup);
         mt.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mt);
         MouseZoom mz = new MouseZoom();
         mz.setTransformGroup(examineGroup);
         mz.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mz);
         BoundingSphere lightBounds =
         new BoundingSphere(new Point3d(), Double.MAX_VALUE);
    ambLight = new AmbientLight(true, new Color3f(1.0f, 1.0f, 1.0f));
    ambLight.setInfluencingBounds(lightBounds);
    ambLight.setCapability(Light.ALLOW_STATE_WRITE);
    sceneRoot.addChild(ambLight);
    headLight = new DirectionalLight();
    headLight.setCapability(Light.ALLOW_STATE_WRITE);
    headLight.setInfluencingBounds(lightBounds);
    sceneRoot.addChild(headLight);
         universe.addBranchGraph(sceneRoot);
    public static void main(String[] args) {
    new MainFrame(new SimpleVrml(), 780, 780);
    cylinder.wrl :
    #VRML V2.0 utf8
    # A cylinder
    Shape {
    appearance Appearance {
    material Material { }
    geometry Cylinder {
    height 2.0
    radius 1.5
    view.html:
    <html>
    <applet code="SimpleVrml.class" width=600 height=600>
    </applet>
    </html>
    error msg that i get :
    Exception loading file from path:java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    i can display the wrl file in applet itself but i can't display in the browser.is it any problem with my code?Urgent, please help me. Thanks.

  • Help, how can i run JavaFX as Applet in browse

    can someone please tell me, how can i run JavaFX as Applet in browse
    thanks

    http://jfx.wikia.com/wiki/FAQ#What_is_needed_on_a_machine_to_run_JavaFX_applications.3F

Maybe you are looking for

  • Error while transporting data source from Dev to QA

    Hi , I am transporting 0glaccext hier data source. I created the transport with the the transfer rules and the corresponding Infopackage. when I collect the transfer rules I have 4 transfer structures present in the transfer rules which are " 0GLACCE

  • Use setDirectCustomizing - IWDBusinessGraphics  - Change Chart

    Hi, Dynamically, I want to create a business Graphics and change the chart of this graphic such as Title, legend, Color... This is my code in the wdDoModifyView : <i>IWDBusinessGraphics GraphicTpsRep = (IWDBusinessGraphics)view.createElement(IWDBusin

  • TNS_ADMIN

    Hi, I am using Oracle 10g and 11g. can i keep my LISTENER.ORA file on a different location and please let me know what does TNS_ADMIN do?

  • Interactive report - how to change language in labels

    Hello All, I am writing an application, which uses an interactive report with all these great possibilities as: Sort, Filter, Control, Highlight, Aggregate etc.). The problem is that some users do not understand English language and they would like t

  • InDesign crashes when opening with users with limited privileges

    InDesign opens and when the page where you choose to start a project loads, it crashes. I have unloaded the plugins but nothing changes. This happens with the final users of the computers. As administrator I can run it perfectly. I need to solve this