Activator: command not found

I am trying to install an activator on my Linux system.

so first i install java

sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer 

loaded successfully

then I downloaded the activator

 sudo wget downloads.typesafe.com/typesafe-activator/1.3.4/ypesafe-activator-1.3.4.zip 

then added path

 export PATH=$PATH:/home/govind/activator-1.3.4/ 

then reload bash on

 source ~/.bashrc 

then I'm trying to start the activator

 govind@LINUXSERVER :~$ sudo activator sudo: activator: command not found 

I tried to print the path

 govind@LINUXSERVER :~$ $PATH -bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/govind/activator-1.3.4/: No such file or directory 

but

 govind@LINUXSERVER :~$ ls /home/govind/activator-1.3.4/ activator activator-launch-1.3.4.jar README.html templates activator.bat LICENSE.html repository 

but did not crown !! What am I missing?

+7
java bash scala playframework typesafe-activator
source share
6 answers

Create a symbolic link to the activator:

 sudo ln -s /home/govind/activator-1.3.4/activator /usr/bin/activator 

You do not need to edit the bashrc profile.

+16
source share

The superuser may not have the activator set to $PATH . If sudo is really required try

 sudo /home/govind/activator-1.3.2/activator 

or sudo copy activator , for example, /usr/bin . In addition, the above procedure is proved.

+2
source share

I think the documentation should be fixed. The path still works in earlier versions of the activator, but recent versions do not have an executable activator in the specified directory. Instead, you can find this folder inside bin.

So, for earlier activator versions

 export PATH=/home/<user>/activator-dist-1.3.2:$PATH 

and for the latest versions

 export PATH=/home/<user>/activator-dist-xxx/bin:$PATH 

/ bin is not mentioned in the documentation

+2
source share

try it

  • cd to activityDirectory / bin.
  • enter the command. / activator sh, and you will be shown a list of commands that you can try.
  • To create a new type of project. / activator [new_Project_name] [Template name, for example: lagom-java]
+1
source share

Try the following:

add path to activator basket to your .bashrc

you can find the way

find .bashrc

Now, if you go to the home directory, where it usually should be, edit this file.

gedit.bashrc

add this line: export PATH = "$ HOME / Dev / activator-1.3.XX-minimum / bin: $ PATH" replace X with the correct version number and save this file

source .bashrc

If a terminal window opens, close it and restart it.

activator

launch activator window

+1
source share

Try the following: -

In Centos: - Activator path not found, why you receive this message. I used the full path with the team and worked great.

activator / full / path / trigger activator

0
source share

All Articles