Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Error when attempting to install from AUR on Manjaro #16

Closed
WarpedVoxel opened this issue May 28, 2021 · 22 comments
Closed

Error when attempting to install from AUR on Manjaro #16

WarpedVoxel opened this issue May 28, 2021 · 22 comments

Comments

@WarpedVoxel
Copy link

WarpedVoxel commented May 28, 2021

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) installing among-us-dumpy-gif-maker          [######################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
Error: Could not find or load main class .usr.lib.jvm.java-15-openjdk.bin.java
Caused by: java.lang.ClassNotFoundException: /usr/lib/jvm/java-15-openjdk/bin/java

/usr/lib/jvm/java-15-openjdk/bin/java does exist

@WarpedVoxel WarpedVoxel changed the title Error when attempting to install frm AUR on Manjaro Error when attempting to install from AUR on Manjaro May 28, 2021
@ThatOneCalculator
Copy link
Owner

ThatOneCalculator commented May 29, 2021

Error: Could not find or load main class .usr.lib.jvm.java-15-openjdk.bin.java
Caused by: java.lang.ClassNotFoundException: /usr/lib/jvm/java-15-openjdk/bin/java1

Was this part of the among-us-dumpy-gif-maker command or part of the AUR package installing?

@WarpedVoxel
Copy link
Author

This is part of the installation

@ThatOneCalculator
Copy link
Owner

Did you run yay -S among-us-dumpy-gif-maker && among-us-dumpy-gif-maker like it says in the repo, or JUST yay -S among-us-dumpy-gif-maker? This really doesn't look like part of the PKGBUILD

@WarpedVoxel
Copy link
Author

ah you're right, I did run the full thing

@ThatOneCalculator
Copy link
Owner

Can you run cat /usr/bin/among-us-dumpy-gif-maker?

@WarpedVoxel
Copy link
Author

#!/bin/sh

/usr/lib/jvm/java-1*-openjdk/bin/java -jar /usr/lib/Among-Us-Dumpy-Gif-Maker-1.6.0-all.jar

@ThatOneCalculator
Copy link
Owner

Can you run /usr/lib/jvm/java-1*-openjdk/bin/java -jar /usr/lib/Among-Us-Dumpy-Gif-Maker-1.6.0-all.jar in your shell prompt?

@WarpedVoxel
Copy link
Author

Error: Could not find or load main class .usr.lib.jvm.java-15-openjdk.bin.java
Caused by: java.lang.ClassNotFoundException: /usr/lib/jvm/java-15-openjdk/bin/java

but /usr/lib/jvm/java-15-openjdk/bin/java definitely exists

@ThatOneCalculator
Copy link
Owner

can you run /usr/lib/jvm/java-15-openjdk/bin/java -version?

@WarpedVoxel
Copy link
Author

openjdk version "15.0.2" 2021-01-19
OpenJDK Runtime Environment (build 15.0.2+7)
OpenJDK 64-Bit Server VM (build 15.0.2+7, mixed mode)

@ThatOneCalculator
Copy link
Owner

Can you run archlinux-java status?

@WarpedVoxel
Copy link
Author

Available Java environments:
  java-11-openjdk
  java-15-openjdk
  java-16-openjdk (default)
  java-8-openjdk

@ThatOneCalculator
Copy link
Owner

Can you run /usr/lib/jvm/java-15-openjdk/bin/java -jar /usr/lib/Among-Us-Dumpy-Gif-Maker-1.6.0-all.jar?

@WarpedVoxel
Copy link
Author

that one works

@ThatOneCalculator
Copy link
Owner

Ok! I'm a bit busy, I'll update the AUR package in a bit :)

@ThatOneCalculator
Copy link
Owner

@VoxelDraqon can you run yay -Syu and then run the program?

@WarpedVoxel
Copy link
Author

it's still throwing the same error

@ThatOneCalculator
Copy link
Owner

Could you run cat /usr/bin/among-us-dumpy-gif-maker again?

@WarpedVoxel
Copy link
Author

#!/bin/sh

/usr/lib/jvm/java-1*-openjdk/bin/java -jar /usr/lib/Among-Us-Dumpy-Gif-Maker-1.6.0-all.jar

@ThatOneCalculator
Copy link
Owner

That means you didn't cleanbuild when you updated, which is always bad practice.

yay -Rnscd among-us-dumpy-gif-maker && yay -S among-us-dumpy-gif-maker

@WarpedVoxel
Copy link
Author

ok that is a good thing to know because I heard somewhere else that that didn't matter so I was confused about that for a while. It does work now

@ThatOneCalculator
Copy link
Owner

Whoever told you that is an absolute dunce, CleanBuild takes out the old files and puts in the new ones while non-cleanbuild only clones the latest source repo (IF applicable, it's not here) and updates the version number. PLEASE ALWAYS CLEANBUILD! It will save you so many headaches.

Also, word of advice. Manjaro is a really flawed and insecure distro. If you want something Arch based that's not Arch, I'd recommend EndeavourOS.

Anyway, hope you have a good day! If you like this project, feel free to leave a star, it helps out a bunch and it's free <3

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

No branches or pull requests

2 participants