Online Advertising | Send Telegram | Credit Counseling | Yugioh | Cash ISA
java compile [Archive] - PCMech Forums

PDA

View Full Version : java compile


cypher1919
02-12-2003, 04:03 PM
i guess im still lost...i still can't seem to figure out whats wrong.

i have like 4 different java files on my c: drive, which one do i use to compile in dos? heres what im getting ....C:\>cd windows\java

C:\WINDOWS\JAVA>dir

Volume in drive C has no label
Volume Serial Number is 3E3F-20AA
Directory of C:\WINDOWS\JAVA

.

07-17-00 12:46p .
..
07-17-00 12:46p ..
CLASSES
07-17-00 12:46p CLASSES
PACKAGES
07-17-00 1:10p Packages
HELLOW~1 JAV 289 02-05-03 10:00p HelloWorldApp.java
1 file(s) 289 bytes
4 dir(s) 8,616.63 MB free

C:\WINDOWS\JAVA>set path
Syntax error

C:\WINDOWS\JAVA>"set Path"
Bad command or file name

oh yeah and i have windows me

doctorgonzo
02-12-2003, 04:37 PM
javac.exe is the java compiler. Do a search for it on your PC to make sure you have it, and make note of the location.

cypher1919
02-12-2003, 05:39 PM
10/4 i'll post again, and tell ya how it goes thanx

piasabird
02-14-2003, 11:15 AM
why not just read the documentation from SUN.

Java for windows is not DOS BASED. I realize this is ambiguous but you have to be in windows to make it work. You may have to update your path statement and add an environment statement in C:\Autoexec.bat.

If you read the info that came with the Java SDK, there should be some instructions to get it set up. I think the BIN folder actully is used for the compiler.

It is possible to use a floppy and compile your programs on the floppy with a batch file and make the source, the compiled classes and the output go to 3 different folders.

piasabird
02-14-2003, 11:16 AM
I dont remember if Java uses a bin folder.

aym
02-16-2003, 01:28 PM
yes, javac and the others are located in the "bin" folder.

Lynx4Ben
02-17-2003, 07:50 PM
Make sure you downloaded tghe SDK Software Development Kit not just the runtime envioroment. This can be confusing when you download from the sun site. I am not sure what the other package is called but you won't get the compiler and other apps.