Need Help with running a jar. files on my eeepc 4g specific help required!
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
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.
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
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.
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
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.
Now that we know (to my surprise) you already have java installed:
Quote:
Originally Posted by ineedhelprightnow
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
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.
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.