Question: I'm having big problems running my java api war file from the command line after ive packaged it with maven.

I'm trying to run it using the following command from the target folder where my war file is located.

```
java -cp silverkissen.war se/consys/silverkissen/heroku/Main

```

And alot of other variations but i just get 

```
Error: Can't find or load main class se/consys/silverkissen/heroku/Main

```

My war file lies in path `..\Silverkissen-API\target\silverkissen.war`

My heroku main class lies in path `..\Silverkissen-API\target\classes\se\consys\silverkissen\heroku\Main.class`

Thankful for any help.

Answer: 
Commenting on your problem in detail.

Python works with the same instance of `y` all the time. 
At the end of your loop, you can think of your list `x` as: `x = [y, y, y]` and each change made on `y` was applied to each entry in the `x`.

If you want to have a unique copy at each iteration you need to make a full copy of the variable. 

```
import copy
x = []
y = np.zeros(2)
for i in range(3):
  y = copy.deepcopy(y) # based on the comment it is enough  
  y += 1               # to put y = y + 1 (also creates a new copy)
  x.append(y)

```

I hope it helps you understand it a bit more what Python did (see also [Immutable vs Mutable types](https://stackoverflow.com/questions/8056130/immutable-vs-mutable-types) for more details). 

However, it seems to be quite inefficient.
Use the full() function of numpy.You have to specify the dimension of array(in ur case 1 row ,2 clolumns) and the value u want it to fill with,ie value provided by i

```
x = []
y = np.zeros(2)
for i in range(3):
    y =np.full((1,2),i)
    x.append(y)

```

x

```
[array([[0, 0]]), array([[1, 1]]), array([[2, 2]])]

```