Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2008, 07:33 AM
Member
 
Join Date: Feb 2008
Posts: 1
Rep Power: 0
Jjava is on a distinguished road
Default problem while running java code..
Hi friends,
i have written a simple hello world java code.. and compiling the code with GCJ like this
gcj --main test -o test test.java

my code test.java is
class test
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}


and while compiling also it is not giving any problem
the gcj is built for ARM using GCC 4.0.1 so my actual compiling statement is
arm-unknown-linux-gnu-gcj --main -test -o test test.java
and it generates executable test
when i run ./test
it is not printing Hello World! and also not giving any error or warnings
Please help me to resolve this problem...
whether i need some prerequisits for running this code.. some packages i need to install ? or do i need sun-java-jre for this..
i am using debian linux
thanks...
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
jsp running problem bharanikumariyerjava JavaServer Pages (JSP) and JSTL 1 03-29-2008 11:48 AM
Compiling and running code in runtime tim New To Java 4 01-27-2008 07:58 PM
Running a application in java barney Java Applets 1 08-07-2007 08:12 AM
problem with a simple java code boy22 New To Java 2 08-03-2007 03:46 AM
Running java classes with XML ai_2007 Advanced Java 1 06-29-2007 04:20 PM


All times are GMT +2. The time now is 09:27 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org