LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
java problem


Hi!

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?

Thanx
 
Old 11-15-2006, 03:21 PM   #2
uselpa
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
benjithegreat98
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
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Open Suse 10.1, Ubuntu (Feisty Fawn)
Posts: 87

Rep: Reputation: 15
Hi,

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
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
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.
 
  


Reply


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


All times are GMT -5. The time now is 04:13 AM.

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