Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-15-2006, 03:19 PM   #1
LQ Newbie
Registered: Nov 2006
Posts: 5

Rep: Reputation: 0
java problem


Im trying to install Java in Ubuntu 6.1, when I compile, a class is generated. but when I type ./classname.class, it says can not execute binary code, anyone know how to fix?

Old 11-15-2006, 03:21 PM   #2
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
try "java classname.class" or "java classname"
Old 11-15-2006, 03:32 PM   #3
Senior Member
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
It is "java classname". Using the latest Sun java packages the other way does not work.
Old 11-16-2006, 03:38 AM   #4
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Rep: Reputation: 15

i also had problems with java several days ago. i installed JRE1.5.0_09 with the kernel 2.4.32, and it didn't work, switched to JRE 1.4.2_13, and it worked perfectly. you might want to notice that i think also.

so is there any connection that java 1.5 is for kernel 3.6 or something?
Old 11-16-2006, 03:41 AM   #5
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Originally Posted by lbdgwgt
so is there any connection that java 1.5 is for kernel 3.6 or something?
Nope, I've used 1.5.x of Sun's JRE with a 2.4 kernel.


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 problem Jongi SUSE / openSUSE 6 10-29-2005 09:24 PM
Problem Java dudulz Linux - Enterprise 1 07-03-2005 01:33 PM
my java problem rb3ng Programming 12 03-12-2004 02:04 PM
Java problem loganwva Linux - General 16 04-01-2002 03:04 PM
Java problem $$$ XillusionsX Programming 5 12-11-2001 11:37 PM > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration