Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not find or load main class jar #40

Closed
spiridonovdavid opened this issue Feb 17, 2018 · 4 comments
Closed

Error: Could not find or load main class jar #40

spiridonovdavid opened this issue Feb 17, 2018 · 4 comments

Comments

@spiridonovdavid
Copy link

Sorry i`am newbie, but trying to make this works.
What i did

  1. installed Ubuntu on my vmware
  2. downloaded sources
  3. installed maven
  4. compiled sources with command "mvn install"
  5. trying to run jar with terminal "java jar pubg-radar-1.0-SNAPSHOT-jar-with-dependencies.jar"
    and now i am stucked because i have an error:
    "Error: Could not find or load main class jar"

What i`am doing wrong ?

@jrudio
Copy link

jrudio commented Feb 19, 2018

It looks like on number 5 you're missing a hyphen before jar. So it thinks you're trying to load a class called jar instead of telling it the location.

@spiridonovdavid
Copy link
Author

You was right! Thx, so stupid mistake )))

@NatsumeZhang
Copy link

root@ubuntu:/home/natsume/Desktop# java -jar pubg-radar-1.0-SNAPSHOT-jar-with-dependencies.jar 192.168.137.7 PortFilter 192.168.137.1
Error: Could not find or load main class pubg.radar.GameKt

I have added a hyphen, still doesn't work

@NatsumeZhang
Copy link

Win 10 64bit
Eclipse Mars
JDK 1.8
It came out to be problem , and I added to surrround , then build the soure and get the jar file, but it dosen't work and shows 'Could not find or load main class pubg.radar.GameKt', so I remove the and rebulid it , thnaks to god , I see the panle comes up , after running game, nothing show up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants