Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-20-2004, 02:09 AM
|
#1
|
LQ Newbie
Registered: Jul 2004
Distribution: Red Hat Linux Shrike
Posts: 11
Rep:
|
Java Programming: Java Runtime Environment not found when trying to compile
Hey Guys!
Yeah im back with another little problem. I previously had the problem with Java Virtual Machine. I got some advice and help from you guys and changed my .bash_profile with PATHS and stuff. Now i encoutered another problem. I just downlaopded a 90mb file from Java Sun Microsystems , a SDK with NetBeans IDE 3.6. Now ive installed the NetBean IDE program and is working sweet. however my "Beginning Programming for Dummies" wants me to use a text editor instead. ok im fine with that, following the instructions in the book, chapter-by-chapter. Then trying to compile the program that ive made is another story. I can't seem to use the 'javac' command. It prompts
"Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment."
how can i sort this problem out guys? If someone could help me, that would be awsome.
Thanx again...
... MURBZ
Ohh: Heres a copy of my ".bash_profile" if it helps
>
---------------------------------------------------------------------------
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
path=PATH:/usr/j2re1.3.1/bin/
export PATH
unset USERNAME
CLASSPATH=/usr/java/lib
export CLASSPATH
JAVA_HOME=/usr/local/java
export JAVA_HOME
PATH=/bin:$PATH; ---> from the book instructions exactly
export PATH --->
CLASSPATH=.; export CLASSPATH --->
------------------------------------------------------------------------------
|
|
|
07-20-2004, 02:15 AM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
I think that error is because you've installed JRE, which does not include the compiler (javac). You could:
1 - download and install J2SDK. Since J2SDK includes the RE, you might want to remove the java runtime environment and stick with J2SDK instead, or:
2 - In the directory where netbeans is installed, you will find "javac" compiler insider a /bin directory. Simply make a link:
ln -s /wherever_netbeans_is/bin/javac /usr/bin/javac
Good luck!
|
|
|
03-26-2009, 03:04 AM
|
#3
|
LQ Newbie
Registered: Mar 2009
Posts: 1
Rep:
|
Java Error
Hi Mega Man,
what is the extension name for javac compiler.. try to search it and found only javac.jar only.
Do I need to install or run this file?
What do you mean about "Simply make a link"
Thanks,
lgeood03
Quote:
Originally Posted by Mega Man X
I think that error is because you've installed JRE, which does not include the compiler (javac). You could:
1 - download and install J2SDK. Since J2SDK includes the RE, you might want to remove the java runtime environment and stick with J2SDK instead, or:
2 - In the directory where netbeans is installed, you will find "javac" compiler insider a /bin directory. Simply make a link:
ln -s /wherever_netbeans_is/bin/javac /usr/bin/javac
Good luck!
|
|
|
|
All times are GMT -5. The time now is 09:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|