This message was posted on behalf of Intel Corporation
Thanks for your interest in the Intel® Edison Platform.
I just wanted to let you know that you're on the right track! I actually went ahead and replicate your issue, I noticed that once you have compiled your Java code, you needed to access the bin directory created from this process and run the command: java -cp /usr/lib/java/mraa.jar:. HelloEdison instead of java -cp /usr/lib/java*:HelloEdison.java HelloEdison.
Here is an image of the code running on my Edison:
Please let me know if this fixes your issue.
I will be waiting for your reply, have a nice day!