Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 29th, 2008, 12:41 AM
coolzfriend coolzfriend is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 4 coolzfriend User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m
Reputation Power: 0
Can we compile java prog without javac

I have an already setup enviironment for java in ubuntu..
but when i compile a java prog it says
bash: jaavc command not found.

I edited my /etc/profile and /etc/bash.bashrc....but no use

I have a jre not a jdk...si couldnt fine javac in /etc. Can i stilll compile my prog..

what i have is
/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre

What do i do to compile...
very urgent!!!!

Last edited by coolzfriend : April 29th, 2008 at 12:41 AM. Reason: spelling mistake

Reply With Quote
  #2  
Old April 29th, 2008, 08:04 AM
Annie79 Annie79 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2007
Location: Beaverton OR
Posts: 17 Annie79 User rank is Just a Lowly Private (1 - 20 Reputation Level)  Folding Points: 49426 Folding Title: Beginner FolderFolding Points: 49426 Folding Title: Beginner FolderFolding Points: 49426 Folding Title: Beginner Folder
Time spent in forums: 7 h 25 m 11 sec
Reputation Power: 0
I don't know if GCJ has something similar to tools.jar in Sun's JDK - http://mindprod.com/jgloss/javacmain.html

You can use Runtime.exec()

Reply With Quote
  #3  
Old June 5th, 2008, 12:29 PM
TopSecret TopSecret is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 3 TopSecret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 19 sec
Reputation Power: 0
JRE is the Java Runtime Enviornment, it does not have javac in its bin directory since it is meant for runtime only -- not compilation. Download the SDK for java compilation. Must sure the <SDK_ROOT>/bin directory is in your path env variable.

Also in you're bash command you misspelled 'javac'

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Can we compile java prog without javac


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT