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
 
LinkBack Search this Thread
Old 07-23-2010, 09:19 AM   #1
ineedhelprightnow
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Rep: Reputation: 0
Need Help with running a jar. files on my eeepc 4g specific help required!


Hello, i have recently bought an ASUS Eeepc 4g and i am having trouble trying to run/open jar. files. As i am only 14 Years of age i am having quite a time trying to sort out this problem.. i have opened the command console and tried all the codes to try open or create shortcuts to try open and run a jar.file but i am not succeeding, if you can help me please write back on this post giving me a step-step plan on how to fix this! and if so then great would make my life alot easier on this laptop. and by the way i need to try open this file called rsbot v1.23 as it is a jar.file i am unable to run or open it by saving to the disk. Thanks for your time and if you can help me great

Last edited by ineedhelprightnow; 07-23-2010 at 09:34 AM.
 
Old 07-23-2010, 09:27 AM   #2
johnsfine
Senior Member
 
Registered: Dec 2007
Distribution: Centos
Posts: 4,963

Rep: Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073
You're more likely to get useful help if you fix the subject line of your request. (Click Edit on your first post, then go Advanced, then fix the subject).

You want to open a jar file on an ASUS Eeepc 4g, so a good subject line would be

How to open jar file on ASUS Eeepc 4g


A very bad subject line is anything like your original "Please READ AND HELP!".

To open a jar file, first you need to install some version of the JRE (Sun Java Runtime Environment).

But I don't know enough about an ASUS Eeepc 4g to give you any specifics on how to install the JRE.

Most Linux distributions have some kind of package manager for doing most installs of software. That package manager probably has available either a JRE or some helper to assist in installing a JRE direct from Sun.

Last edited by johnsfine; 07-23-2010 at 09:31 AM.
 
Old 07-23-2010, 09:31 AM   #3
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 91
Hi

Welcome to LQ!

Please read the LQ Rules and "How to Ask Questions the Smart Way" - see my signature below.

You need to provide more information in order for members to assist you.

What distro/version are you using?

Have you installed and setup Java?

In general, from the terminal; to open up a jar you would run:

Code:
$java -jar myjarfile.jar
This requires that you have Java installed and your JAVA_HOME environment variable set and in your path.
 
1 members found this post helpful.
Old 07-23-2010, 09:39 AM   #4
ineedhelprightnow
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alli_yas View Post
Hi

Welcome to LQ!

Please read the LQ Rules and "How to Ask Questions the Smart Way" - see my signature below.

You need to provide more information in order for members to assist you.

What distro/version are you using?

Have you installed and setup Java?

In general, from the terminal; to open up a jar you would run:

Code:
$java -jar myjarfile.jar
This requires that you have Java installed and your JAVA_HOME environment variable set and in your path.

whenever i type in $java -jar myjarfile.jar
it comes up with the following message : bash: -jar: command not found and my software version is Eee PC 1.0.2.15 Memory size 512Mb and i have java 5.0 installed i think? i forgot the code that shows you which one you have installed.
 
Old 07-23-2010, 09:43 AM   #5
johnsfine
Senior Member
 
Registered: Dec 2007
Distribution: Centos
Posts: 4,963

Rep: Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073
The generic command to find which java version you have installed is
Code:
java -version
If it was installed by your distribution's package manager, there might be some other relevant version number for Java that you could look at in the package manager program.

Quote:
Originally Posted by ineedhelprightnow View Post
whenever i type in $java -jar myjarfile.jar
it comes up with the following message : bash: -jar: command not found
It took me an extra moment to realize you actually typed the $ in the above command. I think you weren't supposed to, but I'm not really sure what assumptions alli_yas was making in giving that suggestion.

Your results simply prove you don't have java defined as an environment variable. That doesn't prove anything about whether/which version of java you have installed.

I suspect you have no version of java installed, so my suggested command will also result in "command not found" rather than telling you a version number.

Last edited by johnsfine; 07-23-2010 at 09:51 AM.
 
Old 07-23-2010, 09:50 AM   #6
ineedhelprightnow
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Original Poster
Rep: Reputation: 0
oh lol -.- made me look a bit silly then i will check the version right now and yes it was provided by the manufacturers company
 
Old 07-23-2010, 09:55 AM   #7
ineedhelprightnow
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Original Poster
Rep: Reputation: 0
i am running the current version of java : 1.5.10
Java (TM) 2 runtime enviroment, standard edition (build 1.5_10-b03)
Java Hotspot (TM) Client VM (build 1.5_10-b03 Mixed Mode )
And i have tried the same Code again without the mistaken $ in it and it now says : Unable to access jarfile
 
Old 07-23-2010, 09:56 AM   #8
johnsfine
Senior Member
 
Registered: Dec 2007
Distribution: Centos
Posts: 4,963

Rep: Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073
I did a quick search on the net for Eee PC and the most understandable info was at
http://en.wikipedia.org/wiki/Asus_Eee_PC#Xandros

That "distribution" you were asked about apparently is "Xandros".

According to wikipedia, one of the package managers you can use in Xandros is Synaptic.

Since Synaptic is available, it is probably your best choice for installing software.
 
Old 07-23-2010, 09:56 AM   #9
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 91
@johnsfine

Quote:
I think you weren't supposed to, but I'm not really sure what assumptions alli_yas was making in giving that suggestion.
I wasn't making assumptions. I clearly explained to the OP that he/she needs to have Java installed; and the environment/path setup in order to run the command posted.

As for the $ - since the OP did not post what distro; I assumed that they're not logged in as root and would be running it as an "ordinary" user from the command line.
 
Old 07-23-2010, 09:58 AM   #10
ineedhelprightnow
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Original Poster
Rep: Reputation: 0
okay thankyou for your help john i will now look at the link you have given me and i will be happy if you can post back helping me in anyway thankyou.
 
Old 07-23-2010, 10:01 AM   #11
johnsfine
Senior Member
 
Registered: Dec 2007
Distribution: Centos
Posts: 4,963

Rep: Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073
Now that we know (to my surprise) you already have java installed:

Quote:
Originally Posted by ineedhelprightnow View Post
i need to try open this file called rsbot v1.23 as it is a jar.file i am unable to run or open it by saving to the disk.
I'm not quite sure what you have said there.

Do you mean you have already saved a file named "rsbot v1.23.jar" to some directory on the disk?

If that is the actual name, then there is a blank in the name, so you need quotes around the name when used in any command.

So assuming the suggestion from alli_yas was basically correct (I don't recall these details myself and don't have a .jar file handy to test and don't normally run .jar file that way myself) then make sure you are in the directory where the .jar file was saved and use the command
Code:
java -jar "rsbot v1.23.jar"

Last edited by johnsfine; 07-23-2010 at 10:05 AM.
 
Old 07-23-2010, 10:03 AM   #12
ineedhelprightnow
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Original Poster
Rep: Reputation: 0
i have heard about xandros and i think i have it pre-installed but i still am confused on what to do i really would need a step to step plan thanks guys considering i am at a kind of young age This is quite confusing at some stages for me.
 
Old 07-23-2010, 10:04 AM   #13
ineedhelprightnow
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Original Poster
Rep: Reputation: 0
well john i want to run/download an "autobot" for a game i like to play called runescape the version of this "bot" can be found on rsbot.org then on the download toolbar. but when i click download and try run it it comes up with save to disk or run program with ________ This is a Jar. file!
 
Old 07-23-2010, 10:09 AM   #14
johnsfine
Senior Member
 
Registered: Dec 2007
Distribution: Centos
Posts: 4,963

Rep: Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073Reputation: 1073
Quote:
Originally Posted by ineedhelprightnow View Post
i will now look at the link you have given me
Be aware that I was typing replies at the same time you were, so some of my posts were made before I saw your immediately preceding post.

I posted that link based on my guess that you didn't have java installed. That link may still have generally useful info about your PC. But since you already have java installed, I don't think anything in that link is relevant to your current problem.
 
Old 07-23-2010, 10:10 AM   #15
ineedhelprightnow
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Original Poster
Rep: Reputation: 0
i have tried opening rsbot.jar and it says unable to access jar file
 
  


Reply

Tags
call, command, console, eeepc, executable, files, help, jar, linux, scope, shell, software, windows, wine


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Program to read total read/write cycles for compact flash card timetraveler Linux - Hardware 0 05-06-2010 09:49 PM
silo read error on block <number>... results in a short read peterlowrie Linux - Hardware 0 02-07-2010 07:39 PM
Raid disk problem : Attempt to read block from filesystem resulted in short read ElmPie Linux - General 5 08-26-2008 05:21 AM
kernel panic unable to mount root (yes ive read/read other posts) dmx9595 Linux - General 4 01-17-2004 05:07 AM


All times are GMT -5. The time now is 02:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration