The Artima Developer Community
Sponsored Link

Java Answers Forum
First java project. Need help with compiler

2 replies on 1 page. Most recent reply: Feb 26, 2002 10:39 PM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Shane

Posts: 1
Nickname: spotnits
Registered: Feb, 2002

First java project. Need help with compiler Posted: Feb 26, 2002 9:10 PM
Reply to this message Reply
Advertisement
This is the first time I've used java.
I can't get javac to work on my home PC.

I'm trying to run my files off of my A drive. JDK1.3.0_02 is on my C drive. Whenever I try to run javac in DOS it says "bad command or filename".

I can run the classes after their compiled but I can't get that far.


Anil S.

Posts: 13
Nickname: anil
Registered: Feb, 2002

Re: First java project. Need help with compiler Posted: Feb 26, 2002 9:30 PM
Reply to this message Reply
set your PATH env. variable to the bin directory of your jdk installation

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: First java project. Need help with compiler Posted: Feb 26, 2002 10:39 PM
Reply to this message Reply
Specifically, add this line to your autoexec.bat:

set path=%path%;c:\jdk1.3.0_02\bin

You can also type that same line on the command line, to add it to your current session (so you don't have to reboot before you can use javac).

Additionally, there is the quick 'n' dirty full path specification route: instead of
"javac HelloWorld.java"
you use the full path to the javac program, like so:
"c:\jdk1.3.0_02\bin\javac HelloWorld.java"


Finally, once you get javac working, you need to download the Jikes Java compiler (from http://oss.software.ibm.com/developerworks/opensource/jikes/) and start using that instead!

Flat View: This topic has 2 replies on 1 page
Topic: chatting program Previous Topic   Next Topic Topic: Creation of Complex Jtable in swings

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use