Solved

Help with compiling java code in Mandrake Linux

Posted on 2002-05-20
4
327 Views
Last Modified: 2013-12-06

Hi there,

   I am using Mandrake Linux 7.0. Can anyone tell me how to compile java code in the OS.

cheers,
b.m
0
Comment
Question by:nirvani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 7024036
Have you installed a Java SDK? You can get a copy from http://wwws.sun.com/software/java2/download.html

Once you have the SDK installed add the path to the javac compiler to your PATH and you can compile.
0
 

Author Comment

by:nirvani
ID: 7025996

Hi there,

   can you help me to set the path for compiler. How about gcc-java compiler in the Mandrake CD? Is it for java or anything else?

cheers,
b.m
0
 
LVL 1

Accepted Solution

by:
elniniokev earned 50 total points
ID: 7026133
To set path

For bash shell:
export PATH=$PATH:/usr/sbin/:/usr/local/bin


For tcsh or csh
set PATH = ($PATH /usr/sbin /usr/local/bin)

These commands can either be typed at the terminal each time you login, or you can add it to your .bashrc for bash shell or .cshrc for csh or tcsh so that each time you login, the PATH is already set. The $PATH means to keep the existing PATH and then append it with the other directories listed. This is helpful if a directory is set in the PATH by the System Administrator for everyone.

I've never used gcc-java compiler (I''m sure it's fine) but I would definitely go with the Sun SDK, and stik with javac. java etc
0
 
LVL 1

Expert Comment

by:elniniokev
ID: 7026138
export PATH=$PATH:/usr/sbin/:/usr/local/bin  in the above submission is an example, obviously you would put the path to your java installation.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question