Results 1 to 5 of 5
- 03-09-2011, 10:48 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 3
- Rep Power
- 0
Cannot Run my ready to program java code on Ubuntu 10.10 i386 desktop
import java.awt.*;
import hsa.Console;
public class test
{
static Console c;
public static void main (String[] args)
{
c = new Console ();
c.print ("YEAH!!! it works");
}
}
this is what i have ... but when i press the run button it says execution finished..
its suppose to make a console pop up displaying "YEAH!!! it works"
but it doesn't ... so can anyone help out here .....(ps. i am running Ubuntu 10.10 desktop i386 and i also downloaded Wine too....)
- 03-09-2011, 10:53 PM #2
Senior Member
- Join Date
- Jan 2011
- Location
- Belgrade, Serbia
- Posts
- 227
- Rep Power
- 3
I am not sure for ubuntu, how did you run this code? with open console or from jdk or?
- 03-09-2011, 10:57 PM #3
Member
- Join Date
- Mar 2011
- Posts
- 3
- Rep Power
- 0
yeah .... i ran this code with the hsa Console
it worked fine back at school (windows xp)
- 03-09-2011, 11:11 PM #4
Senior Member
- Join Date
- Jan 2011
- Location
- Belgrade, Serbia
- Posts
- 227
- Rep Power
- 3
Try to add some Thread.sleep(5000) that pauses execution of your code and gives your code enough time to display a message
Last edited by milovan; 03-09-2011 at 11:14 PM.
- 03-09-2011, 11:30 PM #5
Member
- Join Date
- Mar 2011
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
hi i need help with adding the total in this java ready to program IDE.
By cold in forum New To JavaReplies: 1Last Post: 03-29-2010, 01:07 AM -
Error: could not open `C:\Program Files\Java\jre6\lib\i386\jvm.cfg'
By javastuden in forum New To JavaReplies: 1Last Post: 01-13-2010, 05:58 AM -
[SOLVED] Ready to Program Java IDE
By Starr29 in forum New To JavaReplies: 9Last Post: 07-24-2009, 05:21 PM -
Ready to Program Java IDE Problem #4
By Starr29 in forum New To JavaReplies: 5Last Post: 01-06-2009, 03:38 PM -
[SOLVED] Ready to Program Java IDE Problem #2
By Starr29 in forum New To JavaReplies: 2Last Post: 01-03-2009, 01:02 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks