Hi all,

I'm new to the personal java application environment. I havewritten a small Hello application, but when i tried to run the Hello example it is giving KERN-EXEC reason 3.what might be the problem . Here i'm pasting the code snippet and the sequence of steps I followed.


import java.awt.*;
import java.awt.event.*;
public class Hello extends Frame implements ActionListener
{

public static void main(String[] args)
{
Hello hi = new Hello();
}

Hello()
{
Label lab = new Label("Hello world");
Button but = new Button("Dismiss");
Button play = new Button("play");
but.addActionListener(this);
play.addActionListener(this);
addWindowListener(new Goodbye());
setLayout(new GridLayout(2, 1, 10, 10));
add(lab);
add(but);
add(play);
pack();
show();
}

public void actionPerformed(ActionEvent e)
{
Runtime r=Runtime.getRuntime();
try {
Process p=r.exec("sound.au"); // i studid some where that it will invoke the native audio player when we call like this
}catch(Exception ee)
{
ee.printStackTrace();
}
}
private class Goodbye extends WindowAdapter
{
public void windowClosing(WindowEvent e)
{
System.out.println("Goodbye");
System.exit(0);
}
}
}

steps followed
---------------------


1) Installed the nokia 9200 pjava SDk.
2) mapped the _epoc_drive_j to D:\Symbian\6.0\NokiaJava\erj\
3) created a folder Hello and copied the Hello.java program that is attached with the mail in to that.
4) compiled the classes with javac - target 1.1 Hello.java. this created three class files.
5) created a jar file.
6) run the application with the command
>D:\Symbian\6.0\NokiaJava\Epoc32\Release\wins\urel\pjava -cp j:\Hello\Hello.jar Hello

emulator is lanched but it is showing extras desktop. but not my application. what might be the problem. please help me.

thanks in advance,

Sridhar Reddy,