Jump to content
Excelsior Forums

fsa

Members
  • Content count

    0
  • Joined

  • Last visited

    Never

Community Reputation

0 Neutral

About fsa

  • Rank
    Newbie
  • Birthday 01/01/01
  1. Do you mean that just compiled executable crashes, or it crashes when you try to execute it after deployment? If after deployment - have you performed Trial Run from within JetPackII when preparing the installation package?
  2. Application hangs during file I/O

    It is strange occurence: I have wrote the next example and it works: ===== import javax.swing.*;? ? import java.awt.*; import java.awt.event.*; import java.io.*; public class HelloSwing { ? ? public static void main(String[] args) { ? ? ? ? JFrame frame = new JFrame("HelloSwing"); ? ? ? ? frame.setSize (350, 350); ? ? ? ? JLabel l = new JLabel("Hello, Swing!", JLabel.CENTER); ? ? ? ? Dimension scrDim = Toolkit.getDefaultToolkit().getScreenSize(); ? ? ? ? int x = (scrDim.width - frame.getSize().width) /2; ? ? ? ? int y = (scrDim.height - frame.getSize().height) /2; ? ? ? ? frame.setLocation(x, y); ? ? ? ? frame.addWindowListener(new WindowAdapter() { ? ? ? ? ? ? public void windowClosing(WindowEvent e) { ? ? ? ? ? ? ? ? System.exit(0); ? ? ? ? ? ? } ? ? ? ? }); ? ? ? ? frame.getContentPane().add(l); ? ? ? ? frame.setVisible(true); ? ? ? ? try { ? ? ? ? ? ? OutputStream out = new FileOutputStream ("a:\\zzz"); ? ? ? ? ? ? byte arr[] = new byte[1024*1024]; ? ? ? ? ? ? out.write(arr); ? ? ? ? ? ? out.close(); ? ? ? ? ? ? l.setText("Done"); ? ? ? ? } catch (Exception e) { ? ? ? ? ? ? e.printStackTrace(); ? ? ? ? } ? ? } } ===== Could you please write a little example to reproduce this problem? *FSA
×