Error: Could not find or load main class C:.java.javafx-sdk-19.0.2.1.lib--add-modules - javafx

I am new to javafx and when i try run my application in vs code,it produces the following error which is:
PS C:\Users\user\3D Objects\java_projects> c:; cd 'c:\Users\user\3D Objects\java_projects'; & 'C:\Program Files\Java\jdk-19\bin\java.exe' '#C:\Users\user\AppData\Local\Temp\cp_dpl2unip6fff4m8qjz0emjat8.argfile' 'SudokuApplication'
Error: Could not find or load main class C:.java.javafx-sdk-19.0.2.1.lib
Caused by: java.lang.ClassNotFoundException: C:.java.javafx-sdk-19.0.2.1.lib
I expect solution to my error so that my application can run normally.

Related

JavaFX not running error Module javafx.controls not found

after following the proccedure under Non-Moduler from IDE and running the programe, i am getting the error-
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.controls not found
after installing JavaFX I was expecting the programe to rum without error however, I got-
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.controls not found
I was trying to set up JavaFX in my eclipse IDE. On my run configuration, I specified the VM path as provided documentation at openjfx.io. I changed the path under argument to "--module-path "C:\Java\javafx-sdk-19\lib" --add-modules javafx.controls,javafx.fxml" I still got the error JavaFX not running error Module javafx.controls not found. But I figured out the problem was I did not specify the path in the Preference under JavaFX / JavaFX11+SDK to C:\Java\javafx-sdk-19\lib
in Eclipse Go To windows/preference/JavaFx/JavaFX11+SDK

Jacoco agent library failed to init: instrument

java -javaagent:/home/org.jacoco.agent-0.8.7-runtime.jar=address=*,port=36320,destfile=jacoco-it.exec -jar pytsettle-0.0.1-SNAPSHOT.jar --spring.batch.job.names=profileReaderJob
Encountering below mentioned error :
Error opening zip file or JAR manifest missing :
/home/org.jacoco.agent-0.8.7-runtime.jar Error occurred during
initialization of VM agent library failed to init: instrument
Can someone please help . The org.jacoco.agent-0.8.7-runtime.jar has read,write,execute access to all.

scala native running demo

After successful building scala native trying to run the demo using following command
cd scala-native
sbt demoNative/run
which returns following error
/home/rimashm/.scalanative/rtlib-0.1-SNAPSHOT/rt.cpp:1:10: fatal error: 'exception' file not found \#include <exception> 1 error generated.
java.io.IOException: Cannot run program "/home/rimashm/MITScriptTest/scala-native/demo/native/target/scala-2.11/demonative-out": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
[trace] Stack trace suppressed: run last demoNative/*:run for the full output. [error] (demoNative/*:run) java.io.IOException: Cannot run program "/home/rimashm/MITScriptTest/scala-native/demo/native/target/scala-2.11/demonative-out": error=2, No such file or directory [error] Total time: 16 s, completed Jun 7, 2016 4:58:18 PM
Scala Native contains a few lines of C++ code in https://github.com/scala-native/scala-native/blob/master/rtlib/src/main/resources/rt.cpp. Given your error message it seems that this part fails to compile. This might have been caused by missing headers for libc++.

Error to build a signed apk

i'm trying to build an signed apk with visual studio /Cordova template. But i'm receiving this error: ERROR building one of the platforms 1
And : Error MDAVSCLI 1
I´m following this tutorial:
http://taco.visualstudio.com/en-us/docs/tutorial-package-publish-readme/
and my Keystore is like image bellow:
-package-resources:
[aapt] Creating full resource package...
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating MainActivity-release-unsigned.apk for release...
-post-package:
-release-prompt-for-password:
-release-nosign:
-release-sign:
[echo] Signing final apk...
BUILD FAILED
C:\Users\Leo\AppData\Local\Android\sdk1\tools\ant\build.xml:1135: The following error occurred while executing this line:
C:\Users\Leo\AppData\Local\Android\sdk1\tools\ant\build.xml:1147: C:\Users\Leo\Desktop\Mobile\Mobile\platforms\android\"my-release-key.Keystore" (The file name syntax, the name of the directory or volume label incorrect)
Total time: 52 seconds
Picked up _JAVA_OPTIONS: -Xmx512M
C:\Users\Leo\Desktop\Mobile\Mobile\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "ant release -f C:\Users\Leo\Desktop\Mobile\Mobile\platforms\android\build.xml -Dout.dir=ant-build -Dgen.absolute.dir=ant-gen"
Command finished with error code 1: C:\Users\Leo\Desktop\Mobile\Mobile\platforms\android\cordova\build.bat --release
ERROR building one of the platforms : error : C:\Users\Leo\Desktop\Mobile\Mobile\platforms\android\cordova\build.bat: Command failed with exit code 1
You may not have the required environment or OS to build this project
MDAVSCLI : error : C:\Users\Leo\Desktop\Mobile\Mooobile\platforms\android\c
I've found a way : removing the quotes in my ant.properties i can build.

Using the com.loopj.android.http library causes java.lang.NoClassDefFoundError

I have tried uses-library clause but that gives me this error : Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
I tried adding the library android-async-http-1.3.2.jar to both the lib folder and as a user library. There are no compile time errors but during run time it doesn't seem to find the library for some strange reason.
This is the error log :
06-01 14:29:57.073: E/AndroidRuntime(5354): FATAL EXCEPTION: main
06-01 14:29:57.073: E/AndroidRuntime(5354): java.lang.NoClassDefFoundError: com.loopj.android.http.RequestParams
06-01 14:29:57.073: E/AndroidRuntime(5354): at com.android.myprojectname
Check that .jar is checked in the tab "Order and Export" in the window "Java build path".
If it doesn't work, add your folder "libs" in "Source" tab.
The jar file should be in the libs folder not the lib folder, try that.
Also, make sure you are importing the classes for use in your code:
import com.loopj.android.http.*;

Resources