LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 09-15-2019, 06:39 PM   #1
kattmish
LQ Newbie
 
Registered: Sep 2019
Posts: 2

Rep: Reputation: Disabled
2019 Eclipse not working on Acer Chromebook R13, Linux Debian 9 Stretch


Hello!

I've been using Linux for a whopping 2 weeks now, just going through the basics trying to set up my laptop to learn Java. I enabled Linux on the laptop and have been using the terminal to do most everything.

The issues have been occurring when I try to install Eclipse. If I do it with the basic 'sudo apt-get install eclipse', it will download fine, and then after extracting it, it will create a shortcut in the 'Linux apps' icon on the Chromebook desktop, and I can open and use it from there.

It seems like that's the 2012 version, so I'd like to get the 2019 version set up in the same way.

So, here's what's been happening:

Downloaded the JDK no problem, both 'java -version' and 'javac -version' report that everything is where it should be.

I'll use 'wget XXXXX.tar.gz' to download Eclipse, I've tried like 4 or 5 different ones that are listed as the 2019 versions. Each time they download fine, and then I'll extract them with 'tar -xvzf XXXXXXX.tar.gz' and they extract fine. I've done it to several different directories with no issue.

When I try to run it, from any different place I install it, I get the same result:

kattmish@penguin:~/workspace/eclipse$ eclipse
bash: eclipse: command not found

I also tried using Nano to create a desktop shortcut, which worked as far as creating an actual icon, but it just sits in limbo opening forever and does nothing when I double click on it.

Any thoughts on why this won't work?

Any help is greatly appreciated.

Thank you!

Matt
 
Old 09-15-2019, 06:51 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Just unpacking the tar file is not sufficient for installing Eclipse (or most other software). You will probably have to run an installation program plus possibly other steps.

Eclipse offers installation instructions (at first glance, they do look a bit confusing). Have you tried them?

If the goal is to learn Java, however, I would avoid the hassle and just use the Debian package. Or try Netbeans.

EDIT: If I understand the installation instructions right, you should actually be able to start the program after unpacking the tar file. In this case, your problem is that the directory where the eclipse file resides is not in your execution path. You have to adjust your PATH variable and add that directory.

Last edited by berndbausch; 09-15-2019 at 07:07 PM.
 
1 members found this post helpful.
Old 09-15-2019, 11:33 PM   #3
kattmish
LQ Newbie
 
Registered: Sep 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks berndbausch!!

Yeah, that's what I gathered too. I unpacked it into the home directory, the root directory in the opt folder, and a couple other places too to see if it behaved differently. Same result each time, and it happens whether I type out the execution path in several layers or just navigate to the eclipse folder itself where the eclipse program is located (using cd /folder until I'm there) and then type 'eclipse'. It keeps giving the same 'command not found' result.

So right now, the eclipse executable (I'm assuming that's what the 'eclipse' file is to the left of 'eclipse.ini') is in this directory:

kattmish@penguin:~/eclipse$ ls -a
. .. artifacts.xml configuration dropins eclipse eclipse.ini .eclipseproduct features icon.xpm p2 plugins readme


So then I run this command and get this error:

kattmish@penguin:~/eclipse$ eclipse
bash: eclipse: command not found
 
Old 09-16-2019, 12:38 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
What is your PATH set to? If it doesn't include the current directory, Bash doesn't find files in the current directory.
Code:
echo $PATH
Or, what kind of file is eclipse? It might not be executable.
Code:
ls -l eclipse
file eclipse
Note that the problems you are experiencing have nothing to do with Eclipse. They are related to Linux principles: Execution path, execution permission, etc.
 
Old 09-17-2019, 01:27 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
kattmish@penguin:~/workspace/eclipse$ eclipse
you are missing the " ./" before "eclipse"

try this

Code:
kattmish@penguin:~/workspace/eclipse$ ./eclipse
the "./" tells the terminal to use the directory you are in as part of $PATH
 
1 members found this post helpful.
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Acer Chromebook 13 and Chromebook Spin 13 Will Support Linux Apps on Day One LXer Syndicated Linux News 0 06-13-2018 02:26 AM
Kali on Acer Chromebook R13 (arm) not working Ektifson Linux - Laptop and Netbook 6 05-27-2018 05:53 PM
LXer: Here a Chromebook, there a Chromebook, everywhere a Chromebook LXer Syndicated Linux News 0 12-14-2015 04:42 PM
LXer: New Acer Chromebook Arrives; Faulty HP Chromebook Recalled LXer Syndicated Linux News 0 11-18-2013 08:20 PM
r13 register in ARM manas_sem Programming 0 08-06-2007 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:55 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration