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

Username:   Password: 
 RegisterRegister   
 Simple Java compiler
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
1337_brad




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Sat Feb 12, 2005 6:20 pm   Post subject: (No subject)

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




PostPosted: Sat Feb 12, 2005 6:25 pm   Post subject: (No 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.
1337_brad




PostPosted: 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 =/
wtd




PostPosted: Sat Feb 12, 2005 6:40 pm   Post subject: (No 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
1337_brad




PostPosted: Sat Feb 12, 2005 6:46 pm   Post subject: well...

I have windows XP =/
wtd




PostPosted: Sat Feb 12, 2005 6:49 pm   Post subject: (No 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?
rizzix




PostPosted: Sat Feb 12, 2005 6:53 pm   Post subject: (No subject)

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




PostPosted: 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
wtd




PostPosted: Sat Feb 12, 2005 7:12 pm   Post subject: (No subject)

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




PostPosted: Sat Feb 12, 2005 7:14 pm   Post subject: (No 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?
wtd




PostPosted: Sat Feb 12, 2005 7:19 pm   Post subject: (No subject)

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




PostPosted: Sat Feb 12, 2005 7:32 pm   Post subject: Thanks alot man

Hey, thanks alot man! =)
wtd




PostPosted: Sat Feb 12, 2005 7:38 pm   Post subject: (No subject)

Happy to help.
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  [ 14 Posts ]
Jump to:   


Style:  
Search: