|
-
Dec 17th, 2008, 06:34 AM
#1
Thread Starter
New Member
Unable to start runtime due to invalid configuration ?
Hello,
I want to run my applet on Jbuilder, but if i run this application i get the following error :
Unable to start runtime due to invalid configuration
this is my code what i run :
package untitled2;
import java.awt.*;
import java.awt.event.*;
import java.applet.Applet;
public class Untitled1 extends Applet implements ActionListener {
TextField invoer;
Button plus, min;
int getal; // het ingelezen getal
// Plaats de grafische componenten
public void init() {
plus = new Button("Verhoog");
min = new Button("Verminder");
invoer = new TextField( 5 );
add( plus );
add( invoer);
add( min);
plus.addActionListener(this);
invoer.addActionListener(this);
min.addActionListener(this);
}
// Verwerk de events
public void actionPerformed ( ActionEvent e) {
// Stap1: Als plus-Voorraad dan verhoog getal met 1
if (e.getSource() == plus) {
// Stap2: increment
getal++;
}
// Stap3: Als min-Voorraad dan verlaag getal met 1
if (e.getSource() == min) {
// Stap4: decrement
getal--;
}
// Stap5: Als enter-toets dan lees en converteer getal
if (e.getSource() == invoer)
getal= Integer.parseInt( invoer.getText() );
// Stap6: schrjf getal in het textField invoer
invoer.setText(Integer.toString(getal));
}
}
Please help me
-
Dec 17th, 2008, 08:57 AM
#2
Re: Unable to start runtime due to invalid configuration ?
"Unable to start runtime due to invalid configuration" is a JBuilder specific error, not a Java error
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Dec 17th, 2008, 09:17 AM
#3
Thread Starter
New Member
Re: Unable to start runtime due to invalid configuration ?
What can i do about it then . I tryed on 2 versions of Jbuilder the same problem
-
Dec 17th, 2008, 09:39 AM
#4
Re: Unable to start runtime due to invalid configuration ?
Perhaps asking in a JBuilder form would be a good idea. Or even better, don't use JBuilder at all
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|