LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-25-2007, 10:46 AM   #1
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, RedHat, Xubuntu
Posts: 169
Blog Entries: 1

Rep: Reputation: 32
Installing Sun Java Wireless Toolkit bin file.


I just installed the jre-6u1-i586-1 on my slackware box. Now I am trying to install sun's java wireless toolkit so I can run some of my phone applications on my computer. I went to sun site (http://java.sun.com/products/sjwtool...oad-2_5_1.html) and downloaded the file "sun_java_wireless_toolkit-2_5_1-linux.bin". The thing is I don't know how to install an app from a bin file. I have always worked with tar files. I did some searching to figure out what I could do but with no luck. Maybe I just don't know what to look for if anyone could give me advice or help me with this it would be greatly appreciated.

Thanks,
Kyle
 
Old 07-25-2007, 11:12 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,669

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Just run it. ".bin" extension is meant to show it's an executable file:
Code:
# chmod +x sun_java_wireless_toolkit-2_5_1-linux.bin
# ./sun_java_wireless_toolkit-2_5_1-linux.bin
 
Old 07-25-2007, 11:32 AM   #3
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, RedHat, Xubuntu
Posts: 169
Blog Entries: 1

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by jlliagre
Just run it. ".bin" extension is meant to show it's an executable file:
Code:
# chmod +x sun_java_wireless_toolkit-2_5_1-linux.bin
# ./sun_java_wireless_toolkit-2_5_1-linux.bin
Oh alright, thank you for the information.

Kyle
 
Old 07-25-2007, 01:19 PM   #4
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, RedHat, Xubuntu
Posts: 169
Blog Entries: 1

Original Poster
Rep: Reputation: 32
Well I ran the bin file in the shell and everything seems to be working but when I get to the install it gives me this. Would that mean I do not have the JRE installed correctly?

Code:
Testing /usr/lib/java/bin/java...

A suitable Java interpreter was detected

0) Use /usr/lib/java/bin/
1) Specify a path to a Java interpreter directory.
2) Cancel this installation.
Select a choice [0-2]: 0

Please enter a directory into which you would like to install the Sun Java(TM) Wireless Toolkit, 2.5.1 for CLDC.
[ default is /data/linux/java/WTK2.5.1 ]:/usr/lib/java/bin/WTK2.5.1
Installation directory is /usr/lib/java/bin/WTK2.5.1.

Check for Product Updates

Sun Java(TM) Wireless Toolkit for CLDC includes Check for Product Update feature.
This feature will be active every 7 days and will inform you about the new Product Updates.
No personally identifiable data such as name, address, or e-mail address will be collected. You can disable this feature later in Preferences.
The information collected by Product Update includes the following:

* Operating system
* Country  and Language setting on your computer
* Date and version of the Wireless Toolkit that you are about to install
* Unique random user ID generated by the Wireless Toolkit

Collected data will be used for future improving of the product.
Please read Sun's Privacy Policy at http://www.sun.com/privacy/index.html

Check for Product Updates? [yes or no] yes

Setup has enough information to start copying the program files.
Current Settings:
Destination Directory
    /usr/lib/java/bin/WTK2.5.1/
JVM Folder
    /usr/lib/java/bin/
Check for Program Updates
    Enabled

Please choose one of the following options:
0) Begin copying files if you are satisfied with the settings  .
1) Cancel the installation.
Select a choice [0-1]: 0
Checksumming...

Extracting the installation files...
./sun_java_wireless_toolkit-2_5_1-linux.bin: line 1599: /usr/lib/java/bin/jar: No such file or directory
Failed to extract files. Installation will stop now.
Please try to install Sun Java(TM) Wireless Toolkit again, or contact wtk-comments@sun.com for assistance.
Thank you,
Kyle
 
Old 07-25-2007, 07:07 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,669

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
Originally Posted by lifeforce4
Well I ran the bin file in the shell and everything seems to be working but when I get to the install it gives me this. Would that mean I do not have the JRE installed correctly?
The Destination Directory you choosed (/usr/lib/java/bin/WTK2.5.1/) is odd. You are not supposed to install applications into directories belonging to other applications.

./sun_java_wireless_toolkit-2_5_1-linux.bin: line 1599: /usr/lib/java/bin/jar: No such file or directory

This is the main issue, why is there not a jar command here ?

What say "/usr/lib/java/bin/java -version" and "which jar" ?
 
Old 07-25-2007, 07:32 PM   #6
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, RedHat, Xubuntu
Posts: 169
Blog Entries: 1

Original Poster
Rep: Reputation: 32
Well I just was trying a few things on my own and got it to work. I took a different route then installing the jre I installed the JDK then the WTK. I downloaded jdk-6u2-nb-5_5_1-linux-ml.bin and installed that first, then used its lib files to install the sun_java_wireless_toolkit-2_5_1-linux.bin and it worked.

Code:
Testing /usr/lib/java/bin/java...

A suitable Java interpreter was detected

0) Use /usr/lib/java/bin/
1) Specify a path to a Java interpreter directory.
2) Cancel this installation.
Select a choice [0-2]: 1


#Then I defined the location were I installed the jdk.
/opt/lib/java/bin


Please enter a directory into which you would like to install the Sun Java(TM) Wireless Toolkit, 2.5.1 for CLDC.
[ default is /data/linux/java/WTK2.5.1 ]:/opt/WTK2.5.1
Installation directory is /usr/lib/java/bin/WTK2.5.1.

Check for Product Updates

Sun Java(TM) Wireless Toolkit for CLDC includes Check for Product Update feature.
This feature will be active every 7 days and will inform you about the new Product Updates.
No personally identifiable data such as name, address, or e-mail address will be collected. You can disable this feature later in Preferences.
The information collected by Product Update includes the following:

* Operating system
* Country  and Language setting on your computer
* Date and version of the Wireless Toolkit that you are about to install
* Unique random user ID generated by the Wireless Toolkit

Collected data will be used for future improving of the product.
Please read Sun's Privacy Policy at http://www.sun.com/privacy/index.html

Check for Product Updates? [yes or no] yes

Setup has enough information to start copying the program files.
Current Settings:
Destination Directory
    /opt/WTK2.5.1/
JVM Folder
    /opt/lib/java/bin/
Check for Program Updates
    Enabled

Please choose one of the following options:
0) Begin copying files if you are satisfied with the settings  .
1) Cancel the installation.
Select a choice [0-1]: 0
Checksumming...

Extracting the installation files...
Thank you for replying,
Kyle
 
1 members found this post helpful.
  


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 Sun java on Mandriva 2007 Waqas Ahsan Mandriva 3 03-25-2008 09:33 AM
Problems installing Sun Java 6 cyb3rdawn Linux - Software 3 07-08-2007 07:48 AM
Java Wireless Toolkit slavo Programming 2 02-18-2006 07:46 AM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 09:30 PM
Installing java Machine from Sun (JMF-2.2.1) coltranefawz Linux - Software 1 06-22-2003 09:15 AM


All times are GMT -5. The time now is 11:34 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