Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 HELP ME PLZ
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
josh




PostPosted: Sun Feb 08, 2004 11:34 am   Post subject: 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.
Sponsor
Sponsor
Sponsor
sponsor
josh




PostPosted: Sun Feb 08, 2004 11:36 am   Post subject: (No subject)

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




PostPosted: Sun Feb 08, 2004 11:47 am   Post subject: (No subject)

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:
code:

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:
code:

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




PostPosted: Sun Feb 08, 2004 11:59 am   Post subject: (No subject)

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




PostPosted: Sun Feb 08, 2004 12:01 pm   Post subject: (No subject)

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




PostPosted: Sun Feb 08, 2004 12:02 pm   Post subject: (No subject)

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




PostPosted: Sun Feb 08, 2004 12:05 pm   Post subject: (No subject)

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




PostPosted: Sun Feb 08, 2004 12:07 pm   Post subject: (No subject)

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.
Sponsor
Sponsor
Sponsor
sponsor
josh




PostPosted: Sun Feb 08, 2004 12:09 pm   Post subject: (No subject)

and yes If I am understanding u I think that is where my cmd is (99.9% sure)
Paul




PostPosted: Sun Feb 08, 2004 12:18 pm   Post subject: (No subject)

I don't know then, you can get a compiler like JBuilder though, email me at paulbian@hotmail.com please
josh




PostPosted: Sun Feb 08, 2004 12:29 pm   Post subject: (No subject)

kk I will thanx 4 the help
Paul




PostPosted: Sun Feb 08, 2004 2:51 pm   Post subject: (No subject)

You can download a free version of JBuilder X foundation at:
[url]http://www.borland.com/products/downloads/download_jbuilder.html#
[/url]
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 12 Posts ]
Jump to:   


Style:  
Search: