Apache Directory Studio- JRE Issue - openldap

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.

Related

Can not load library Qt5Widgets.dll

Error when run FBLTool_0224.exe
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
installing visual C++ 2010 runtime x86 solved problem

The code executable cannot continue: libgcc_s_seh-1.dll was not found

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.

JAVA_HOME is set to an invalid directory

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).

qt installation and path in ubuntu

I have compiled qt in to /home/user/Software/qt-4.7.4 folder. Then Iset the path in .profile. I did the static built before to /home/user/Software/qt-4.7.4-static-build. For some reason even after updating the PATH env variable it is not changed to the new path and keep giving me the old qmake version.
I tried source command but it does help, also when I try qmake -version it shows me the old path. if I try qmake in a qt project obviously it gives me
QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: /home/user/testUI.pro
can someone help me to get qt running. I am using ubuntu linux 10.04 and
I think you have to update both the QT and QTMAKESPEC environment variables.
Alight After some head banging and consulting a few people I figured the solution my self. What I forget to mention was that I changed the name of the qt installation folder which is a BIG NO NO. Apparently qmake stores its path statically rather than using the path variable.

Where to get this Java.exe file for a SQL Developer installation

I just installed Oracle 11g, and tried to start Oracle SQL developer so as to start writing queries.
It is asking me:
Enter the full pathname for the java.exe file .
Where do I find this? I did a global search for java.exe and am sure did not get some Oracle related pdf files. Also my Oracle is installed out of users/vas.
I found my java.exe that worked for SQL Developer at C:\ORACLE11G\product\11.2.0\client_1\jdk\bin where C:\ORACLE11G is my Oracle Home. The client that I have installed is 11.2.0.
Hope this helps.
I encountered the following message repeatedly when trying to start SQL Developer from my installation of Oracle Database 11g Enterprise: Enter the full pathname for java.exe.
No matter how many times I browsed to the correct path, I kept being presented with the exact same dialog box. This was in Windows 7, and the solution was to right-click on the SQL Developer icon and select "Run as administrator". I then used this path: C:\app\shellperson\product\11.1.0\db_1\jdk\jre\bin\java.exe
You need to install JAVA SDK
and give the path upto bin directory which contains the java.exe file.
example - c:/programfiles/java/jdk/bin
Hhere is what what I did to fix it:
Prerequisite
Make sure JDK is installed (Not JRE).
Make sure Oracle is installed
After
Open the file ..\sqldeveloper\sqldeveloper\bin\sqldevloper.conf and add the following line to set jdk path:
SetJavaHome C:\Program Files\Oracle\11g\product\11.1.0\client_1\jdk
If it dont allow you to save the file, copy whole sqldeveloper folder to a different location where you have write access to modify this file.
Run sqldeveloper.exe (from the new place if you moved the folder out from oracle folders) as administrator and enter the jdk path that comes with your oracle installation: e.g. C:\Program Files\Oracle\11g\product\11.1.0\client_1\jdk\bin
You have to give the path to jdk ...typically C:\Program Files\Java..
Still if it is asking you for the path then
Check this http://www.shellperson.net/oracle-sql-developer-enter-the-full-pathname-for-java-exe/
Please provide full path >
In mines case it was E:\app\ankitmittal01\product\11.2.0\dbhome_1\jdk\bin\java.exe
From : http://www.javamadesoeasy.com/2015/07/oracle-11g-and-sql-developer.html
[Context]
In a virtual machine of WinXP.
My "java.exe" was in the Oracle11g folder, under the path "C:\Oracle11g\product\11.2.0\dbhome_1\jdk\bin\java.exe".
Hope it helps!!
If you have Java installed, java.exe will be in the bin directory. If you can't find it, download and install Java, then use the install path + "\bin".
If you don't want to install Java or you just want to get started writing queries quickly, then use SQL*Plus, which is the command line too.
It's not pretty, but will get you started quickly and there is Oracle documentation on it.
you can enter the jdk path required as th full path for java.exe in sql developer for oracle 11g.
I found the jdk at the following path in my system.
c:\app\sony\product\11.0.0\db_1\jdk
Use any JDK installation as long as it is NOT 64bit.
The easiest way to find out if it is 64bit installation is to check the folder it resides into.
e.g.
C:\Program Files\... is for 64 bit programs
C:\Program Files (x86)\... is for 32 bit programs
You must install the latest Java SE Development Kit (note not the Java SE Runtime Environment ) and provide the path ex C:\Program Files\Java\jdk1.6.0_41
you should browse to where java installed, then go to bin directory which contains the java.exe file.
example - C:\Program Files\Java\jdk1.6.0_03\bin\java.exe
but you should run your SQL Developer as Administrator
If you are asked to enter the full pathname for the JDK, click Browse and find it. For example, on a Windows system the path might have a name similar to C:\Program Files\Java\jdk1.7.0_51.

Resources