LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .bin files (https://www.linuxquestions.org/questions/linux-newbie-8/bin-files-57458/)

Ju Deddo Koinu 04-30-2003 09:04 AM

.bin files
 
I'm new to Linux, but I know how to install downloads in the RPM and the tar.gz format.

I recently found an application that I wanted to install, and the linux version gave me a .bin file when I downloaded it.

How do I install this thing?

aizkorri 04-30-2003 09:39 AM

try the following:

>chmod +x whateverfile.bin
>./whateverfile.bin

And it should, I think, create a rpm or install the software directly.

MasterC 04-30-2003 09:39 AM

Hi, please refrain from double posting, I answered your question in the software section where I first saw it.

Ju Deddo Koinu 04-30-2003 04:03 PM

code:
-----
[simba@localhost simba]# chmod +x filename.bin
[simba@localhost simba]# ./filename.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

Warning: -Xmx100331648 not understood. Ignoring.
Warning: -Xms16777216 not understood. Ignoring.
Exception in thread "main" java.lang.InternalError: Unexpected exception while defining class ZeroGq: java.lang.ClassNotFoundException: javax.swing.JDialog
-----

Well, there are a few more errors, but they all have to deal with exceptions when defining java classes. Any clues?

Ju Deddo Koinu 04-30-2003 04:25 PM

Java Errors
 
I'm thinking that maybe I don't have something like a JDK installed, and so this program isn't running correctly?

Ju Deddo Koinu 04-30-2003 04:54 PM

Wasn't the Java thing...
 
I just downloaded and installed the Java2 Runtime Environment SE 1.4.1_02

And it still won't run this program.
*confused*

MasterC 04-30-2003 09:22 PM

What "program" is it that it won't run? And, are you sure you got it installed correctly?

:)

Cool

Aussie 04-30-2003 09:35 PM

You may have the JRE but it may need the JSDK, or you could have a version incompatability.

Crashed_Again 04-30-2003 10:15 PM

Or you may need to add java to your path.

Ju Deddo Koinu 04-30-2003 10:52 PM

ok... how do i "add java to my path"? I mean, what file do I edit, and what do I put in it?

*hates being a newbie*

The program I am attempting to install is LimeWire - the Gnutella client.

Crashed_Again 04-30-2003 10:55 PM

Yeah then you need to add java to your path before executing the installer. Export the path by doing:

export PATH=$PATH:/usr/java/j2re1.4.1_01/bin

You will probably have to change j2re1.4.1_01 to the version of java you are using.

Ju Deddo Koinu 04-30-2003 11:20 PM

PATH set, same errors...?
 
Ok, I set the path with the export command you suggested as follows:

code:
-----
[simba@localhost simba]# export PATH=$PATH:/usr/java/j2re1.4.1_02/bin
[simba@localhost simba]#
-----

There is no output of this command, correct? And I also verified that the directories exist, and are the correct version number.

So, then I go back and try to run the program. I'll give you the full dump here:

code:
-----
[root@localhost my-installs]# ./LimeWireLinux.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

Warning: -Xmx100331648 not understood. Ignoring.
Warning: -Xms16777216 not understood. Ignoring.
Exception in thread "main" java.lang.InternalError: Unexpected exception while d
efining class ZeroGq: java.lang.ClassNotFoundException: javax.swing.JDialog
at 0x40268e17: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/./li
bgcj.so.3)
at 0x4025bc8e: java.lang.Error.Error(java.lang.String) (/usr/lib/./libgcj.so.
3)
at 0x402691fa: java.lang.VirtualMachineError.VirtualMachineError(java.lang.St
ring) (/usr/lib/./libgcj.so.3)
at 0x4025d62e: java.lang.InternalError.InternalError(java.lang.String) (/usr/
lib/./libgcj.so.3)
at 0x4025ac2f: java.lang.ClassLoader.defineClass(java.lang.String, byte[], in
t, int, java.security.ProtectionDomain) (/usr/lib/./libgcj.so.3)
at 0x4025aa13: java.lang.ClassLoader.defineClass(java.lang.String, byte[], in
t, int) (/usr/lib/./libgcj.so.3)
at 0x402f1f2e: java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/
./libgcj.so.3)
at 0x40248197: gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/us
r/lib/./libgcj.so.3)
at 0x4025a904: java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/u
sr/lib/./libgcj.so.3)
at 0x4024889c: _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/
./libgcj.so.3)
at 0x40244cdd: java.lang.Class.forName(java.lang.String, boolean, java.lang.C
lassLoader) (/usr/lib/./libgcj.so.3)
at 0x4023b4cf: _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/./libgc
j.so.3)
at 0x40231857: _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/./libgcj.so.3)
at 0x40229ae4: _Jv_PrepareClass(java.lang.Class) (/usr/lib/./libgcj.so.3)
at 0x40248028: java.lang.ClassLoader.linkClass0(java.lang.Class) (/usr/lib/./
libgcj.so.3)
at 0x4025acb3: java.lang.ClassLoader.resolveClass0(java.lang.Class) (/usr/lib
/./libgcj.so.3)
at 0x4024646c: java.lang.Class.initializeClass() (/usr/lib/./libgcj.so.3)
at 0x40244d04: java.lang.Class.forName(java.lang.String, boolean, java.lang.C
lassLoader) (/usr/lib/./libgcj.so.3)
at 0x40244d9f: java.lang.Class.forName(java.lang.String) (/usr/lib/./libgcj.s
o.3)
at 0x402ad01d: gnu.gcj.runtime.FirstThread.run() (/usr/lib/./libgcj.so.3)
at 0x4024fc4c: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3)
at 0x4021c8ac: _Jv_RunMain(java.lang.Class, byte const, int, byte const, bool
ean) (/usr/lib/./libgcj.so.3)
at 0x08048910: __gcj_personality_v0 (java.compiler=NONE)
at 0x420156a4: __libc_start_main (/lib/tls/libc.so.6)
at 0x080486c1: _Jv_RegisterClasses (java.compiler=NONE)
[simba@localhost my-installs]#
-----

MasterC 05-01-2003 01:19 AM

Quote:

Originally posted by Crashed_Again
Yeah then you need to add java to your path before executing the installer. Export the path by doing:

export PATH=$PATH:/usr/java/j2re1.4.1_01/bin

You will probably have to change j2re1.4.1_01 to the version of java you are using.

This was just an example. You may have to adjust for the version you are installing, and for the directory location. If your java is that version at that location, then that export should work. To check it, simply type:
$PATH

In a terminal. It will echo out your PATH, and you can see if it has your java location in it. If not, you either are typing it incorrectly, or you need to set the variable elsewhere, maybe .bash_profile

To find out where java is, either poke around your system or try a whereis:
whereis java

OR locate java (which will pull alot up, but sometimes helps).

FYI, Limey sucks, get dcgui...

Cool

KDE4me 05-01-2003 01:59 AM

I had the same problem a week ago. I think you'll find java in the /usr/local/j2sdkVERSION#/bin (if you installed as root - read your install.txt). Now after this all you'll have to do is get applets to work(if you want them to) in Mozilla and your file manager. That's a lot more fun :)

A question for everyone else:
After setting I set the path to my JSDK terminal I echo $PATH and get the correct path. I close all my terminals and then open a new terminal. When I
$ echo $PATH my usr/local/java.../bin
in this new terminal it is gone from the path. What's happened here? How do I fix it?

Ju Deddo Koinu 05-01-2003 04:17 AM

ok... I did modify the path string to be the one where I installed at....

to check it, i went through the dirs cause I wanted to be sure...

code:
-----
[root@cs6625135-156 /]# cd usr
[root@cs6625135-156 usr]# cd java
[root@cs6625135-156 java]# cd j2re1.4.1_02
[root@cs6625135-156 j2re1.4.1_02]# cd bin
[root@cs6625135-156 bin]# ls
ControlPanel java_vm kinit ktab policytool rmiregistry tnameserv
java keytool klist orbd rmid servertool
-----

Therefore, I just add it to the $PATH as such:

code:
-----
[root@cs6625135-156 my-installs]# export PATH=$PATH:/usr/java/j2re1.4.1_02/bin
-----

And then I echo the path back to me to see if it added correctly.

code:
-----
[root@cs6625135-156 my-installs]# $PATH
bash: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/java/j2re1.4.1_02/bin: No
such file or directory
-----

And it can't find it? Hmm...
Also...

code:
-----
[root@cs6625135-156 bin]# whereis java
java: /usr/bin/java /usr/include/java /usr/share/java
-----

Do I maybe need to use one of these dirs instead?
I also, on your advice, added it to the .bash_profile

And, maybe this editing the path in a terminal and it disappearing... could be the problem. I'm going to restart with it in my .bash_profile and find out if that helps.

And I know Limewire kinda sucks.. Used to use it as a windows user... But I didn't know what else to get... Didn't want to get into kazaa lite and wine... But oh well. I'd still at least like to get java installed correctly. Java still does not work in my browser, even with the browser plugin supposedly installed (it's not listed on my plugin's list inside the browser - but that's another nightmare)


All times are GMT -5. The time now is 12:15 PM.