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

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

Open
sijjeel opened this issue Oct 9, 2024 · 3 comments
Open

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

sijjeel opened this issue Oct 9, 2024 · 3 comments
Labels
bug Something is broken, we are tracking it needs more info We need more information in order to help or verify os/android

Comments

@sijjeel
Copy link

sijjeel commented Oct 9, 2024

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 sijjeel added the bug Something is broken, we are tracking it label Oct 9, 2024
@sbruens
Copy link
Contributor

sbruens commented Oct 15, 2024

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 sbruens added needs more info We need more information in order to help or verify os/android labels Oct 15, 2024
@sijjeel
Copy link
Author

sijjeel commented Oct 16, 2024

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`

@jyyi1
Copy link
Contributor

jyyi1 commented Oct 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken, we are tracking it needs more info We need more information in order to help or verify os/android
Projects
None yet
Development

No branches or pull requests

3 participants