LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need Help with running a jar. files on my eeepc 4g specific help required! (https://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

johnsfine 07-23-2010 10:15 AM

Remember we can't see exactly what you have done. So if you don't provide enough detail, we can't give good help.

When you got the prompt "save to disk or run program with" what did you do?

If you saved the file to disk, can you figure out what directory you saved it to and exactly what the name of the file was?

If you want to instead try the "run with" method again, I think that choice should let you either type in java or navigate to /usr/bin/java and then I think the "run with" would work.

ineedhelprightnow 07-23-2010 10:18 AM

any more info on what i can do??

ineedhelprightnow 07-23-2010 10:20 AM

i chose save to disk and extracted the file : rsbot.jar in My Documents and when i had extracted the file it went into a folder called "scripts" remmember these bots are scripts run by java all compiled into that one rsbot.jar file and when i extract it all the scripts come out .

ineedhelprightnow 07-23-2010 10:23 AM

I will try what u said right now!

ineedhelprightnow 07-23-2010 10:26 AM

i tried what u said and all it done was nothing to be honest i clicked open with ____ then /usr/bin/java and pressed ok and nothing happened

tredegar 07-23-2010 12:17 PM

Probably the path to the file is wrong.

You said you downloaded it to "My Documents".

If you just "open a terminal" you'll be in your home directory (Eg /home/ineedhelp/ ) but the file is in /home/ineedhelp/My Documents/

So try this
Code:

java -jar "~/My Documents/rsbot v1.23.jar"
If you are not sure of the filename (I am not, I guessed it in the line above) then do this

Code:

ls "My Documents"
and you should see the rsbot... filename listed. Make adjustments accordingly.

In general, spaces in linux filenames are a very bad idea. Rename the file as rsbot_v1.23.jar and then you will not have to worry about putting all filenames in quotes.

My Documents should also be renamed as MyDocuments or My_Documents for the same reason.

I hated xandros on my eeepc 701 4G, so I installed ubuntu:

http://wiki.eeeuser.com/

paulsm4 07-23-2010 12:21 PM

ineedhelprightnow -

A couple of things:

1. There's no such thing as "java -jar ..."

2. In order to run rsbot ("The Leader in Runescape Cheating Since 2006!" ;)), look for directions on their site:

http://www.rsbot.org/vb/

3. Here are some links that might help:

http://www.java.com/en/download/help/linux_install.xml
http://www.gaminggutter.com/forum/f4...ter-88868.html
http://www.gamerzneeds.net/forums/ru...ide-rsbot.html
http://www.sythe.org/showthread.php?t=609320

Google for "java rsbot" and you'll find a lot more (including a lot of video tutorials).

'Hope that helps .. pSM

tredegar 07-23-2010 12:31 PM

Quote:

1. There's no such thing as "java -jar ..."
Really? Then why do I launch my OSM editor like this:

java -Xmx128m -jar /home/tred/Maps/OSM/josm-tested.jar
?

If I omit the -jar it does not work. I am using Sun's Java 1.6.0_06.

ineedhelprightnow 07-23-2010 12:45 PM

okay guys thanks for your help i will try all these things u have posted now :)

ineedhelprightnow 07-23-2010 01:04 PM

guys i think i need ubuntu help on that would be nice and paul if u can help me more considering u know about rsbot that would be great thanks all.

pixellany 07-23-2010 01:08 PM

ineedhelp*;
Please do not use texting shorthand here---also please use capitals, punctuation, etc. to make your posts more clear

ineedhelprightnow 07-23-2010 01:10 PM

Oh sorry im kind of used to this short text language "slang" i'll try my best to punctuate my text properly :)

ineedhelprightnow 07-23-2010 01:35 PM

so yeah can anyone help me on how to get ubuntu or stuff that runs jar files on linux thanks!

tredegar 07-24-2010 03:33 AM

Quote:

so yeah can anyone help me on how to get ubuntu or stuff that runs jar files on linux thanks!
I already gave you the link, in post #21.

ineedhelprightnow 07-24-2010 04:33 AM

This computer does not have a slot where i can insert discs. is there anyway doing it opening the terminal window and using synaptic?

tredegar 07-24-2010 04:35 AM

Quote:

is there anyway doing it opening the terminal window and using synaptic?
Doing what ?

ineedhelprightnow 07-24-2010 05:39 AM

i looked on the previous link u said me it says i need a cd drive to download ubuntu. All i need to do is open a jar file called rsbot with java scripts in it to program a virtual character to do something man i wish i bought a computer with xp now =/

tredegar 07-24-2010 05:56 AM

If all you want to do is run the java file, we have already explained what you need to do.

See my post at #21, read it carefully, and make sure you have the /path/to/the/file and the filename correct.

If you get errors, then tell us (exactly) what they are.

You don't need a CD to install ubuntu on an eee701.
See here

But if you cannot type the right command, I do not think ubuntu is going to help you.


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