Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to copy .jar and .so files into jre folder. I tried to do it like I do it in windows but it is not working, maybe the permission problem. So how can I do it? using terminal or is there any other way? File which i want to copy is RXTXcomm.jar path is /home/adi and I want to paste it in jre path is /usr/lib/jvm/java-7-oracle/jre/lib/ext

I am very new to Linux, I got it only couple of hours ago so please bear with me!

share|improve this question
add comment

2 Answers 2

up vote 0 down vote accepted

You can use:

alt+f2 gksu cp /home/adi/RXTXcomm.jar /usr/lib/jvm/java-7-oracle/jre/lib/ext.

Or you can run it in the terminal:

sudo cp /home/adi/RXTXcomm.jar /usr/lib/jvm/java-7-oracle/jre/lib/ext.

share|improve this answer
    
not yet let me try it –  Aditya Ponkshe Feb 19 '13 at 18:53
    
is there any way to do it without using terminal? it is so confusing.. –  Aditya Ponkshe Feb 19 '13 at 18:55
add comment

From command line (windows key to open dash, search for Terminal)

If the file is in /home/adi this will work:

cd /home/adi/
sudo RXTXcomm.jar /usr/lib/jvm/java-7-oracle/jre/lib/ext/

You need sudo if the destination is not owned by your user.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.