Computer Science Canada

Simple Java compiler

Author:  1337_brad [ Sat Feb 12, 2005 6:16 pm ]
Post subject:  Simple Java compiler

Hey, I have Borland JBuilder but I can't get the reg key to work, but I want to brush up on my Java skills. So I was just wondering if anyone knew of a good easy java compiler I could use until I get Jbuilder working? Any suggestions would be apreciated.

Author:  wtd [ Sat Feb 12, 2005 6:20 pm ]
Post subject: 

Grab the standard Java Development Kit from Sun's site and use it via the command-line.

Author:  Hikaru79 [ Sat Feb 12, 2005 6:25 pm ]
Post subject: 

To clarify on WTD's point, that would be http://java.sun.com/j2se/1.5.0/download.jsp for Sun's Java compiler.

Author:  1337_brad [ Sat Feb 12, 2005 6:35 pm ]
Post subject:  One problem

Only thing is when I do that I can never get it to work, so I will try and if I have problems hopefully one of you can help me <3. What usually happens is I try to Javac something and the thing says It can't find the program Javac because it is not in the same directory as the file I am compiling is... my uncle once set it up so I could get around that but my comp crashed and I forgot how he did it =/

Author:  wtd [ Sat Feb 12, 2005 6:40 pm ]
Post subject: 

Windows 98 or ME?

You'll probably have to manually add the directory that holds the Java binaries to your PATH. Do this by editing C:\autoexec.bat to include:

code:
set PATH=%PATH%;C:\Path\To\Java\Binaries

Author:  1337_brad [ Sat Feb 12, 2005 6:46 pm ]
Post subject:  well...

I have windows XP =/

Author:  wtd [ Sat Feb 12, 2005 6:49 pm ]
Post subject: 

Ok. You installed the JDK from Sun's site, right? The one that came with the Borland software is probably a tad weird.


Anyway, open a command prompt window and type "path" and hit enter. What do you see?

Author:  rizzix [ Sat Feb 12, 2005 6:53 pm ]
Post subject: 

it is also a good idea to set the JAVA_HOME and CLASSPATH variables.. some applications require these variables set.

Author:  1337_brad [ Sat Feb 12, 2005 6:59 pm ]
Post subject:  Path

When path is entered in a command prompt I get these paths:

c:\Windows\system32
c:\windows
c:\windows\system32\Wbem

Author:  wtd [ Sat Feb 12, 2005 7:12 pm ]
Post subject: 

In Windows 2000 it was Start -> Settings -> Advanced to set environment variables. Not sure where that is in XP.

Author:  1337_brad [ Sat Feb 12, 2005 7:14 pm ]
Post subject: 

It is in same place, but I tried that and it didn't seem to work... can you tell me exactly what I have to do incase I did something wrong the last time?

Author:  wtd [ Sat Feb 12, 2005 7:19 pm ]
Post subject: 

http://www.cs.ucsb.edu/~teliot/Path_and_Classpath.htm

Author:  1337_brad [ Sat Feb 12, 2005 7:32 pm ]
Post subject:  Thanks alot man

Hey, thanks alot man! =)

Author:  wtd [ Sat Feb 12, 2005 7:38 pm ]
Post subject: 

Happy to help.


: