Applet working on JBuilder but not on appletviewer!!!!!

I ve made a keybord.Here some buttons are missing. The user presses the buttons and shapes a word!When the jButton22 is pressed(Comparison button) the applet tells him if the result is true or false and displays an image(imageIcon foruser in jlabel forusers) with the correct result!!The jlabel for users is setVisible(false) and setVisible(true) when the comparison button is pressed and the result is wrong.My problem is that the jlabel works fine in JBuilder but when i run the applet in appletviewer the jlabel forusers isnt showing!!If i minimize and maximize the window then the label appears and from that point is working properly!Any suggestions would be appreciated!Thank you!!
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
public class Applet5 extends Applet {
JLabel frase = new JLabel();
JLabel forusers = new JLabel();
JLabel string = new JLabel();
JLabel message = new JLabel();
JLabel plikt = new JLabel();
JLabel gram = new JLabel();
JLabel sint = new JLabel();
JLabel vrah = new JLabel();
JLabel end = new JLabel();
JLabel dior = new JLabel();
JLabel befforusers = new JLabel();
JLabel[] jLabel = new JLabel[6];
ImageIcon myIcon1 = new ImageIcon((Applet5.class.getResource("drawing/1.jpg")));
ImageIcon myIcon2 = new ImageIcon((Applet5.class.getResource("drawing/2.jpg")));
ImageIcon myIcon3 = new ImageIcon((Applet5.class.getResource("drawing/3.jpg")));
ImageIcon myIcon4 = new ImageIcon((Applet5.class.getResource("drawing/4.jpg")));
ImageIcon myIcon5 = new ImageIcon((Applet5.class.getResource("drawing/5.jpg")));
     ImageIcon foruser1 = new ImageIcon((Applet5.class.getResource("foruser/foruser1.jpg")));
     ImageIcon foruser2 = new ImageIcon((Applet5.class.getResource("foruser/foruser2.jpg")));
     ImageIcon foruser3 = new ImageIcon((Applet5.class.getResource("foruser/foruser3.jpg")));
     ImageIcon foruser4 = new ImageIcon((Applet5.class.getResource("foruser/foruser4.jpg")));
     ImageIcon foruser5 = new ImageIcon((Applet5.class.getResource("foruser/foruser5.jpg")));
    ImageIcon frases1= new ImageIcon((Applet5.class.getResource("frase/frase1.jpg")));
    ImageIcon frases2= new ImageIcon((Applet5.class.getResource("frase/frase2.jpg")));
    ImageIcon frases3= new ImageIcon((Applet5.class.getResource("frase/frase3.jpg")));
    ImageIcon frases4= new ImageIcon((Applet5.class.getResource("frase/frase4.jpg")));
    ImageIcon frases5= new ImageIcon((Applet5.class.getResource("frase/frase5.jpg")));
ImageIcon telos = new ImageIcon((Applet5.class.getResource("end/telos.jpg")));
ImageIcon diorth = new ImageIcon((Applet5.class.getResource("dior/dior.jpg")));
String[] user= new String[6];
JButton jButton1 = new JButton("1..");
JButton jButton2 = new JButton("2..");
JButton jButton3 = new JButton("3..");
JButton jButton4 = new JButton("4..");
JButton jButton5 = new JButton("5..");
JButton jButton21 = new JButton("��������");
JButton jButton22 = new JButton("��������");
JButton jButton23 = new JButton("����������");
JButton jButton24 = new JButton("������� ������");
JButton jButton25 = new JButton("������");
Font f = new Font("Palatino LinoType", Font.PLAIN, 18);
Font g = new Font("TimesRoman", Font.PLAIN, 0);
Font c = new Font("Palatino Linotype",Font.PLAIN, 14);
Font p = new Font("Palatino Linotype",Font.PLAIN, 14);
String s = new String();
int nextLabelToShowIcon = 1;
int l=0;
int current = 0;
int cur = 0;
int str = 1;
FlowLayout flowLayout1 = new FlowLayout();
    public void init() {
      try {
                jbInit();
              catch(Exception e) {
                e.printStackTrace();
     user[1]=new String("82."+"ken"+"62."+"82."+"59."+"77."+"82."+"94."+"ken"+"107"+"127"+"77."+"ken"
         +"151"+"ken"+"1.."+"69."+"107"+"53."+"93."+"59."+"82."+"94."+"ken"+"30."+"1.."+"13."+"82."+"114"
         +"82."+"94.");
      user[2]=new String("1.."+"66."+"23."+"ken"+"74."+"31."+"77."+"ken"+"82."+"ken"+"30."+"62."+"1.."
       +"59."+"82."+"94."+"ken"+"62."+"1.."+"59."+"ken"+"82."+"114"+"62."+"ken"+"1.."+"77."+"ken"+"107"+"59."+"94."
       +"ken"+"1.."+"93."+"77."+"53."+"99."+"82.");
      user[3]=new String("59."+"77."+"2.."+"ken"+"107"+"59."+"ken"+"30."+"ken"+"31."+"74."+"31."+"ken"+"29."
       +"46."+"82."+"107"+"2.."+"ken"+"107"+"82."+"ken"+"82."+"77."+"82."+"74."+"1.."+"ken"+"94."+"82."+"114"
       +"ken"+"13."+"65."+"1.."+"94."+"123"+"53."+"74."+"38."+"107"+"1.."+"59.");
      user[4]=new String("74."+"35."+"1.."+"65."+"127"+"94."+"ken"+"82."+"ken"+"159"+"ken"+"109"+"120"
       +"ken"+"82."+"59."+"62."+"38."+"82."+"120"+"ken"+"107"+"59."+"74."+"2.."+"ken"+"56."+"31."+"93."+"1.."
       +"85."+"82."+"77."+"107"+"2.."+"94.");
jLabel[1] = new JLabel();
jLabel[2] = new JLabel();
jLabel[3] = new JLabel();
jLabel[4] = new JLabel();
jLabel[5] = new JLabel();
jButton1.setPreferredSize(new Dimension(32, 30));
jButton1.setIcon(myIcon1);
jButton1.setFont(g);
jButton1.setVerticalTextPosition(SwingConstants.CENTER);
jButton1.setHorizontalTextPosition(SwingConstants.CENTER);
jButton1.addActionListener(new Applet5_jButton1_actionAdapter(this));
jButton2.setPreferredSize(new Dimension(32, 30));
jButton2.setIcon(myIcon2);
jButton2.setFont(g);
jButton2.setVerticalTextPosition(SwingConstants.CENTER);
jButton2.setHorizontalTextPosition(SwingConstants.CENTER);
jButton2.addActionListener(new Applet5_jButton2_actionAdapter(this));
jButton3.setPreferredSize(new Dimension(32, 30));
jButton3.setIcon(myIcon3);
jButton3.setFont(g);
jButton3.setVerticalTextPosition(SwingConstants.CENTER);
jButton3.setHorizontalTextPosition(SwingConstants.CENTER);
jButton3.addActionListener(new Applet5_jButton3_actionAdapter(this));
jButton4.setPreferredSize(new Dimension(36, 30));
jButton4.setIcon(myIcon4);
jButton4.setFont(g);
jButton4.setVerticalTextPosition(SwingConstants.CENTER);
jButton4.setHorizontalTextPosition(SwingConstants.CENTER);
jButton4.addActionListener(new Applet5_jButton4_actionAdapter(this));
jButton5.setPreferredSize(new Dimension(37, 30));
jButton5.setIcon(myIcon5);
jButton5.setVerticalTextPosition(SwingConstants.CENTER);
jButton5.setHorizontalTextPosition(SwingConstants.CENTER);
jButton5.setFont(g);
jButton5.addActionListener(new Applet5_jButton5_actionAdapter(this));
jButton21.addActionListener(new Applet5_jButton21_actionAdapter(this));
jButton22.addActionListener(new Applet5_jButton22_actionAdapter(this));
jButton23.addActionListener(new Applet5_jButton23_actionAdapter(this));
jButton24.addActionListener(new Applet5_jButton24_actionAdapter(this));
jButton25.addActionListener(new Applet5_jButton25_actionAdapter(this));
frase.setIcon(frases1);
frase.setPreferredSize(new Dimension(750,40));
message.setPreferredSize(new Dimension(220, 30));
befforusers.setPreferredSize(new Dimension(1000,50));
forusers.setIcon(foruser1);
forusers.setPreferredSize(new Dimension(1000,50));
forusers.setVisible(false);
end.setPreferredSize(new Dimension(210,30));
end.setVisible(false);
dior.setIcon(diorth);
dior.setPreferredSize(new Dimension(81,30));
dior.setVisible(false);
plikt.setText("������������");
gram.setText("�������� & ���������� ���������");
sint.setText("����������");
vrah.setText("������������");
message.setFont(p);
plikt.setFont(f);
gram.setFont(c);
sint.setFont(c);
vrah.setFont(c);
string.setVisible(false);
this.setLayout(flowLayout1);
jLabel[1].setPreferredSize(new Dimension(50, 50));
jLabel[2].setPreferredSize(new Dimension(50, 50));
jLabel[3].setPreferredSize(new Dimension(50, 50));
jLabel[4].setPreferredSize(new Dimension(50, 50));
jLabel[5].setPreferredSize(new Dimension(50, 50));
this.add(plikt);
this.add(gram);
this.add(jButton1);
this.add(jButton2);
this.add(jButton3);
this.add(jButton4);
this.add(jButton5);
this.add(dior);
this.add(jButton21);
this.add(jButton22);
this.add(jButton23);
this.add(jButton24);
this.add(jButton25);
this.add(end);
this.add(frase);
this.add(message);
this.add(befforusers);
this.add(forusers);
this.add(jLabel[1]);
this.add(jLabel[2]);
this.add(jLabel[3]);
this.add(jLabel[4]);
this.add(jLabel[5]);
this.add(string);
private void next2(){
if(str==0);
string.setText(user[1]);
if(str==1)
   string.setText(user[2]);
if(str==2)
   string.setText(user[3]);
if(str==3);
string.setText(user[4]);
if(str==4)
   string.setText(user[5]);
str++;
  private void next1(){
    if(cur==0)
  forusers.setIcon(foruser2);
  else if(cur==1)
  forusers.setIcon(foruser3);
  else if(cur==2)
  forusers.setIcon(foruser4);
  else if(cur==3)
  forusers.setIcon(foruser5);
  else if(cur==4)
  forusers.setIcon(foruser6);
    cur++;
  private void next(){
    if(current==0)
frase.setIcon(frases2);
else if(current==1)
frase.setIcon(frases3);
else if(current==2)
frase.setIcon(frases4);
else if(current==3)
frase.setIcon(frases5);
current++;
void jButton1_actionPerformed(ActionEvent e)  {
if (nextLabelToShowIcon == 1)
jLabel[1].setIcon(myIcon1);
else if (nextLabelToShowIcon == 2)
jLabel[2].setIcon(myIcon1);
else if (nextLabelToShowIcon == 3)
jLabel[3].setIcon(myIcon1);
else if (nextLabelToShowIcon == 4)
jLabel[4].setIcon(myIcon1);
else if (nextLabelToShowIcon == 5)
jLabel[5].setIcon(myIcon1);
s = s + jButton1.getText();
nextLabelToShowIcon++;l++; jButton21.setVisible(true); dior.setVisible(false);
void jButton2_actionPerformed(ActionEvent e)  {
if (nextLabelToShowIcon == 1)
jLabel[1].setIcon(myIcon2);
else if (nextLabelToShowIcon == 2)
jLabel[2].setIcon(myIcon2);
else if (nextLabelToShowIcon == 3)
jLabel[3].setIcon(myIcon2);
else if (nextLabelToShowIcon == 4)
jLabel[4].setIcon(myIcon2);
else if (nextLabelToShowIcon == 5)
jLabel[5].setIcon(myIcon2);
s = s + jButton2.getText();
nextLabelToShowIcon++;l++; jButton21.setVisible(true); dior.setVisible(false);}
void jButton3_actionPerformed(ActionEvent e)  {
if (nextLabelToShowIcon == 1)
jLabel[1].setIcon(myIcon3);
else if (nextLabelToShowIcon == 2)
jLabel[2].setIcon(myIcon3);
else if (nextLabelToShowIcon == 3)
jLabel[3].setIcon(myIcon3);
else if (nextLabelToShowIcon == 4)
jLabel[4].setIcon(myIcon3);
else if (nextLabelToShowIcon == 5)
jLabel[5].setIcon(myIcon3);
s = s + jButton3.getText();
nextLabelToShowIcon++;l++; jButton21.setVisible(true); dior.setVisible(false);}
void jButton4_actionPerformed(ActionEvent e)  {
if (nextLabelToShowIcon == 1)
jLabel[1].setIcon(myIcon4);
else if (nextLabelToShowIcon == 2)
jLabel[2].setIcon(myIcon4);
else if (nextLabelToShowIcon == 3)
jLabel[3].setIcon(myIcon4);
else if (nextLabelToShowIcon == 4)
jLabel[4].setIcon(myIcon4);
else if (nextLabelToShowIcon == 5)
jLabel[5].setIcon(myIcon4);
s = s + jButton4.getText();
nextLabelToShowIcon++;l++; jButton21.setVisible(true); dior.setVisible(false);}
void jButton5_actionPerformed(ActionEvent e)  {
if (nextLabelToShowIcon == 1)
jLabel[1].setIcon(myIcon5);
else if (nextLabelToShowIcon == 2)
jLabel[2].setIcon(myIcon5);
else if (nextLabelToShowIcon == 3)
jLabel[3].setIcon(myIcon5);
else if (nextLabelToShowIcon == 4)
jLabel[4].setIcon(myIcon5);
else if (nextLabelToShowIcon == 5)
jLabel[5].setIcon(myIcon5);
s = s + jButton5.getText();
nextLabelToShowIcon++;l++; jButton21.setVisible(true); dior.setVisible(false);}
void jButton21_actionPerformed(ActionEvent e) {
if(nextLabelToShowIcon>1){
jLabel[l].setIcon(null);
s = s.substring(0, s.length()-3);
l = l - 1;
nextLabelToShowIcon = nextLabelToShowIcon - 1;}
else{
jButton21.setVisible(false);
dior.setVisible(true);
l=0;
s="";
nextLabelToShowIcon=1;}
void jButton22_actionPerformed(ActionEvent e) {
if(s.length()>0){
    if (s.equals(user[str])) {
      message.setText("������ ����� �����");
    else {
      forusers.getIcon();
      forusers.setVisible(true);
      befforusers.setVisible(false);
      message.setText("�����. � ����� ������� ����� : ");
repaint();
jButton1.setDisabledIcon(myIcon1);
jButton2.setDisabledIcon(myIcon2);
jButton3.setDisabledIcon(myIcon3);
jButton4.setDisabledIcon(myIcon4);
jButton5.setDisabledIcon(myIcon5);
jButton1.setEnabled(false);
jButton2.setEnabled(false);
jButton3.setEnabled(false);
jButton4.setEnabled(false);
jButton5.setEnabled(false);
jButton21.setEnabled(false);
void jButton23_actionPerformed(ActionEvent e) {
dior.setVisible(false);
jButton21.setEnabled(true);
jButton21.setVisible(true);
s="";
l=0;
nextLabelToShowIcon=1;
message.setText("");
befforusers.setVisible(true);
forusers.setVisible(false);
jLabel[1].setIcon(null);
jLabel[2].setIcon(null);
jLabel[3].setIcon(null);
jLabel[4].setIcon(null);
jLabel[5].setIcon(null);
  jButton1.setEnabled(true);
  jButton2.setEnabled(true);
  jButton3.setEnabled(true);
  jButton4.setEnabled(true);
  jButton5.setEnabled(true);
void jButton24_actionPerformed(ActionEvent e) {
jButton21.setVisible(true);
jButton21.setEnabled(true);
dior.setVisible(false);
nextLabelToShowIcon=1;
  jButton1.setEnabled(true);
  jButton2.setEnabled(true);
  jButton3.setEnabled(true);
  jButton4.setEnabled(true);
  jButton5.setEnabled(true);
  jButton6.setEnabled(true);
l=0;
befforusers.setVisible(true);
forusers.setVisible(false);
next1();
next();
next2();
s="";
message.setText("");
jLabel[1].setIcon(null);
jLabel[2].setIcon(null);
jLabel[3].setIcon(null);
jLabel[4].setIcon(null);
jLabel[5].setIcon(null);
void jButton25_actionPerformed(ActionEvent e) {
public void paint(Graphics g) {
super.paint(g);}
private boolean isStandalone = false;
public String getParameter(String key, String def) {
  return isStandalone ? System.getProperty(key, def) :
  (getParameter(key) != null ? getParameter(key) : def);
private void jbInit() throws Exception {
    public String getAppletInfo() {
      return "Applet Information";
  public String[][] getParameterInfo() {
    return null;
  public static void main(String[] args) {
    Applet5 applet = new Applet5();
    applet.isStandalone = true;
    Frame frame = new Frame();
    frame.add(applet, BorderLayout.CENTER);
    applet.init();
    applet.start();
    frame.setSize(450,400);
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
    frame.setVisible(true);
    frame.setResizable(false);
class Applet5_jButton1_actionAdapter
implements java.awt.event.ActionListener {
Applet5 adaptee;
Applet5_jButton1_actionAdapter(Applet5 adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
class Applet5_jButton2_actionAdapter
implements java.awt.event.ActionListener {
Applet5 adaptee;
Applet5_jButton2_actionAdapter(Applet5 adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton2_actionPerformed(e);
class Applet5_jButton3_actionAdapter
implements java.awt.event.ActionListener {
Applet5 adaptee;
Applet5_jButton3_actionAdapter(Applet5 adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton3_actionPerformed(e);
class Applet5_jButton4_actionAdapter
implements java.awt.event.ActionListener {
Applet5 adaptee;
Applet5_jButton4_actionAdapter(Applet5 adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton4_actionPerformed(e);
class Applet5_jButton5_actionAdapter
implements java.awt.event.ActionListener {
Applet5 adaptee;
Applet5_jButton5_actionAdapter(Applet5 adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton5_actionPerformed(e);
class Applet5_jButton21_actionAdapter
implements java.awt.event.ActionListener {
Applet5 adaptee;
Applet5_jButton21_actionAdapter(Applet5 adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton21_actionPerformed(e);
class Applet5_jButton22_actionAdapter
implements java.awt.event.ActionListener {
Applet5 adaptee;
Applet5_jButton22_actionAdapter(Applet5 adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton22_actionPerformed(e);
class Applet5_jButton23_actionAdapter
implements java.awt.event.ActionListener {
Applet5 adaptee;
Applet5_jButton23_actionAdapter(Applet5 adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton23_actionPerformed(e);
class Applet5_jButton24_actionAdapter
implements java.awt.event.ActionListener {
Applet5 adaptee;
Applet5_jButton24_actionAdapter(Applet5 adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton24_actionPerformed(e);
class Applet5_jButton25_actionAdapter
implements java.awt.event.ActionListener {
Applet5 adaptee;
Applet5_jButton25_actionAdapter(Applet5 adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton25_actionPerformed(e);
}

I performed some testing on your program, and get an ArrayIndexOutOfBoundsException on one of the buttons. So, I guess there have to be some implementation logic error.
Since I have no idea what your program is trying to achieve, here's what you can do:
1. Try to shorten your program.
2. Add your code piece by piece.
3. Perform some logic testing.
4. Repeat steps 2 & 3.

Similar Messages

  • NavURL  works in IE6 but not in appletviewer

    The samplecode "NavURL.java" works fine with IE but not with appletviewer.
    When you run in IE you get a list with URL-addresses, when you mark one of them and click a button(load doc), a new window is opened with the specific website.
    In appletviewer, the new window isn't opened. What might be wrong? What shall I do?

    AppletViewer isn't a browser so probably won't support things like redirecting to HTML pages or opening new windows (although I must admit I've not used it for a couple of years now).
    It's only really there to provide a runtime environment for Applets like you'd find in a browser. Noone's going to run your Applet in AppletViewer anyway - they'll all use a browser - so if it works in browsers then it's good enough.
    Hope this helps.

  • Applets work in NS but not in IE

    Hello,
    I would very much appreciate tips on setting up sun java so that I can make applets that work in IE.
    Now, my IE have no problems with applets found on the web, for example this one is ok:
    http://java.sun.com/applets/jdk/1.1/demo/Animator/example1.html
    But, the examples installed with j2sdk1.4.1_07 will only work in Netscape. In IE these applets just display a grey applet area. (IE6/XP and IE5.5/Win98)
    So far:
    Have read installations instruction and ReadMe files. Installed j2sdk1.4.1_07, added PATH, code compiles fine. Console programs work ok. I also compiled a Hello World applet, which also worked in NS, but not in IE.
    Any help greatly appreciated.

    Me again...
    Right... Maybe I am answering my own question here? It seems that the programs compiled with j2sdk1.4.1_07 will NOT run under the JVM 1.1.4 from Microsoft Corp?
    So, anything that I compile with the later sun package will most likely fail on IE browsers unless the user have upgraded their JVMs?
    If so, then what version of Sun Java can be recommended to achieve reasonable amount of compatibility with the IE5.5 and IE6 that are out there?

  • Applet works in Netscape but not IE

    Very basic Hello World applet. IT doesn't work in IE 6. Not sure why.
    html source:
    <html>
    <body>
    <applet code="test.class" Width=640 Height=480></applet>
    </body>
    </html>
    Anyone know why?

    I do have java runtime installed. I used java SDK 1.4.1. What runtime do I need installed for applets made with this version of java? I have the 1.4.1 runtime installed. It doesn't make sense to me that it would work in Netscape but not Internet Explorer. Any help would be great. Thax

  • Applet works on Netscape6 but not on IE nor Navigator either

    My applet works just fine on Netscape 6 but not on IE 5.50 nor on Navigator 4.72.
    My applet is a shopping check, so what I do is add a new row to the check every time the client adds a new item, but the row doesn't display on IE or Navigator.
    I added resize(int,int) after I added the row to the check, and that worked for Netscape 6, but even though I also added repaint(), that's not working for the other 2 surfers.
    Thanx for any help in advance

    IE won't allow you to resize the Applet by making it bigger. It will not show the new area. Thank Microsoft for your problems... Netscape 6 is new, so probably IE 6 will also support this??

  • Applet working on local but not online

    my applet working on local machine fine
    but when i upload applet on my website
    and access by my machine only interface
    show and when i click the button of applet
    no result produce....
    thankx

    It is only possible if you missed something for code or codebase attribute of Applet tag, I mean values for these attributes are fine for your local machine but not with the server you are using.

  • Applet work in IE but not in Netscape 4.01

    Hi,
    My applet work fine in IE. However, when it runs in Netscape 4.01, a securityException is caught. What should I do?
    Best regards
    From Hoifo

    What should I do?Give us the stack trace and VM versions. You aren't using the plugin?
    scenario: NN's VM is missing a class that IE's VM has. NN's classloader tries then to find it from the server but it can't of course find it, possibly resulting in a SecurityException. (A ClassNotFound should be more probable in that case, though)

  • Applet works in IDE but not in browser

    I have an applet that is supposed to read some data through COM port. Problem is that altough it works well in Eclipse IDE it fails without error in browser. It stops working in the point where its supposed to create instance of class that deals with reading data from COM port. I have signed applet with selfmade certificate but it didnt make any difference.

    By "stops working" i mean that it never reaches next line. I put one print before and one print after the line with problem and it only prints out first line. No error is shown and try-catch also doesnt help. Is it possible that there is some sort of debug mode for applets i need to enable to see errors?
    EDIT: Works now. Looks like my applet was unable to load external library when ran outside of IDE. Still dont know why i didnt get any error messages about it.
    Edited by: 816393 on Nov 29, 2010 7:00 AM

  • Applet Works in Eclipse but not Online?

    I've got everything working in eclipse but now when I uploaded it to unix it wouldn't run. Any ideas? I chmod 664 all the java and class files. It won't print to the TextArea for some reason when I uploaded it.
    Here is my source
    http://www2.hawaii.edu/~akinsey/CD.java
    http://www2.hawaii.edu/~akinsey/CDStorage.java
    http://www2.hawaii.edu/~akinsey/CDStorage.html
    That will all compile and run in eclipse but doesn't work online :(

    If it runs in Eclipse, but not when deployed, the problem is probably classpath or security related. This is why those of us who use Eclipse in real production work, rarely use its builds. I always build with ANT and never run from within Eclipse. I alway use what Eclipse calls an "Externally Launched Server".

  • Applet works on eclipse but not on reg browser (not inited error)

    Hi everybody,
    I've just made an applet, but I don't know why it can't be shown. I'm working with Eclipse, and when I run the .java file, everything works fine. It even works fine when I specify parameters through the eclipse build file parameter arguments.
    Now I would like this to work by using the appletviewer and my html file. When I do this, the application doesn't work anymore and I get this error: Start applet not inited and shows loading java Applet failed when I scroll over to the java applet box on the browser. (Mozilla)
    I used this code in the html file:
    <html>
    <head>
    <title>MicroToolBus Example Plugin Applet 2 </title>
    </head>
    <body>
    <h1>MicroToolBus Example Plugin Applet 2 </h1>
    <hr>
    <applet code =MicroToolBus.class width=400 height=100>
    <param name="ModelName" value="edu.vt.vbi.pathport.client.plugin.microarray.MicroarrayModel">
         <param name="DataLocation" value="c:/eclipse/workspace/PathPort/xml/samples/mageml/pmml.xml">
    </applet>
    </hr>
    </body>
    </html>
    which is located at
    C:\eclipse\workspace\PathPort\build\edu\vt\vbi\pathport\client\toolbus\MicroToolBus.html
    The MicroToolBus.class file is located in the same directory. What am I doing wrong. I tried putting the class file and the html in the same directory as the actual .java file of the applet, but that didn't seem to work either. Thanks in advance; your help and suggestions are much appreciated,

    What am I doing wrong?Your getting caught in the Sun/Microsoft war. Numerous casualties. For rehab, see:
    http://www.MartinRinehart.com
    Click "Articles", "Launching Applets".
    Warning: make a big mug of java before you start. This is not trivial stuff.

  • Applet works in JDeveloper, but not when deployed to OC4J

    I am working on an applet version of the BI Beans java client application. It works fine when running in JDeveloper (applet viewer), but fails when deployed to OC4J. The applet shows a red X, with a message in the status bar saying "Loading Java Applet Failed...". Contents of java console are as follows:
    java.lang.NoClassDefFoundError: oracle/dss/selection/step/Step
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         at java.lang.Class.getConstructor0(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Any one have any ideas how to chase this one down?
    Here is the message that JDeveloper shows when it runs the applet. I have gone thru this and ensured that all these references are selected in my .deploy settings:
    C:\JDeveloper\jdk\bin\javaw.exe -ojvm -Xbootclasspath/a:C:\dev\jdev\Workspace1\TestClientApp\classes;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biaddinsrt.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biamlocal.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bicmn.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidataclt.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidatacmn.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidatasvr.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biext.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bipres.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bidata-nls.zip;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bipres-nls.zip;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\bicmn-nls.zip;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\biaddins-nls.zip;
    C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\LW_PfjBean.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\share.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\jewt4.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\jlib\jewt4-nls.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\infobus\lib\infobus.jar;
    C:\JDeveloper\BC4J\lib\bc4jmt.jar;C:\JDeveloper\BC4J\lib\collections.jar;
    C:\JDeveloper\BC4J\lib\bc4jct.jar;
    C:\JDeveloper\lib\xmlparserv2.jar;
    C:\JDeveloper\jlib\jdev-cm.jar;
    C:\JDeveloper\j2ee\home\lib\jndi.jar;
    C:\JDeveloper\jlib\regexp.jar;
    C:\JDeveloper\jlib\share.jar;
    C:\JDeveloper\jlib\uix2.jar;
    C:\JDeveloper\jdbc\lib\classes12.jar;
    C:\JDeveloper\jdbc\lib\nls_charset12.jar;
    C:\JDeveloper\j2ee\home\lib\ojsp.jar;
    C:\JDeveloper\j2ee\home\jsp\lib\taglib\ojsputil.jar;
    C:\JDeveloper\j2ee\home\oc4j.jar;
    C:\JDeveloper\j2ee\home\lib\servlet.jar;
    C:\JDeveloper\jdev\lib\ojc.jar;
    C:\JDeveloper\jdev\lib\ext\..\..\..\bibeans\lib\olap_api_92.jar;
    C:\JDeveloper\jdev\lib\jdev-rt.jar;
    C:\JDeveloper\BC4J\lib\bc4jhtml.jar;
    C:\JDeveloper\BC4J\lib\datatags.jar;
    C:\JDeveloper\BC4J\lib\bc4juixtags.jar;
    C:\JDeveloper\BC4J\lib\bc4j_jclient_common.jar
    Any assistance would be appreciated.
    s.l.

    i have the same problem
    i cant load my applet on OC4J , i am wondering know how Oracle canot solve this problem

  • Database connection in applet works in Netscape but not in IE

    Hello,
    we have an applet which connects through an jdbc:odbc connection to an Access database.
    When we run it in Netscape 4.7, the applet connects to the database and finds records. When we run it in IE (5.5), we get an error.
    Haven't completely figured out where, but most likely when we try to get the connection:
    con = DriverManager.getConnection(url, "loginname", "password");
    We end up in the catch block.
    Any suggestions what the problem could be?
    TIA
    Gunter

    Can u send me code and let me see.
    Tell me all specification which Access driver you are using and which DSN you are using.
    Let me know i know i can help u out.

  • OS X, Load .dylib form applet, works in Chrome but not in Safari

    In safari I get this error:
    java.lang.UnsatisfiedLinkError: /Library/Application Support/XXXXX/libXXXX.dylib: dlopen(/Library/Application Support/XXXXX/libXXXX.dylib, 1): no suitable image found.  Did find:
      /Library/Application Support/XXXXX/libXXXX.dylib: open() failed with errno=1
    I have verified that both browsers are using the same version of Java. I've tried using a 32 and a 64 bit version of the .dylib. In Chrome the 64 bit versions works fine. In Safari, both 32 and 64 fail to load.
    There are no errors saying it is security related.
    Anyone have any ideas on how to make it load in Safari?
    Thanks!

    In safari I get this error:
    java.lang.UnsatisfiedLinkError: /Library/Application Support/XXXXX/libXXXX.dylib: dlopen(/Library/Application Support/XXXXX/libXXXX.dylib, 1): no suitable image found.  Did find:
      /Library/Application Support/XXXXX/libXXXX.dylib: open() failed with errno=1
    I have verified that both browsers are using the same version of Java. I've tried using a 32 and a 64 bit version of the .dylib. In Chrome the 64 bit versions works fine. In Safari, both 32 and 64 fail to load.
    There are no errors saying it is security related.
    Anyone have any ideas on how to make it load in Safari?
    Thanks!

  • Little Mailprogramm works in JBuilder but do not work with a JAR File

    Hallo !
    The application works in JBuilder, but if I make an archive it dont work. If have included "JavaMail" and "JavaBeans Activation Framework". (same as in the JBuilderProject)
    The Error Message is:
    class javax.mail.MessegingException: IOException while sending message; nested exception is:
    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
    at javax.mail.Transport.send0
    at javax.mail.Transport.send
    I have other applications which work on JBuilder an as Jar-File, but why this application not ?
    I have JBuilderProfessional in use.
    Are there some licenceproblems with "JavaBeans Activation Framework".
    Please help me.
    Thank you !
    Wolfgang

    I think I have found a solution here:
    http://forum.java.sun.com/thread.jsp?thread=74127&forum=43&message=519108

  • Custom F4 help in a BSP application working in Mozilla but not in IE

    Hi,
    I have created a custom F4 help in a BSP application.
    It is working in Mozilla but not in IE. I tried enabling javascript as well but still it is not working.
    Can someone please suggest a possible solution for this?

    Hi,
    See simmilar discussion in thread /thread/1883519 [original link is broken]
    I think this may be helpful for you.
    Thanks,
    Chandra

Maybe you are looking for

  • Unable to load DLL after Impersonating (0x80070542)

    I have an application that prompts a user for credentials and impersonates the user before taking some action on that user's behalf.  However, when I try to call some framework methods that require .NET to load a native DLL, the call fails with the f

  • Problems Engineering Surrogate Primary Key with Unique Key

    SDDM 3.3.0.747 with 2 problems (at least so far).  I am hoping that the problem is with this SDDM rookie and I have overlooked some setting. PROBLEM 1 I don’t want to start a religious debate about surrogate vs. natural keys but I am having a problem

  • Memory Leak in 10.4.7

    Question for all you Mac "Guru's" out there. I have an Imac (intel) with 2 512MB Memory Sticks and Have Noticed that there appears to be a memory leak in the OS. After several staggering hours It seems that the culprit is WindowServer and kernal_task

  • Palm Desktop will not update with Data after HotSync

    All: Palm Centro Windows Vista Desktop v6.2.2.  HotSynch Manager 7.0.2.2. I have a Palm Centro with Windows Vista.  Everytime I HotSync, some of the Desktop items (Calendar, Contacts, Etc.) are updated.  I uploaded Palm Desktop so it is the latest ve

  • IPhoto libraries - did I delete one of my two, or can it be recovered?

    I moved my old iPhoto library to my new computer, hoping to combine the two (I want to access both on one computer, and be able to sync albums from both onto my iPad and iPhone). I relaunched iPhoto with the new library, but now I can't find the old