If you say you "just" did something, then you need to use the present perfect, like with using "yet" or "already." If you say "I just finished my homework" it's grammatically incorrect, but this is something that most native speakers get wrong also, so it's not a big deal.