faiqsohail / ProxyChecker

An easy to use open-source, multithreaded Proxy Checker. Allows you to quickly check HTTP and SOCKS proxies in a user friendly GUI, for Windows, Mac OS, Linux.
https://proxychecker.co
GNU General Public License v2.0
163 stars 28 forks source link

Could not find or load main class co.proxychecker.ProxyChecker.startup.ProxyChecker #7

Closed Etile0 closed 3 years ago

Etile0 commented 3 years ago

Describe the bug I wanted to use this proxy checker but when I try to run it I get this error. I tried to double click it, but it just closed after a second, not showing anything. I then went into the terminal to investigate and got that error.

To Reproduce Steps to reproduce the behavior:

  1. Download releases jar
  2. Open terminal
  3. Execute java -jar ProxyChecker.jar
  4. See error:
    Error: Could not find or load main class co.proxychecker.ProxyChecker.startup.ProxyChecker
    Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

    Desktop (please complete the following information):

    • OS: Linux (Manjaro)
    • openjdk 11.0.10 2021-01-19
Etile0 commented 3 years ago

If I try to make it I get this error:

mkdir -p out
mkdir -p artifact
wget -N http://central.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar
--2021-02-04 16:13:45--  http://central.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar
Resolving central.maven.org (central.maven.org)... failed: Name or service not known.
wget: unable to resolve host address ‘central.maven.org’
make: *** [makefile:12: all] Error 4
daniel071 commented 3 years ago

After making some changes to the makefile (I will create a PR with the changes), I got ProxyChecker to build. Swap http://central.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar with https://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar.

As for the current release binary not working, a rebuild should fix the issue.

If you're looking for a working binary, I put it up on my webserver here