Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2008, 08:33 AM
Member
 
Join Date: Feb 2008
Posts: 1
Jjava is on a distinguished road
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
Sponsored Links
Reply


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

vB 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 12:48 PM
Compiling and running code in runtime tim New To Java 4 01-27-2008 08:58 PM
Running a application in java barney Java Applets 1 08-07-2007 09:12 AM
problem with a simple java code boy22 New To Java 2 08-03-2007 04:46 AM
Running java classes with XML ai_2007 Advanced Java 1 06-29-2007 05:20 PM


All times are GMT +3. The time now is 04:43 AM.


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