LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need Help with running a jar. files on my eeepc 4g specific help required! (http://www.linuxquestions.org/questions/linux-newbie-8/need-help-with-running-a-jar-files-on-my-eeepc-4g-specific-help-required-821702/)

ineedhelprightnow 07-23-2010 09:19 AM

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 :)

johnsfine 07-23-2010 09:27 AM

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.

alli_yas 07-23-2010 09:31 AM

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.

ineedhelprightnow 07-23-2010 09:39 AM

Quote:

Originally Posted by alli_yas (Post 4043089)
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.

johnsfine 07-23-2010 09:43 AM

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 (Post 4043098)
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.

ineedhelprightnow 07-23-2010 09:50 AM

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

ineedhelprightnow 07-23-2010 09:55 AM

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

johnsfine 07-23-2010 09:56 AM

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.

alli_yas 07-23-2010 09:56 AM

@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.

ineedhelprightnow 07-23-2010 09:58 AM

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.

johnsfine 07-23-2010 10:01 AM

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

Quote:

Originally Posted by ineedhelprightnow (Post 4043074)
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"

ineedhelprightnow 07-23-2010 10:03 AM

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.

ineedhelprightnow 07-23-2010 10:04 AM

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!

johnsfine 07-23-2010 10:09 AM

Quote:

Originally Posted by ineedhelprightnow (Post 4043125)
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.

ineedhelprightnow 07-23-2010 10:10 AM

i have tried opening rsbot.jar and it says unable to access jar file


All times are GMT -5. The time now is 07:27 PM.