Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-30-2006, 03:56 AM   #1
Registered: Jul 2006
Posts: 84

Rep: Reputation: 15
Question Java installation???

Hallo all,
just now I downloaded
in my usr/local, and extracted it by
finally I got
Then I mkdir java in usr/local, and programmed the in this new directory.

The problem is that
when I type
"bash: javac: command not found" comes up.
if I type
./javac /usr/local/java/ in usr/local/jdk1.6.0/bin where the javac file is found, it seems to work, and I got HalloWorldApp.class in the same directory as However when I try to run
./java /usr/local/java/HalloWorldApp
"Exception in thread "main" java.lang.NoClassDefFoundError: /usr/local/java/HalloWorldApp" turns up.

I'd like to know whether it means that my java engine was not correctly installed. How could I get around this problem?

Thanks in advance, win2s
BTW, my linux distro is debian 2.6.8-3-386

continue at

Last edited by win2suse; 08-31-2006 at 08:04 AM.
Old 08-30-2006, 08:45 AM   #2
Senior Member
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I'd like to know whether it means that my java engine was not correctly installed.
I think it does. With kernel 2.6.8, I assume you're using Sarge. Number one, I think it's time to move up to Etch, where you may choose to download Sun Java from the repositories.

On the other hand, even using Etch, I still choose to download and install the Sun Java bin from Sun. Here are instructions for doing it correctly.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
JAVA JRE installation to view java applet through browser dipenchaudhary Linux - Software 1 01-23-2006 09:20 AM
Java Installation kaplan71 Debian 2 12-30-2005 09:39 AM
java installation Prageem Linux - Software 4 09-20-2005 10:48 AM
Installation of Java WiWa Linux - Software 2 12-04-2003 04:37 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration