LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


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

Rep: Reputation: 15
Question Java installation???


Hallo all,
just now I downloaded
jdk-6-beta2-linux-i586.bin
in my usr/local, and extracted it by
./jdk-6-beta2-linux-i586.bin,
finally I got
usr/local/jdk1.6.0
Then I mkdir java in usr/local, and programmed the HalloWorldApp.java in this new directory.

The problem is that
when I type
javac HalloWorldApp.java
"bash: javac: command not found" comes up.
if I type
./javac /usr/local/java/HalloWorldApp.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 HalloWorldApp.java. 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
http://www.linuxquestions.org/questi...d.php?t=479111

Last edited by win2suse; 08-31-2006 at 08:04 AM.
 
Old 08-30-2006, 08:45 AM   #2
rickh
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
Quote:
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:51 PM.

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