LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2009, 03:17 AM   #1
sambasivarao
LQ Newbie
 
Registered: Sep 2009
Location: Hyderabad
Posts: 1

Rep: Reputation: 0
java compilation in Suse Linux


Dear friends

when i try to compile a basic java program in suse linux i am getting a message like this:

sambasivarao@linux-skyl:~/Desktop> javac Test.java
/usr/lib/gcc/i586-suse-linux/4.3/../../../crt1.o: In function `_start':
/usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status

------------
Can anyone plz help me. Thanks in advance
 
Old 09-24-2009, 03:49 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by sambasivarao View Post
Dear friends

when i try to compile a basic java program in suse linux i am getting a message like this:

sambasivarao@linux-skyl:~/Desktop> javac Test.java
/usr/lib/gcc/i586-suse-linux/4.3/../../../crt1.o: In function `_start':
/usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status

------------
Can anyone plz help me. Thanks in advance
This error message can be caused by trying to compile using the open-source version of Java. Download the Java runtime engine from here and try again.

If the problem persists, give us the output of:

Code:
$ java -version
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Script for Java package compilation manolakis Programming 1 04-02-2009 08:44 AM
SuSe Linux 9.0 proffessional kernel compilation des_a Linux - Kernel 1 09-18-2006 02:18 AM
Java compilation path Azzath Programming 4 02-02-2005 07:35 PM
Compilation error when including <linux/ext3_fs.h> in SuSE Linux 9.0 (i586) seshasai Linux - Distributions 0 06-01-2004 04:22 AM
Java compilation problem JIV Programming 1 06-02-2003 11:39 AM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration