-
Javac Unrecognized
Sorry Folks, Im sure you have had many posts about this but despite all my efforts I still cannot get javac working.
Ive taken a screenie of the error I get in Dos

I have also updated my Path Variables to: %SYSTEMROOT%\system32;%SYSTEMROOT%;%SYSTEMROOT%\COMMAND;%SYSTEMROOT%\system32\WBEM;C:\j2sd k1.4.2_04\bin
I know the location is right.
Also, I am useing Windows XP.
Any Ideas? Thanks in advance guys
Tiepo
-
ENV var changes in XP don't require a reboot, but you can't use the same instance of command/cmd.exe. So if you are using the same window that you used prior to the change, that would be your problem.
PS: Use cmd instead of command, it's much faster.
-
OMG IT WORKED!?!?
*BLINK* Omg it worked in cmd
Why wouldn't it work in command???
Anyway THANKS ALOT
I hope it continues working 
EDIT: Nope now I have another error
This is my code,
/**
* The HelloWorldApp class implements an application that
* simply displays "Hello World!" to the standard output.
*/
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); //Display the string.
}
}
DOes anyone know what the problem might be?
-
You are trying to "run" your source code (the .java), when you should be running the compiled code (the .class).
-
Oops, silly me
I tried running the .class but now I get this.
Could anyone point out what Im probly doing wrong this time?
Thanks Tiepo
-
Er, sorry, I forgot to mention that the .class is assumed 
-
Thanks! :D
Ok thnk 
Thanky very much I got it working
-
Originally posted by Drain
Er, sorry, I forgot to mention that the .class is assumed 
more accurately; it cannot be expressed, because . is assumed to be a package directive, so running:
java ABC.class
will attempt to run the class called "class" inside the package ABC.
you will, of course, then get a NoClassDefFoundError
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks