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 07-27-2007, 09:31 PM
Member
 
Join Date: Jul 2007
Posts: 26
osval is on a distinguished road
problem when I try to compile a program from command prompt
I'm trying to compile java program from command prompt.
It gives javac is reserved word.
I'm using C:\java\j2re1.4.1_02.I already set the classpath to bin folder

what's happening?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-28-2007, 12:24 AM
Senior Member
 
Join Date: Jul 2007
Posts: 134
brianhks will become famous soon enough
What are you typing into the prompt when you get that message.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-06-2007, 11:16 PM
bbq bbq is offline
Senior Member
 
Join Date: Jun 2007
Posts: 134
bbq is on a distinguished road
Do you use word 'javac' in your source code? If you do, change it to other word.

Also, set the classpath on the command line:

javac -classpath . filename.java

'.' means your current working directory.
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
accessing command prompt using java (netbeans)... kureikougaiji New To Java 6 06-27-2008 05:01 PM
simple problem - code wont compile dirtycash New To Java 1 11-20-2007 07:49 PM
Unable to execute command line command in java LordSM New To Java 1 08-08-2007 02:23 AM
launch a desktop icon program command avaj987 New To Java 3 08-03-2007 01:40 PM
Compile a program toby New To Java 2 07-30-2007 11:09 AM


All times are GMT +3. The time now is 10:18 PM.


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