Problem in displaying exe file

For my project, I need to display the text and picture contents stored in the database based on date(daywise). Afterwards I need to display an exe file and this cycle has to repeat. I'm able to display the first portion and the second portion(exe execution) is not being displayed. If I make the second portion as separate file it works but not together. Is it because i'm using Panels and Labels? Pl suggest solution. Here is the code.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import java.util.*;
import java.text.*;
import java.text.DateFormat.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.URL;
import javax.imageio.ImageIO;
class Testing1
          Font fnt1=new Font("System",Font.BOLD,45);
          Font fnt=new Font("System",Font.BOLD,40);
          Image image,image1,image2,image3;
          JPanel p;
          JFrame f;
          Thread th;
          JWindow w;
          JLabel lbl1,lbl12,lbl13,lbl0,lbl11,lbl2,lbl3,lbl4,lbl5,lbl6,lbl7,lbl8,lbl9,lbl10;
public void Testing1()
          th=new Thread();
          try
               Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
     str="jdbc:microsoft:sqlserver://10.11.1.216:1433;SelectMethod=cursor;DatabaseName=IMS;user=ims;password=ims";
          catch(Exception e)
               e.printStackTrace();
p= new JPanel(new SpringLayout());
          int numPairs = 7;
          lbl12 = new JLabel("", JLabel.TRAILING);
          lbl13 = new JLabel("", JLabel.CENTER);
          lbl0 = new JLabel("", JLabel.TRAILING);
          lbl11 = new JLabel("", JLabel.CENTER);
          lbl1 = new JLabel("", JLabel.TRAILING);
          lbl2 = new JLabel("", JLabel.CENTER);
          lbl3 = new JLabel("", JLabel.TRAILING);
          lbl4 = new JLabel("", JLabel.CENTER);
          lbl5 = new JLabel("", JLabel.TRAILING);
          lbl6 = new JLabel("", JLabel.CENTER);
          lbl7 = new JLabel("", JLabel.TRAILING);
          lbl8 = new JLabel("", JLabel.CENTER);
          lbl9 = new JLabel("", JLabel.TRAILING);
          lbl10 = new JLabel("", JLabel.CENTER);
          p.add(lbl12);p.add(lbl13);
          p.add(lbl0);p.add(lbl11);
          p.add(lbl1);p.add(lbl2);
          p.add(lbl3);p.add(lbl4);
          p.add(lbl5);p.add(lbl6);
          p.add(lbl7);p.add(lbl8);
          p.add(lbl9);p.add(lbl10);
          lbl12.setFont(fnt);lbl13.setFont(fnt);
          lbl0.setFont(fnt);lbl11.setFont(fnt1);
          lbl1.setFont(fnt);lbl2.setFont(fnt);
          lbl3.setFont(fnt);lbl4.setFont(fnt);
          lbl5.setFont(fnt);lbl6.setFont(fnt);
          lbl7.setFont(fnt);lbl8.setFont(fnt);
          lbl9.setFont(fnt);lbl10.setFont(fnt);
          //Lay out the panel.
SpringUtilities.makeCompactGrid(p,
numPairs, 2, //rows, cols
8, 1, //initX, initY
12, 12); //xPad, yPad
     p.setBackground(Color.white);
          f = new JFrame();
          f.setSize(400,400);
          f.setLocationRelativeTo(null);
          f.getContentPane().add(p);
          f.getContentPane().setBackground(Color.black);
          f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     f.setVisible(true);
     w = new JWindow(f);
          f.setSize(0,0);
          w.getContentPane().add(p);
          w.getContentPane().setBackground(Color.black);
          w.setSize(Toolkit.getDefaultToolkit().getScreenSize());
     w.setVisible(true);
try
          String sql = "SELECT * from TableEvents where date1=? and ((Time1 >= ?) or (? between Time1 and Time2)) and news='N' order by Time1";
          pstmt = conn.prepareStatement(sql);
          pstmt.setDate(1,d2);
          pstmt.setTime(2,T9);
          pstmt.setTime(3,T9);
          rs=pstmt.executeQuery();
          while (rs.next())
               dt=format1.format(rs.getDate("Date1"));
               des=rs.getString("Description").trim();
               pic1=rs.getString("pic1");
               pic2=rs.getString("pic2");
               pic3=rs.getString("pic3");
               pic4=rs.getString("pic4");
               tm=format.format(rs.getTime("Time1"));
               tm1=format.format(rs.getTime("Time2"));
               ven=rs.getString("venue").trim();                                             txt2="http://10.11.1.216:8080/DisplayBoard/Images/Title.jpg";
               txt3="http://10.11.1.216:8080/DisplayBoard/Images/head.jpg";
               Swingdisplay(txt2,txt3,dt,tm,des,ven);
               try
               th.sleep(3000);
               catch(InterruptedException e)
catch(SQLException e)
public void Swingdisplay(String txt2,String txt3,String dt,String tm,String des,String ven)
try
     URL url1=new URL(txt2);
     URL url2=new URL(txt3);
     URL url3=new URL("http://10.11.1.216:8080/DisplayBoard/Images/head1.jpg");
     image1=Toolkit.getDefaultToolkit().getImage(url1);
     image2=Toolkit.getDefaultToolkit().getImage(url2);
     image3=Toolkit.getDefaultToolkit().getImage(url3);
     lbl4.setIcon(new ImageIcon(image3));
     lbl2.setText("Date: "+dt);
     lbl4.setText("Time: "+tm);
     lbl6.setText("Venue: "+ven);
     des="<html><center>"+des+"</center></html>";
     lbl8.setText(des);
     lbl11.setIcon(new ImageIcon(image1));
     lbl13.setIcon(new ImageIcon(image2));
catch(Exception e)
catch(Exception e)
//Second portion of executing an exe
try
Runtime r=Runtime.getRunTime();
Process p=null;
p=r.exec("c:\\TestTools.exe")
catch(Exception e)
public static void main(String[] args)
SwingUtilities.invokeLater(new Runnable(){
public void run(){
new Testing().buildGUI();
}

How To Use Code Tags (+for the extra dense+)
[Step One|http://img221.imageshack.us/my.php?image=steponela4.jpg]: Highlight the code in your text editor, and copy it.
[Step Two|http://img509.imageshack.us/my.php?image=steptwovk5.jpg]: Paste the code into the forum "Message Editor"
[Step Three|http://img123.imageshack.us/my.php?image=stepthreely8.jpg]: Highlight the code and press the "Code" button (highlighted in red)

Similar Messages

  • Problem with display of files in remote server

    hi,
    i am trying to display to the files on a remote server using JTree. i am able to display local files and directories using JTree but i don't know how to display remote files. can anyone explain how to do it?
    Thank you,
    npaila

    hi,
    i have exactly the same problem.
    Each node of the tree represents a directory. it can be a local or a remote one.
    The only difference is the definition of the File class; the TreeNode class is the same for both.
    Everything works correctly with local Files and fails with remote files.
    Everything means : directory creation, supression, rename, expand all recursive subdirectories.
    I can expand each node, even the ones associated with remote files, with user actions (mouse click, key typed) but I can't expand any node by programing.
    Each action is efficient on the remote server, but the display doesn't change at all.
    Something strange is that when I create a new JTree with a remote file as the root, expand all its recursive subdirectories and then display the Tree, it has correctly expanded.
    Is it a refresh problem ?
    Please help us, give us a clue...
    Thx for advance
    chocodup

  • Problem downloading itunes using IE8. Registry problem with iTunesSetup.exe file

    I am trying to install iTunes and have come up against the Registry problem and Windows saying the file needs a signature.  I have tried deleting the browsing history and searching and deleting all copies of the iTunesSetup.exe file.  I have even begun again with QuickTime.  All to no avail.
    I'm using Windows XP.
    Does anyone have any further ideas for this problem please?
    Thank you!!

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • Webserver Problems when using exe file

    Hey guys I could use some help with a problem I am having.
    I am working with webservers and am trying to stream my program from one computer (server) to another.  I can do this with standalone problems but am having trouble when I try to use an executable.  I have found this article for help:
    http://digital.ni.com/public.nsf/allkb/7F95D43D3F50FCAC8625710E000068E1
    I have included two print screens of the situation.
    1st is my observed stand alone file.
    2nd is my exe file that is showing an error  
    Any help would be greatly appreciated
    Attachments:
    Stand alone Program.png ‏350 KB
    With exe.png ‏87 KB

    Hey dwhamm,
    If the computer that you are trying to use as the server and deploy the executable on does not have the LabVIEW runtime engine that matches the development system, the remote front panel will not operate properly.  Below please find a link on how to build an installer that you should make to include the proper runtime engine:
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/build_installer/
    There is a note at the bottom of the original tutorial that you referenced on what to be sure to include in the installer. 
    Also, were you able to try changing the URL from http://TargetComputerName/VIname.html to http://TargetComputerIPAddress/VIname.html? 
    Do you have any firewalls on the computer that is being used as the web server?
    Regards,
    Kira T

  • Problem in Running EXE file from Java

    Hello Friends,
    I am calling an EXE program from my JSP page using Runtime.exec() method. The exe file simply reads a file and writes the content into another file (like copying a file). Now if I am providing fully qualified path to both source and destination files, then it runs absolutely fine. However, if i don't mention file path (only fine name is there), it creates output file in System32 folder and the resultant file doesn't contain any data.
    I am providing the source for the EXE file.
    ==============
    Source 1 (with fully qualified path name)
    #include <stdio.h>
    #include <fstream.h>
    #include <iostream.h>
    #include <string.h>
    #include <stdlib.h>
    void write_temp_file1(char *);
    void main()
    char * myTempPath=NULL;
    myTempPath=(char *)calloc(100,sizeof(char));
    strcpy(myTempPath,"D:\\temp\\tempFile.txt");
    write_temp_file1(myTempPath);
    myTempPath=NULL;
    void write_temp_file1(char * fileName)
    // first read the file and write another file with same content
    char * line1=NULL;
    char * line2=NULL;
    char * line3=NULL;
    line1=(char *)calloc(100,sizeof(char));
    line2=(char *)calloc(100,sizeof(char));
    line3=(char *)calloc(100,sizeof(char));
    ifstream inf;
    inf.open(fileName,ios::nocreate);
    inf>>line1;
    inf>>line2;
    inf>>line3;
    inf.close();
    ofstream outf;
    strcat(fileName, "1");
    outf.open(fileName);
    outf<<line1<<endl;
    outf<<line2<<endl;
    outf<<line3<<endl;
    outf.close ();
    ================================
    Scenario 2 (with file name only)
    #include <stdio.h>
    #include <fstream.h>
    #include <iostream.h>
    #include <string.h>
    #include <stdlib.h>
    void write_temp_file1(char *);
    void main()
    char * myTempPath=NULL;
    myTempPath=(char *)calloc(100,sizeof(char));
    strcpy(myTempPath,"my_temp_from_exe.txt");
    write_temp_file1(myTempPath);
    myTempPath=NULL;
    void write_temp_file1(char * fileName)
    // first read the file and write another file with same content
    char * line1=NULL;
    char * line2=NULL;
    char * line3=NULL;
    line1=(char *)calloc(100,sizeof(char));
    line2=(char *)calloc(100,sizeof(char));
    line3=(char *)calloc(100,sizeof(char));
    ifstream inf;
    inf.open(fileName,ios::nocreate);
    inf>>line1;
    inf>>line2;
    inf>>line3;
    inf.close();
    ofstream outf;
    strcat(fileName, "1");
    outf.open(fileName);
    outf<<line1<<endl;
    outf<<line2<<endl;
    outf<<line3<<endl;
    outf.close ();
    ==========================
    Can anyone figure out what could be the problem ? I think there is a problem with Library Path or sort of something like that.
    Please help me.
    -- Niranjan

    providing source code for the EXE program doesn't tell your problem.
    You have to be more specific. What is your problem?

  • Problem with executing .exe file

    I am executing a .exe file in sun studio (Web Project) .... but it generate Control Access Exception, File Permission <<ALL FILES>> Denied . But the same command execute with simple java file and in DOS command....
    kindly someone give me help
    Thanks

    You have posted your message on the Sun Java Studio Creator forum. I believe you need to repost your message on a Sun Studio forum. Please see http://developers.sun.com/prodtech/cc/community/index.jsp.

  • Have a problem with display PDF Files!!!!

    When I open a PDF file that takes up to 20 minutes and leaves taken in open AcroRd32.exe process which can not close until you open the requested file, anyone know why this happens?
    ** system Windows XP Pro, Service Pack3, PentiumD 3Ghz,  2GB Ram, 40Gb Disk Free, Acrobat Reader 9.1.0.

    I'm presumably having a similar problem with pdf's in ibook.  It seemed to work fine until about two updates ago.  We're using ipad II's with ibook (latest version as of today) for our board of director's reports.  These are sometimes several hundred pages and password protected pdf's.  Now the more whiney members of the board are *******' at me, so I need to find a solution relatively quickly.  Is there a way to back off the updates?
    What it does.
    When a PDF is chosen to open from the library, ibook open a "blank" file -- showing only the ibook background.
    One can try closing and re-opening the PDF and after three or four times it'll open -- seems to be random.
    These PDFs are created in Adobe Acrobat 9.

  • Problems in downlowding exe files

    in my site there is a button which have action as follows:
    on(release){
    import flash.net.FileReference;
    var listener:Object = new Object();
    listener.onSelect = function(file:FileReference):Void {
    trace("onSelect: " + file.name);
    listener.onCancel = function(file:FileReference):Void {
    trace("onCancel");
    listener.onOpen = function(file:FileReference):Void {
    trace("onOpen: " + file.name);
    listener.onProgress = function(file:FileReference,
    bytesLoaded:Number, bytesTotal:Number):Void {
    trace("onProgress with bytesLoaded: " + bytesLoaded + "
    bytesTotal: " + bytesTotal);
    listener.onComplete = function(file:FileReference):Void {
    trace("onComplete: " + file.name);
    listener.onIOError = function(file:FileReference):Void {
    trace("onIOError: " + file.name);
    var fileRef:FileReference = new FileReference();
    fileRef.addListener(listener);
    var url:String = "
    http://www.tovale.co.il/udiphone.exe";
    if(!fileRef.download(url, "udiphone.exe")) {
    trace("dialog box failed to open.");
    the "udiphone.exe" loaded includes " loadMovie("target"); "
    the target is a jpg picture.
    when executing the exe in my computer it loads the jpg which
    is included in the same folder, with no problem, however when the
    exe is loaded from the site - and saved in a folder which includes
    the jpg file - the picture is not loaded.
    what is the problem?
    Text

    It could be a security Sandbox issue. There are links on the
    download help page to investigate.
    http://livedocs.macromedia.com/flash/8/main/00002210.html

  • Problem in making exe file for java application

    helo,
    i tried to make an windows installer packge for my jar file using advance installer. There is one option for including JRE with this package. i included jre package also.otherwise ,the applicaiton will not work in client side,if java is not installed in his system.
    But the problem is after i make the setup including JRE ,the size of the file become 26mb. So,it took long time to download the application.
    What are the essential jav files we have to include while makes the setup for running the application.I included all the JRE folder itself.
    So the size become heavy. Anybody plz help me solve this
    regards
    jithesh

    Hello, I have the same problem, did you solved it?
    Thanks

  • Problem with displaying flash file in UIX page

    Hi everybody
    I would like to use a flash file (.swf file) above all my UIX pages.
    I want to put falsh file in the UIX template file (.uit file) so that
    when I create pages based on template, it will be shown on the top of all pages .
    Does anybody know if there is a solution for doing this ?
    Which UIX tags can be used ?
    Best Regards
    Navid

    Add tht html namespace like
    <templateDefinition xmlns="http://xmlns.oracle.com/uix/ui" xmlns:ui="http://xmlns.oracle.com/uix/ui" xmlns:html="http://www.w3.org/TR/REC-html40"
    targetNamespace="http://www.example.org"
    Then you can add you flash contents at appropriate place.
    Like
    <html:OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
    WIDTH="100%" HEIGHT="100%">
    <html:PARAM NAME="movie" VALUE="TLT-intro4.swf"></html:PARAM>
    <html:PARAM NAME="quality" VALUE="medium"></html:PARAM>
    <html:PARAM NAME="bgcolor" VALUE="#000000"> </html:PARAM>
    <html:EMBED src="TLT-intro4.swf" quality="medium"
    bgcolor="#000000" WIDTH="100"
    HEIGHT="100"
    TYPE="application/x-shockwave-flash"
    PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
    </html:EMBED>
    </html:OBJECT>
    So you should get your flash working that way. Rest everything is same as getting it work in html.
    Regards,
    Vijay V

  • How to display a .exe file in java applets by avoiding the file downloadbox

    Hi sir,
    I know that in order to display a any file(or)program in java applets you need to use showDocument().Where you cannot use exec() in java applets.
    My problem is that when i use showDocument() to display .exe file.It is showing a file download dialog box.If we click & open only it is opening that .exe file.Here i want to open the .exe file without showing that file download dialog box in java applets.
    Since,i am undergoing a project which involves it,it is quite urgent.pls.do provide the exact code in java applet without showing that file download dialog box.If it can't be done pls. do provide any other possibilities in order to be displayed on the browser.Thank U.
    Regards,
    m.ananthu

    Hi!
    I think you it's better to write a server socket program
    in server and open a socket connection to server socket then
    send exe file content via connection.
    (I guess you know applets only have permission to open socket connection to their code base)
    Bye!

  • Iam  gettin a problem in displaying the HTM file in filechooser please help

    Dear Sir,
    Iam working on swing in my project.In tha iam using file chooser Iam gettin problem in displaying the file of types HTM or HTML it taks if it is htm ot html . in filechooser below files of type will be there in that also its not displaying the files of types HTM or HTML. in the code i used
    filter.addExtension("HTML",True);
    but its not working please any body can help me in solving the problem . If possible send me the piece of code also il be very thankful to you. please ill be waiting for the reply.
    regards,
    surya

    this is what I did:    private void dateiNameHolen()
            // create FileChooser
            final JFileChooser pv_fileChooser = new JFileChooser();
            pv_fileChooser.addChoosableFileFilter(new HTMLFileFilter());
            pv_fileChooser.setSelectedFile(new File(iv_dateiTextField.getText()));
            // open chooser and get selected file
            if (pv_fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
                File lv_datei = pv_fileChooser.getSelectedFile();
                iv_dateiTextField.setText(lv_datei.getPath());
        }It uses my class HTMLFileFilter:import java.io.File;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class HTMLFileFilter extends FileFilter {
        // accept all htm and html
        public boolean accept(File f)
            if (f.isDirectory()) {
                return true;
            String dateiname = f.getPath().toLowerCase();
              if (dateiname != null)
                if (dateiname.endsWith("htm") || dateiname.endsWith("html"))
                    return true;
                else
                    return false;
            return false;
        // description of this filter
        public String getDescription() {
            return "HTML-Dateien (*.htm, *.html)";
    }hope this helps
    koem

  • 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.

  • Published .exe file - Captivate 5

    We recently upgraded from Captivate 3to Captivate 5, with Captivate 3 we published all of our projects as .exe files and never experienced a problem.  However, I just created a project in Captivate 5, published it as a .exe file (tried with both Flash Player 9 and Flash Player 10) and users cannot access the file.  Those of us that have the Captivate 5 application installed on our PCs can open the .exe file without a problem.  However, the users that do not have the Captivate 5 application cannot open it.  All of us have Flash Player 10 installed, therefore, I don't believe it's a problem with the Flash Player.  The error message that they are getting states, "This application has failed to start because the application configuration is incorrect.  Reinstalling the application may fix this problem."
    My project information is as follows:
    Resolution:  800x600
    Slides:  13
    Slides with audio:  0
    Audio quality:  MP3, 96 kbps, 44.100 KHz
    eLearning output:  Acrobat.com
    Display score:  Yes
    Enable Accessibility:  Yes
    Skin:  City Night
    Flash(SWF) size and quality:  Custom
    ActionScript Version:  AS3
    I also published it as an .swf file (with html) and they cannot open the .swf (I believe because they don't have a swiff point player), but could open the .html.  However, the .html doesn't work properly with posting quiz results to acrobat.com. 
    Your help is greatly appreciated, at this point, it's preventing us from using Captivate 5 for anything.
    Nikki

    Hi David,
    I don't understand why Adobe Technical support is still working on a solution .... when one has already been developed and WORKED !!! Unless other people are having a slightly different problem with publisheding as .exe file ??
    Here is the details of the bug I reported on 16th August 2010:
    Feature Request/Bug Report : Bug Report
    Product                    : Captivate
    Product Version            : version 5
    Browser                    : Microsoft Internet Explorer
    Web Server                 :
    Application Server         :
    Database                   :
    Operating System           : Windows XP
    OS version                 : 5.1 SP3
    HTTPREFERRER               : https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=5
    Feedback Report            : ******BUG******
    Captivate 5 Projects published as .exe will not run on Learners computers where Captivate 5 has NOT been installed. When they try to run the .exe file the following message is received: "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem". Learners computers are running on Windows XP
    Steps to reproduce bug:
    1. Start Captivate 5
    2. Create project from project template. Note project template was created in Captivate 5
    3. Project created contains 5 slides, 4 slides are recording slides
    4. Save project
    5. publish project as Windows .exe  6. .exe files runs on computer with Captivate installed
    7. send file to learner (with no Captivate installed) and when the try to run it, the error message appears
    Results: error message received: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem"
    Expected results: .exe file should run eLearning program created with Captivate 5
    Here is the solution (minus the attached file since I can't add files to this forum) I received on 16th August:
    We really appreciate you reporting this issue. The issue has been addressed and I am attaching the fix with this email.
    Please follow the below steps -
    1. Rename the attached 'FakeFlash.txt' file to 'FakeFlash.Exe'.
    2. Go to "<Adobe Captivate 5 Installation Folder>/ExecutablePublish"
    3. Take a backup of 'FakeFlash.Exe' file.
    4. Replace the 'FakeFlash.Exe' with the one renamed in step 1
    5. Launch Captivate, Open the Project, and publish it to Exe
    Let us know if it solved your problem.
    Thanks
    Ravi
    I suggest Adobe Technical Support talk to their colleague, Ravi, for the solution instead of re-developing it. And post it on the Adobe site so everyone has access to it.
    As much as I enjoy particatpating & helping the Captivate community ... I'm sorry I just can not act as you distributor of bug fixes because Adobe can't get their act straight on this MAJOR problem.
    Best Regards, Carol

  • I can download firefox, but when I try to run it, windows 7 asks me to select a program type to run the *.exe file

    I am running windows 7 with IE 10. I want to switch to Firefox as my browser. I am able to download the Firefox Setup 22 0 exe, but when I try to open or run it, windows prompts me to "choose the program you want to use to open this file". This happens with both the Firefox Setup Stub 22 0 exe (274kb) and the Firefox Setup 22 0 exec (21,239Kb). I can't find any program on Windows to run this exe. Same thing happens when I try to run the troubleshooter exe.

    Hello annsboland
    Do you have also problem with others exe files ?
    try to create a new user account in Windows 7 and check it again
    see if the next articles in the links helps to create the new account:
    http://www.bleepingcomputer.com/tutorials/create-new-user-account-in-windows-vista-7/
    http://www.pcadvisor.co.uk/how-to/windows/3326039/how-add-new-user-account-in-windows-7/
    thank you

Maybe you are looking for