
-----------------------------------
josh
Sun Feb 08, 2004 11:34 am

HELP ME PLZ
-----------------------------------
I am a real newbi at programing and I just downloaded the java software from Sun Microsystems website.  I downloaded the one that was mentioned on another post in the Java help section, but I can't figure out how to get into the compiler. 

do I have to run it in DOS??? 

someone plz help me.

-----------------------------------
josh
Sun Feb 08, 2004 11:36 am


-----------------------------------
so u go to this site: http://java.sun.com/j2se/1.4.1/download.html 

Rizix recomended this one to another person and it is the one I downloaded.

PLZ help.

-----------------------------------
Paul
Sun Feb 08, 2004 11:47 am


-----------------------------------
Oh, I use DOS, what I did was make a .cmd file as my path for compiling things, but you can get JBuilder or some other compiler if you like.
Heres what I've done:
The software I DLed installed into C:\jdk1.3
So I opened wordpad and typed these things in:

set path=.;C:\jdk1.3\bin
set CLASSPATH =.;C:\jdk1.3
%SystemRoot%\system32\cmd.exe

And then saved it as a CMD file in the folder where Im saving all the java files, like .java and .class files.
So when I run this CMD file, it automatically starts in the folder I want, it uses the javac compiler from the "bin" folder while the class path is in jdk1.3 folder, so that I don't have to CD everytime I have to compile something.
If you want to compile with DOS you can do this, just change the above code to wherever your files are.
For example if your java runtime installs to C:\j2sdk
then change the above code to:

set path=.;C:\j2sdk\bin
set CLASSPATH =.;C:\j2sdk
%SystemRoot%\system32\cmd.exe

And save this file as a .cmd file in the folder where you want to store all your java files.
The cmd.exe depends on where it is on your computer too.

-----------------------------------
josh
Sun Feb 08, 2004 11:59 am


-----------------------------------
thanx for the help but i am not sure I understnad. (I am a real newbi) I took th first code window that u put in and I just changed the file name so it looked like this:

set path=.;C:\j2sdk1.4.1_07\bin 
set CLASSPATH =.;C:\j2sdk1.4.1_07
%SystemRoot%\system32\cmd.exe 


because the folder it created was C;\j2sdk1.4.1_07

I created a folder called "Java" inside the "My Documents" folder and saved it to it. 

When i run it a DOS window opens the quickly closes again. I am not sure if idid it right as I did not completly understand u b4.

-----------------------------------
Paul
Sun Feb 08, 2004 12:01 pm


-----------------------------------
did you save it as a .cmd file?
You have to put the code in to wordpad and instead of saving it as a txt file, save it as a .cmd file.
Also check where your cmd.exe is, it might not be in the same spot as I have it.

-----------------------------------
josh
Sun Feb 08, 2004 12:02 pm


-----------------------------------
in the save name bar I typed in:

document.cmd

the icon for it in windows explorer looks like a dos icon with a single gear in the middle.

-----------------------------------
Paul
Sun Feb 08, 2004 12:05 pm


-----------------------------------
That should be right, I just edited my above post, but too late, is your cmd.exe at %SystemRoot%\system32\cmd.exe?
I think %SystemRoot% just means C:\WINDOWS\

-----------------------------------
josh
Sun Feb 08, 2004 12:07 pm


-----------------------------------
Like I siad I am a real newbi, I don't really understand what u r saying I typed it in just like u have it.

-----------------------------------
josh
Sun Feb 08, 2004 12:09 pm


-----------------------------------
and yes If I am understanding u I think that is where my cmd is (99.9% sure)

-----------------------------------
Paul
Sun Feb 08, 2004 12:18 pm


-----------------------------------
I don't know then, you can get a compiler like JBuilder though, email me at paulbian@hotmail.com please

-----------------------------------
josh
Sun Feb 08, 2004 12:29 pm


-----------------------------------
kk I will thanx 4 the help

-----------------------------------
Paul
Sun Feb 08, 2004 2:51 pm


-----------------------------------
You can download a free version of JBuilder X foundation at:
http://www.borland.com/products/downloads/download_jbuilder.html#

