![]() |
can't compile code
A friend of mine gave me some java code and some basic directions. Unfortunately, I can't get it to compile or execute. I would realy appreciate it if you guys could help me out. Im an absolute newb when it comes to java. :o
Maybe someone could compile it for me. Also, when he says to "run it with java VS 'id number', how is that done and where is it executed? Im guessing its supposed to be typed in the command prompt, but im not sure of the directory...Thanks for your help! :) Directions Quote:
Code: :
import java.util.*; |
Save the code in a file named "VS.java" and then type the following command:
:
javac VS.javaThe following code runs it: :
java VS (calc_id) |
i could compile this for you, but it would do about as much good as if i took a piss for you, in other words, none. i'm not going to try to send or link to or upload any .exe files onto anything. compiling is the fun part when you get to hunt down your mistakes. (for the first half-hour)...after 30 minutes compiling is no longer fun. more like slamming your nuts in a sliding glass door. here's the secret though...for most compile errors there are two answers...
either :
}:
; |
I compiled it on my machine, no compiler error...
|
Me too. I used VS.NET 2003, Java.
|
He prolly don't have a compiler or don't know how to invoke it.
|
I got these errors:
:
Note: VS.java uses or overides a depreciated apiCan someone just e-mail the .exe file to me please? Quote:
|
Would you run an .exe that someone you don't know mailed to you???
|
Quote:
|
Quote:
Yes, you guys seem nice enough. Norton takes care of most malicious programs anyways. |
| All times are GMT -5. The time now is 5:36 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC