I'm working with gradle and trying to deploy my JAVAFX application into .apk
If i run my gradle command it says that my JAVA_HOME is set to an invalid directory.
It is set to C:\Program Files\Java\javaversion\bin
(there is an actual version actually, but it isn't necessery atm)
And the same is at the environment variable.
Any ideas, why i'm getting this error?
What is JAVA_HOME?
Its an Environment variable that helps to locate JDK and JRE.
As you are setting it to.
C:\Program Files\Java\javaversion\bin
JAVA_HOME Should be set to root directory not upto bin
C:\Program Files\Java\javaversion
And in path variable put
C:\Program Files\Java\javaversion\bin OR %JAVA_HOME%\bin
You can read more about from This Link.
JAVA_HOME should be pointing one directory up, not at the bin directory
instead of
C:\Program Files\Java\javaversion\bin
use
C:\Program Files\Java\javaversion
#charen You are right. Gradle, as of its last version 3.4.1, only works with Java 32 bits. So your JAVA_HOME shoud point to the Java JRE at Program Files (x86).
Related
I have a problem that I cannot solve, When I run the executable of my program it gives me the following error:
The code executable cannot continue because libgcc_s_seh-1.dll was not found. To fix the problem, try reinstalling the program
I tried to manually copy and paste the file (libgcc_s_seh-1.dll) into the folder where I keep the executable but I get the following error:
The application could not be started correctly (0xc000007b)
Additional information:
I use windows 10 64 bit
I Use mingw81_64
I use version 6.1.2 of Qt
What can I solve the problem?
I guess you double-clicked in exe file that provides after building in release mode :
For Deploy and create Exe output with QT in windows you should follow this way:
put your compiler path in your system path. now you use mingw81_64 you should set it. something like Qt/tools/mingw81_64/bin
copy exe file that provides after building in release mode in one folder and run mingw81_64 cmd (it has separate cmd)
and cd to that folder path
windeployqt app.exe
This command will get all dll needs for your app and your exe will work .
if you use qml
windeployqt --qmldir (the path of its directory ) app.exe
and also see these youtube videos for more info:
https://www.youtube.com/watch?v=LdSTgR0xJco
https://www.youtube.com/watch?v=hCXAgB6y8eA
For specific error of libgcc_s_seh-1.dll was not found, please try to copy libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll into your compiler path like Qt/tools/mingw81_64/bin.
You should copy libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll into your exefile path after executing windeployqt.exe with all files are in correct version.
Before I start explaining the problem - yes I looked in the Qt forums and website before coming here.
I downloaded and installed the Qt libraries and the IDE. After the installation I got the following:
http://store.picbg.net/pubpic/04/59/4ce35a1b489a0459.png
after I clicked on the command prompt icon I got the following:
http://store.picbg.net/pubpic/79/13/0d46b97041da7913.jpg
When I type "vcvarsall.bat" I get and invalid command error. I am obviously doing something wrong, question is - what exactly?
Your error simply means that vcvarsall.bat is not in a folder that is listed in your PATH environment variable. You can fix that in two ways.
You can set your PATH environment variable to include the folder where vcvarsall.bat is located.
You can cd into the folder where vcvarsall.bat is located and call vcvarsall.bat from there.
In my case (and by default), vcvarsall.bat is located in the following directory:
C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat
EDIT: For Visual Studio 2017, the location has changed. It is now at:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
When I am trying to run Apache Directory Studio in ubuntu, I am getting the Following error,
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run ApacheDirectoryStudio. No Java virtual machine was found after searching the following locations: /data/Admin/Work/ApacheDirectoryStudio-linux-x86-2.0.0.v20130628/jre/bin/java java in your current PATH
Where can I specify the JRE location? Is that in conf.ini? Then How can I set it?
(I am unable to tag Apache Directory Studio in this question.)
In folder with Apache Directory Studio there is Apache Directory Studio.ini file where java path can be set.
I got the solution. I have copied JRE into my Apache Directory Studio Folder.
In Windows OS
Below worked for me.
Go to environment variables, by running below command in Run or Cmd
rundll32.exe sysdm.cpl,EditEnvironmentVariables
Add below (or your jdk directory) to User Path, in Environment variables
C:\jdk-13\bin
Hope that solves.
In folder with Apache Directory Studio there is Apache Directory Studio.ini file where java path can be set.
include the following lines:
-vm
/home/yourUser/Downloads/jre1.8.0_211/bin
change "/home/yourUser/Downloads/jre1.8.0_211/bin" for your path to jre 1.8
I have fixed this issue by adding below lines in Info.plist file
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin/java</string>
Reference : https://github.com/Homebrew/homebrew-cask/issues/51629
I faced this same issue. I got it resolved by manually adding below lines in C:\Program Files\Apache Directory Studio\ApacheDirectoryStudio.ini
-vm
C:/Program Files/Java/jdk-11.0.17/bin
Please remember the value is without quotes.
I installed JDK 7 update 5 (64 bit) on my server(Server has 64 bit windows OS). Set the environment path. When i do java -version. I get the output java version 1.7_0_05 but when i try to install glass fish then i get the error that This application needs version 1.6 or higher of the Java (TM)2 Runtime Environment . I have set both the JDK bin folder and JRE bin folder on my environment path. Why i am getting this ?
Thanks
I didn't update the environment variable but i think path should be to JRE that is inside JDK like i tried this and it worked
D:\Basit>ogs-3.1.2-windows.exe -j "c:\Program Files\Java\jdk1.7.0_05\jre".
Hope this answer will help others also.
Open cmd make sure you cd to the path of you glassfish installation file :cd C:\Users\John\Downloads
locate your jre file which should be in your jdk1.7x : C:\Program Files\Java\jdk1.7.0_11\jre
In the cmd paste this : glassfish-3.1.2.2-windows.exe -j "C:\Program Files\Java\jdk1.7.0_11\jre"
make sure you have the correct version
In my case, the problem was a blank space in "Program Files" (Yes I have JAVA_HOME set) You can run installation from cmd with argumentation (do not forget quotation) -j "c:/.../java path" Example from my case:
c:\Users\Kryst\Downloads>glassfish-4.0-web-windows.exe -j "C:\Program
Files\Java\jdk1.7.0_ 79\jre"
Fixed.
Java Version > Java v1.6
Open downloaded folder and select
shift+right-click+open-command-window-here
Type exact file name of downloaded file -j and JRE path
in my case
ogs-3.1.2.2-windows.exe -j "c:\Java\jdk1.8.0_31\jre
Try setting JAVA_HOME environment variable to the JDK root folder.
or just download a bundle package such as http://netbeans.org/downloads/ and click on the Java EE or ALL catagory
I have Qt 4.6.3 installed at C:\Qt\4.6.3 (Windows).
I just compiled a Qt application and went to run the EXE. When double-clicking on the executable, saw an error message:
"This application has failed to start because QtXmld4.dll was not found. Re-installing the application may fix this problem."
Found QtXmld4.dll in C:\Qt\4.6.3\lib. When copying this file into the same directory as the executable, I no longer see this error, but instead the same error for the Qt core DLL.
Is there an environment variable I should have set so these libraries are found?
Current Qt environment variables:
Path = C:\Qt\4.6.3\lib;C:\Qt\4.6.3\bin;C:\Qt\4.6.3\include;%PATH%
QMAKESPEC = C:\Qt\4.6.3\mkspecs\win32-g++
QTDIR = C:\Qt\4.6.3
QTLIB = C:\Qt\4.6.3\lib
TIA
You need to make sure that C:\Qt\4.6.3\lib is on your system path environment variable.
The initial problem was solved because the dll is now local, but that dll obviously references QtCore.dll which will be in the same folder.
Did you restart your machine after installing Qt? It could have updated the path, but it would only take effect after the next restart.