Solved

Help with compiling java code in Mandrake Linux

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Install MySQL 5.6 and PHP on Centos Linux 6 103
nagios 1 22
How to learn Linux? 10 44
Help on running oracle SQL script in linux 3 37
The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now