LinuxQuestions.org
Help answer threads with 0 replies.
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 12-14-2003, 04:48 AM   #1
guitarnix
Member
 
Registered: Sep 2003
Location: Hawaii
Distribution: Slackware 9.1
Posts: 51

Rep: Reputation: 15
installing netbeans/java cobundle?


i just downloaded the netbeans/java cobundle. it is a .bin file. i know how to install from source but not a .bin file.

the file name is j2sdk-1_4_2-nb-3_5_1-bin-linux.bin

after reading some posts on this site and googling, i thought i could install using the following command...

./j2sdk-1_4_2-nb-3_5_1-bin-linux.bin

i did not get an error, but it wouldn't install. i just got a new command prompt.

then i tried

sh ./j2sdk-1_4_2-nb-3_5_1-bin-linux.bin

but i got the following error message... cannot execute binary file.

as u can tell by my question, i am new to linux. can someone help me with installing the netbeans/java cobundle?
 
Old 12-14-2003, 09:41 AM   #2
lazat
LQ Newbie
 
Registered: Dec 2003
Posts: 7

Rep: Reputation: 0
Re: installing netbeans/java cobundle?

Try to change mod on the file.

chmod +x j2sdk-1_4_2-nb-3_5_1-bin-linux.bin
./j2sdk-1_4_2-nb-3_5_1-bin-linux.bin

This will do the trick


Quote:
Originally posted by guitarnix
i just downloaded the netbeans/java cobundle. it is a .bin file. i know how to install from source but not a .bin file.

the file name is j2sdk-1_4_2-nb-3_5_1-bin-linux.bin

after reading some posts on this site and googling, i thought i could install using the following command...

./j2sdk-1_4_2-nb-3_5_1-bin-linux.bin

i did not get an error, but it wouldn't install. i just got a new command prompt.

then i tried

sh ./j2sdk-1_4_2-nb-3_5_1-bin-linux.bin

but i got the following error message... cannot execute binary file.

as u can tell by my question, i am new to linux. can someone help me with installing the netbeans/java cobundle?
 
Old 12-15-2003, 03:15 AM   #3
guitarnix
Member
 
Registered: Sep 2003
Location: Hawaii
Distribution: Slackware 9.1
Posts: 51

Original Poster
Rep: Reputation: 15
i am still not able to install. after doing the following...

chmod +x j2sdk-1_4_2-nb-3_5_1-bin-linux.bin
./j2sdk-1_4_2-nb-3_5_1-bin-linux.bin

nothing happens. now errors messages or any messages at all. just displays the command prompt.

has anyone else installed this cobundle?
 
Old 12-17-2003, 06:22 AM   #4
ears
LQ Newbie
 
Registered: Dec 2003
Posts: 5

Rep: Reputation: 0
try console

chmod 777 <filename here>

then ls -l, this should let you see what the permisions are,

then try
./<filename here>

it worked 4 me, so i hope it works 4 u!!
 
Old 12-17-2003, 07:44 AM   #5
jisse
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: rh/debian
Posts: 43

Rep: Reputation: 15
To explain the phenomenon *.bin file:

Sun packages some of her programs in these *.bin files but they are actually shell scripts. The shell scripts searches mostly for some kind of decompression / untarring program, and then unpacks itself. Sometimes even a RPM is packaged this way!

So you'll need a shell to execute the shell script: Just like any other shell script the executable permissions must be set and a shell must be called. There are two options: Start the shell script from the current shell:
$ ./script.bin
Or start a new shell to run the script in:
$ sh ./script.bin
Because most Linux systems run a default shell called "bash" and because most of Suns shell scripts (or bin files) are written to call the C-shell, the second option may be preferred. In real life it doesn't matter because the shell scripts of Sun aren't complicated at all.

There has been a lot of confusion about these .bin files, because the .bin extension is also used by Apple for real binaries - they only can be started on Macintosh systems.
 
  


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
Installing netbeans IDE linuxmandrake Debian 3 11-02-2005 08:25 AM
Enabe Netbeans with Java Tiger (1.5) trumpetdork Programming 6 05-01-2005 03:56 PM
Adding a java module to netbeans Setheck Linux - Software 0 03-28-2005 10:55 PM
Java: Netbeans IDE question ludeKing Programming 0 09-01-2004 10:20 AM
Installing NetBeans -> JVM Could Not Be Found eastj1974 Linux - Software 1 05-11-2003 03:49 AM


All times are GMT -5. The time now is 01:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration