Click to visit our sponsors!

homeGeek CultureWebstoreeCards!Forums!Joy of Tech!AY2K!webcam

  The Geek Culture Forums
  Ask a Geek!
  Bad interpereter?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Bad interpereter?
TheAnnoyedCockroach
Uber Geek

Posts: 817
From: The Devil's Dance Floor
Registered: Feb 2002

posted August 19, 2002 15:28     Click Here to See the Profile for TheAnnoyedCockroach   Click Here to Email TheAnnoyedCockroach     Edit/Delete Message   Reply w/Quote
So for the past... week, I dunno, I've been trying to get Java support in Mandrake Linux 8.1.

I have so far downloaded two files: the Java runtime environment, and the Java SDK (I've no clue what that is, but I'm running out of ideas). Both are .bin files, and neither will run on my computer.

If I try to execute them in shell, I get the following message:
"Bad Interpereter, Permission Denied" or something to that effect.

I've tried doing this in root as well, but I still get the same message. My question is this: What the bloody hell am I doing wrong here?

------------------
Walk away, me boys, walk away, me boys, and by mornin' we'll be free...

IP: Logged

Lex
Super Geek

Posts: 240
From: University of Florida
Registered: Jul 2001

posted August 19, 2002 17:53     Click Here to See the Profile for Lex   Click Here to Email Lex     Edit/Delete Message   Reply w/Quote
Thats odd. It has its executable bit set, right?

I have seen .bin used for executables and disk images, but mostly on a mac. Sure you've got the right files?

You sure that you don't have a java environment pre-installed? You'd think they would come default these days.

IP: Logged

TheAnnoyedCockroach
Uber Geek

Posts: 817
From: The Devil's Dance Floor
Registered: Feb 2002

posted August 19, 2002 17:57     Click Here to See the Profile for TheAnnoyedCockroach   Click Here to Email TheAnnoyedCockroach     Edit/Delete Message   Reply w/Quote
Nope, there's definately no Java in Mandrake to be found.

When? When's gonna be my time, lord?

------------------
Walk away, me boys, walk away, me boys, and by mornin' we'll be free...

IP: Logged

GMx
Super Geek

Posts: 165
From: Somewhere inside the TARDIS
Registered: Jul 2002

posted August 19, 2002 17:59     Click Here to See the Profile for GMx   Click Here to Email GMx     Edit/Delete Message   Reply w/Quote
Don't know much about linux, but I know that SDK is a developer's kit for making apps for a certain proram.

IP: Logged

Lex
Super Geek

Posts: 240
From: University of Florida
Registered: Jul 2001

posted August 19, 2002 18:30     Click Here to See the Profile for Lex   Click Here to Email Lex     Edit/Delete Message   Reply w/Quote
You got the version called "Linux GNUZIP Tar shell script", right? It's a shell script, but it must be marked executable before it can be used. chmod +x filename should do this.

The difference between the SDK and the standard version is most likely that it has a compiler and perhaps a few other tools. Or perhaps both have the compiler and only the SDK has the extra tools. Either way, the standard version will let you run Java programs and the SDK will let you write Java programs.

It might help to be root when you do this, but it probably isn't necessary.

IP: Logged

TheAnnoyedCockroach
Uber Geek

Posts: 817
From: The Devil's Dance Floor
Registered: Feb 2002

posted August 19, 2002 18:34     Click Here to See the Profile for TheAnnoyedCockroach   Click Here to Email TheAnnoyedCockroach     Edit/Delete Message   Reply w/Quote
Aye, that's the version. Though it didn't download as a tar.gz. That stinks, 'cause I can work those files.

Ah, well now I've the mystery of the sdk solved. I suppose I can just focus on the runtime environment now.

------------------
Walk away, me boys, walk away, me boys, and by mornin' we'll be free...

IP: Logged

Lex
Super Geek

Posts: 240
From: University of Florida
Registered: Jul 2001

posted August 19, 2002 19:44     Click Here to See the Profile for Lex   Click Here to Email Lex     Edit/Delete Message   Reply w/Quote
Hmmm. Well, without having a linux box myself, this is the last of the help I can give you for that problem. The file, being a shell script, ran just fine for me. I altered one line and it coughed up an ELF binary, which appears to be a self-extracting installer. I tar.gz'd and made it available here:

http://muffy.homeip.net/j2re.tar.gz

Download, extract, execute. Hopefully it should work. That file should be available unless my computer is asleep or off.

One other thing. This is an x86 type PC we're talking about, right? Cause it won't work with Mandrake PPC. Just checking.

IP: Logged

GameMaster
Highlie

Posts: 668
From: State of insanity
Registered: Mar 2002

posted August 19, 2002 21:47     Click Here to See the Profile for GameMaster   Click Here to Email GameMaster     Edit/Delete Message   Reply w/Quote
sounds like you need the Java Virtual Machine, which should be part of the Java SDK (Standard Development Kit)... Move the *.bin files to /bin, or try and run the like this ./whatever.bin...

In order to run a Java program, you type in the console:
java prog
In order to compile you type:
javac prog.java
which will result in any error messages being displayed to the STDIN or the creation of several *.class files. The class containing main must be named the same as the .java file... So the above example prog.java would contain a public class prog with a static public main method.....

The JVM (Java Virtual Machine) should be shipped as part of the OS and as part of the SDK, if the above doesn't help, try posting a question on the forums at java.sun.com

IP: Logged

Lex
Super Geek

Posts: 240
From: University of Florida
Registered: Jul 2001

posted August 20, 2002 06:52     Click Here to See the Profile for Lex   Click Here to Email Lex     Edit/Delete Message   Reply w/Quote
eh, the JVM should be in the standard as well. else, what would be in there? SDKs have compilers, runtime environment comes with both.

IP: Logged

TheAnnoyedCockroach
Uber Geek

Posts: 817
From: The Devil's Dance Floor
Registered: Feb 2002

posted August 20, 2002 07:53     Click Here to See the Profile for TheAnnoyedCockroach   Click Here to Email TheAnnoyedCockroach     Edit/Delete Message   Reply w/Quote
Thanks for your help all! Lex, the tar.gz file worked perfectly.

I've got java support... finally.

------------------
Walk away, me boys, walk away, me boys, and by mornin' we'll be free...

IP: Logged

All times are Pacific Time

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Geek Culture Home Page

� 2002 Geek Culture� All Rights Reserved.

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.47e

homeGeek CultureWebstoreeCards!Forums!Joy of Tech!AY2K!webcam