gessnerfl / fake-smtp-server

A simple SMTP Server for Testing purposes. Emails are stored in an in-memory database and rendered in a Web UI
Apache License 2.0
426 stars 88 forks source link

unable to execute latest jar #109

Closed panwarab closed 1 year ago

panwarab commented 1 year ago

I used the following issue ( https://github.com/gessnerfl/fake-smtp-server/issues/41 ) to create jar file.

When I am trying to execute the created jar, it fails with the below error:

Error: Could not find or load main class fake-smtp-server-1.10.5-SNAPSHOT.jar
Caused by: java.lang.ClassNotFoundException: fake-smtp-server-1.10.5-SNAPSHOT.jar

can't seem to understand what is missing since I have tried multiple approaches suggested online for gradle and spring boot project. Any help on this one, it's blocking in creating the source code. Thanks.

gessnerfl commented 1 year ago

@panwarab fakesmtp server requires at least java 11. Can you please share more details on your system setup

panwarab commented 1 year ago

Hi,

My system has both Java 8 and Java 11. I am trying to execute the code via directly referencing java11.exe fake-smtp-snapshot.jar

This invocation is being done over cygwin terminal.

On Sun, 27 Nov, 2022, 12:35 am Florian Gessner, @.***> wrote:

@panwarab https://github.com/panwarab fakesmtp server requires at least java 11. Can you please share more details on your system setup

— Reply to this email directly, view it on GitHub https://github.com/gessnerfl/fake-smtp-server/issues/109#issuecomment-1328098501, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMO7FAHTMVHVUXGK5RWJDLWKJNODANCNFSM6AAAAAASMAF72I . You are receiving this because you were mentioned.Message ID: @.***>

gessnerfl commented 1 year ago

@panwarab Java 8 is not working as at least Java 11 is required. I tried the latest release (https://github.com/gessnerfl/fake-smtp-server/releases/download/1.10.4/fake-smtp-server-1.10.4.jar) with Java 11 and Java 17 on my Mac and for both it is working fine.

I guess there is something wrong with your Java installation. Please make sure you compile the application using Java 11+ and also run the application with a properly installed Java 11+

gessnerfl commented 1 year ago

Closing the output after more than 3 months of inactivity