LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-20-2005, 10:28 PM   #1
k1ll3r_x
Member
 
Registered: Sep 2004
Location: Laredo, TX
Distribution: Slackware 11.0 [both lap & pc] WinXP
Posts: 164

Rep: Reputation: 30
Javac not included?


I run slackware 10.1 and right now i wrote some little basic java program, and well, when i try to compile, it says javac is not a recognized command, the bash kicks in, does Slackware10.1 even include javac compiler? is there anyway i could check, or make it work? id really appreciate some help
-Jerry
 
Old 08-20-2005, 10:40 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
i think it includes the gcj
 
Old 08-20-2005, 10:45 PM   #3
k1ll3r_x
Member
 
Registered: Sep 2004
Location: Laredo, TX
Distribution: Slackware 11.0 [both lap & pc] WinXP
Posts: 164

Original Poster
Rep: Reputation: 30
what does this mean?
Code:
root@virtz:~/Java# gcj Remainder.java
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status
for some reason it doesnt compile it, and i doubt i have errors
 
Old 08-20-2005, 10:51 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
iv never used linux to make java programs so i dont know the compiler software... read this link which i found on the official site. scroll down to "Compiling a Java Program with GCJ". that should be it.

Last edited by nadroj; 08-20-2005 at 10:58 PM.
 
Old 08-20-2005, 10:58 PM   #5
k1ll3r_x
Member
 
Registered: Sep 2004
Location: Laredo, TX
Distribution: Slackware 11.0 [both lap & pc] WinXP
Posts: 164

Original Poster
Rep: Reputation: 30
nvm i got it to work, im suppossed to do
Code:
root@virtz:~/Java# gcj -C Remainder.java
Thank you
-Jerry
 
Old 08-20-2005, 11:00 PM   #6
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
***********************
its HIGHLY recommended you DO NOT LOG IN AS ROOT for normal activities such as making sfotware. log into your computer as a normal user and _ONLY_ use the root account for system administration
***********************
 
Old 08-21-2005, 02:31 AM   #7
LiNuCe
Member
 
Registered: Apr 2004
Location: France
Distribution: Slackware Linux 10.2
Posts: 119

Rep: Reputation: 15
Re: Javac not included?

Quote:
k1ll3r_x : (...) does Slackware10.1 even include javac compiler? is there anyway i could check, or make it work?
You can use the Package Browser to search files or packages provided with Slackware Linux.

-- LiNuCe
 
Old 08-21-2005, 05:45 AM   #8
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
The Java SDK has been moved into /extra (2nd or 3rd CD, can't remember which), install it from there.
 
Old 08-21-2005, 07:30 AM   #9
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Rep: Reputation: 30
Yeah, Java SDK Slackware package can be found here:

http://slackware.it/en/pb/browse.php...j2sdk-1.5.0_01

Default in Slackware is Java Runtime, not the SDK.
 
  


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
javac not found rchillal Linux - Newbie 7 02-07-2005 09:15 AM
javac zaicheke Programming 2 10-05-2004 10:46 PM
classpath of javac raj_verma Programming 1 07-27-2004 04:16 AM
javac linuxRules Linux - General 3 05-23-2002 07:45 AM
javac linuxRules Linux - General 0 05-21-2002 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:41 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