Solved

Help with compiling java code in Mandrake Linux

Posted on 2002-05-20
4
323 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
  • 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Mint 18 31 90
Install Predefined Certificate on Ubunto 4 39
How to learn Linux? 10 61
How to find Linux Server's last patch date 9 51
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

773 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