This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I just finished downlading the java2 sdk for linux. Hopefully I have donwloaded the correct one for linux (j2sdk-1_4_0-linux-i386.rpm.bin). I downloaded it into /bin. I would appreciate if someone would tell me, how I execute this file to install my java compiler. Thanks in advance, I am waiting patiently..... Herbert.
chmod 777 j2sdk-1_4_0-linux-i386.rpm.bin then.... ./j2sdk-1_4_0-linux-i386.rpm.bin you will get a liscense agreement that scrolls about 8 screens, then you will have to type YES. This will extract the file to: j2sdk-1_4_0-linux-i386.rpm then as ROOT do this: rpm -i j2sdk-1_4_0-linux-i386.rpm Set your environment variables and you are done.
Herbert Maosa
Ranch Hand
Joined: May 03, 2000
Posts: 289
posted
0
Thanks Greg. I have followed your instructions and so far so good. But now in setting my environment variables, what directory do I point them to since the install does not tell me where it is putting the files in. Also, once this is done, do I invoke the compiler the same way as in windows, that by just typing javac?
The defualt install path for java in linux is /usr/java/j2sdk...... How else did you invoke the compiler in windows? I always use javac along with other tags for my classpath, etc. In Windows and Linux. It is the same. Don't really know what you meant by that last statement.
Easy way to find out went where: rpm -ql j2sdk In place where you set up environment (such as ~/.bash_profile): export JAVA_HOME=/usr/java/$$$$$$ export PATH=$PATH:/usr/java/$$$$$$/bin Substitute "$$$$$$" with the actual java home, such as "j2sdk1.4.0".
Customer surveys are for companies who didn't pay proper attention to begin with.