outline-apps icon indicating copy to clipboard operation
outline-apps copied to clipboard

[Bug]: java.lang.module.FindException: Module java.se.ee not found

Open sijjeel opened this issue 1 year ago • 2 comments

Application

Outline Client

Describe the bug

I have used java 11 as mentioned in the requirements and which i tried to install the build-tools using following command.

$HOME/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager "platforms;android-34" "build-tools;34.0.0"

it says you should use java 17 or above.

then i switched my java version to 17 and updated my Java home path in ~/.zshrc file and ran the same command. It's giving me following error.

$HOME/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager "platforms;android-34" "build-tools;34.0.0" Error occurred during initialization of boot layer java.lang.module.FindException: Module java.se.ee not found

Steps to reproduce

When i run cordova requirements It gives following error.

npx cordova requirements android

Requirements check results for android: Java JDK: installed 17.0.12 Android SDK: installed true Android target: not installed Command failed with exit code 1: avdmanager list target Error occurred during initialization of boot layer java.lang.module.FindException: Module java.se.ee not found Gradle: installed /opt/homebrew/Cellar/gradle/8.10.2/bin/gradle Some of requirements check failed

Any help will be greatly appreciated.

What did you expect to happen?

No response

What actually happened?

No response

Outline Version

Latest

What operation system are you using?

Android

Operating System Version

Sequoia 15.0

Screenshots and Videos

No response

sijjeel avatar Oct 09 '24 13:10 sijjeel

You need to switch to Java 11 when building Outline, even if you have installed Java 17. Did you follow https://github.com/Jigsaw-Code/outline-apps/blob/master/client/src/cordova/android/README.md?

sbruens avatar Oct 15 '24 19:10 sbruens

You need to switch to Java 11 when building Outline, even if you have installed Java 17. Did you follow https://github.com/Jigsaw-Code/outline-apps/blob/master/client/src/cordova/android/README.md?

I have used java 11 and it gives me following error.

`npx cordova requirements android

Requirements check results for android: Java JDK: installed 11.0.24 Android SDK: installed true Android target: not installed Command failed with exit code 1: avdmanager list target Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156) at com.android.repository.api.SchemaModule.(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81) at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213) at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) ... 5 more Gradle: installed /opt/homebrew/Cellar/gradle/8.10.2/bin/gradle Some of requirements check failed`

sijjeel avatar Oct 16 '24 12:10 sijjeel

Could you try building the app directly with Java 11 and Android SDK (make sure all the Android SDK commands including avdmanager and sdkmanager are in PATH)?

npm run action client/src/cordova/build android

jyyi1 avatar Oct 29 '24 19:10 jyyi1

Hi there,

We're closing this issue due to inactivity. We haven't heard back from you in a while, and aim to keep our issue tracker organized.

If you're still experiencing this problem or have any additional information to share, please feel free to reopen this issue or create a new one.

Thank you for your understanding!

sbruens avatar Dec 03 '24 20:12 sbruens