I am trying to package an app to an exe file, (including java8, so it is self contained). The app needs to run on any machine even if java is not installed.
Here is a screenshot of my settings:
I get this as an error:
Error:Java FX Packager:
BUILD FAILED
/home/foo/.IntelliJIdea14/system/compile-server/_temp_/build0.xml:11:
Total time: 0 seconds
Error:Java FX Packager: Buildfile: /home/foo/.IntelliJIdea14/system/compile-server/_temp_/build0.xml
build artifact:
Error:Java FX Packager: fx:deploy task has failed.
Now what am I supposed to get from this error ?
How can I fix this and get my app executable?
Related
Successfully compiled app eventually got stuck when I an changed icon color. Hence I closed the emulator. After that when I rerun the emulator , I always receive below build gradle error. And a previous version of the app is available in the emulator but not the new changes.
Any idea on how to fix this issue ?
build failed 11 s 936 ms
Run build 10 s 560 ms
Program type already present: com.rom4ek.arcnavigationview.R
org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing
com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform$DexConversionWorkAction
org.gradle.tooling.BuildException: Failed to process C:\Users\Desktop\Project\testapp\app\build\intermediates\javac\debug\classes
com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\Desktop\Project\testapp\app\build\intermediates\javac\debug\classes
com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
com.android.tools.r8.CompilationFailedException: Compilation failed to complete
com.android.tools.r8.utils.AbortException: Error: Program type already present: com.rom4ek.arcnavigationview.R
Build > Clean Project > Rebuild Project solved the issue.
Build > Clean Project > Rebuild Project solved the issue.
I'm using oracle virtual box connected it to ssh and try to make a small java project which I am unable because I face some errors like
error while writing Simple: Simple.class (Permission denied)
class Simple{
^
1 error
Build step 'Execute shell' marked build as failure
Finished: FAILURE
I'm trying to run java project on jenkins
I compiled pjsip, and now I'm trying to use pjsua2 in netbeans for an linux application. Using Swig I was able to get the java code, witch I copied as a package of my project. The project is in github on this link:
https://github.com/eduardobonfa/PjsipLinux
But when I try to run I got the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.pjsip.pjsua2.pjsua2JNI.swig_module_init()V
at org.pjsip.pjsua2.pjsua2JNI.swig_module_init(Native Method)
at org.pjsip.pjsua2.pjsua2JNI.<clinit>(pjsua2JNI.java:2619)
at org.pjsip.pjsua2.Endpoint.<init>(Endpoint.java:68)
at javaapplication3.test.main(MyAccount.java:44)
/home/eduardo/.cache/netbeans/8.2/executor-snippets/run.xml:53: Java returned: 1
BUILD FAILED (total time: 0 seconds)
What Do I need to do?
I compiled the pjsip using the following steps:
./configure --enable-shared --prefix=/usr/lib
make dep && make && make install
go to swig folder
make
Got the java code and put in my project
Am I missing something??
I'm using cordova 6.4.0 with node 6.9.4. I have android studio installed in my PC (windows) with SDK 23,24,25 and ANDROID_HOME, ANDROID_NDK_HOME, ANT_HOME, JAVA_HOME in my system variable. After creating a new project using cordova and then trying to add android platform I'm getting following error:
E:\Android\q>cordova platform add android
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: io.cordova.hellocordova
Name: HelloCordova
Activity: MainActivity
Android target: android-24
Subproject Path: CordovaLib
Android project created with cordova-android#6.0.0
Installing "cordova-plugin-whitelist" for android
ANDROID_HOME=C:\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121
Subproject Path: CordovaLib
Incremental java compilation is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> java.lang.NullPointerException (no error message)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 8.891 secs
Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone (E:\Android\q\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
Error: cmd: Command failed with exit code 1
I uninstalled JAVA(JDK,JRE), Andorid Studio, Cordova CLI and reinstalled them. After that I'm getting same error. I tried removing whitelist plugin and it throw build error with exit code 1. How to solve this ?
I am hoping someone could shed some light on the following build error I get when trying to launch a project in Android Studio just imported form Eclipse:
Error:Execution failed for task ':dIveApp:dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_11.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
I am running on OS X Yosemite 10.10 and running java 8.0 Update 60 (build 1.8.8_60-b27). the url above seems to reference jdk1.7.0_11jdk, not sure if this is the issue or how to check.
Cheers
Look at gradle console log, most probably you will see an exact error.
Most of the time this is because you added the same package few times - library for different modules or in different places.
If not - try to clean - rebuild project.
p.s. You can change JDK for project in File -> Project Structure
Also, there is already answers for this question
Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException