473,491 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Trouble in 'javac' in EL4

18 New Member
hi all,
background information:
1. OS- RedHat Enterprise Linux4
2. JDK installed- java-1.4.2-gcj

hi, i am a newbie trying to compile my java programs. i checked whether any JDK is installed on my system (RHEL4) with following command as a root:
Expand|Select|Wrap|Line Numbers
  1. /usr/sbin/alternatives --config javac
it replies:
Expand|Select|Wrap|Line Numbers
  1. There are 1 programs which provide 'javac'.
  2.  
  3.   Selection    Command
  4. -----------------------------------------------
  5. *+ 1           /usr/lib/jvm/java-1.4.2-gcj/bin/javac
  6.  
  7. Enter to keep the current selection[+], or type selection number:
i entered to keep the current selection. i have my java progms in my home directory. when i tried to compile progm as follows:
Expand|Select|Wrap|Line Numbers
  1. /usr/lib/jvm/java-1.4.2-gcj/bin/javac HelloWorldApp.java
it gives error:
Expand|Select|Wrap|Line Numbers
  1. Aborted
can anyone help what problem i am facing? it is urgent.
with regard
mamoon
May 25 '07 #1
0 1007

Sign in to post your reply or Sign up for a free account.

Similar topics

5
5756
by: Interzoner | last post by:
I am new at Java.. I installed j2sdk-1.4.2-nb-3.5-bin-windows on a Windows 2000 machine I can't find a "Javac"file......
2
3298
by: Samuel Jackson | last post by:
Hi, I'm wanting to figure out what version bytecode is generated with Jikes. I'm developing in an environment where it's mandated we run on Java 1.3. I'd like to run Jikes as my compiler (for...
0
1453
by: asaguden | last post by:
Hello, My problem is making 'javac -target 1.2 -bootclasspath /jre1.2/lib/rt.jar' work under jdk 1.4.2 on solaris with applets. Explanation: We have a web application jsp/servlets with applets....
1
3078
by: GG | last post by:
Hi all, This is not necessarily an Ant question, nor a standard sun Javac. I am using both, and all suggestions are welcome. I would like to build as many classes as possible from a given...
2
23365
by: Fred | last post by:
I have just upgraded from Tomcat 5.0 to 5.0.27 and when I try to veiw the website I am getting an error message root cause of "Unable to find a javac compiler;com.sun.tools.javac.Main is not on the...
3
4808
by: Ed Severn | last post by:
I'm sorry of this question has been posed and answered many times before. But I have avoided using the "package" statement because of this. Most of my classes have no "package" statement, and...
5
1810
by: hawat.thufir | last post by:
I think the compile target is causing the errors...? from the terminal: $ cat build.xml <project name="tidy" default="package"> <import file="tidyBuild/properties.xml" /> <target...
9
15016
dmjpro
by: dmjpro | last post by:
Hi .... I am trying to compile my generated Java code. Then I am getting an error .... "javac": CreateProcess error=2. The command is ... javac -d...
6
1333
by: Polarbear20 | last post by:
I keep getting the error "javac" is not recognized as an internal or external command, operable program or batch file. I have heard I need to make a path, but I don't understand how. I know how to...
0
7190
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7360
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4881
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
280
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.