I have hit a road block. We are using Jxbrowser and running into an issue where launching chromium process from temp folder is blocked on the machine.
Is there any way to configure JXbrowser to launch it from user directory instead of temp folder ?
Any help would be appreciated.
Thanks,
Sahil
By default JxBrowser extracts Chromium binaries into user's temp folder and run Chromium process from that directory. If you would like to change the folder for Chromium binaries, then use the jxbrowser.chromium.dir System Property that you need to initialize with path to the directory where the Chromium binaries should be located.
You can read more about this in the Chromium Binaries article.
Related
We are using JFrog Artifactory with TFS 2017 and I am looking to use the JFrog Artifactory Deployer task with my build. Looking to upload artifacts from a shared UNC part. Whilst it works fine when uploading artifacts from local file system, it doesn't work with UNC path. I tried using mapped drive but that didn't work either. Does anyone know a solution for this?
Getting the following error
running 'C:\agent_work\16\a\jfrog.exe' rt upload
'\myshared\drops\BuildName\BuildVersion\**\*.zip' 'ext-repo'
--url=https://aritfactory/artifactory --user=******** --password=******** --props='build.number=2996783;build.name=ArtifactoryUpload' 2017-05-22T15:23:06.5911571Z 2017-05-22T15:23:06.5911571Z
2017-05-22T15:23:06.8240199Z Pinging Artifactory...
2017-05-22T15:23:07.0369535Z Done pinging Artifactory.
2017-05-22T15:23:07.0369535Z Path does not exist:
\myshared\drops\buildName\BuildVersion 2017-05-22T15:23:07.0838234Z
[error]Microsoft.PowerShell.Commands.WriteErrorException: Deployment to Artifactory failed 2017-05-22T15:23:07.0994475Z ##[error]PowerShell
script completed with 1 errors. 2017-05-22T15:23:07.0994475Z
[section]Finishing: JFrogArtifactoryDeployer
You can copy files to a local folder by using Copy Files or Windows Machine File Copy task, then upload artifacts.
Another workaround is that adding a powershell script task in your build definition to map the network drive and then publish to artifacts. I just did a quick test with it and it works. the powershell script I used:
New-PSDrive -Name "G" -PSProvider "FileSystem" -Root "\\UNC\Path"
cd G:\
./jfrog.exe rt upload folder\\file.txt 'example-repo-local' --url=https://xxxxx.jfrog.io/xxxx/example-repo-local/ --user='xxxxx' --password='xxxxx' --props='build.number=001;build.name=BuildName'
Remember to download the "jfrog.exe" and place it in the UNC Path.
I think the easiest solution would be to make a symbolic link of the data folder and copy the contents of the data folder into the symbolic link than restart Artifactory.
I am working on windows server 2003. The program written in VB was working fine previously.
But now it starts to show error message :
failed to load control 'imagelist' from mscomctl.ocx. Your version of
mscomctl.ocx may be outdated. [...]
How can i check if mscomctl is registred or not and also what version i am using?
Download the mscomctl.ocx file from microsoft download center, then learn on how to register an activeX control manually!
Unregister and register mscomctl.ocx:
cd /d C:\Windows\SysWOW64
regsvr32 /u /s mscomctl.ocx
regsvr32 /s mscomctl.ocx
Explanation: In most cases isn't OCX file rewritten by an older version, but the older version is placed in some directory by an incorrect setup program and registered in this new place. So it is sufficient to unregister & register again. regsvr32.exe takes the right one from C:\Windows\SysWOW64 folder.
Also, maybe not the most probable cause, but could save some time: disk space.
We had this issue on our VM, we got this message and we figured out we had no byte left on the C: drive. The issue didn't occur after some cleaning.
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 try to deploy my QT Application build on Windows with VC++(Debug mode). I run the application on a PC on which QT is not installed. I also provided some .dll libraries that it requires. Here is the folder layout:
D3DCompiler_43.dll
icudt49.dll
icuin49.dll
icuuc49.dll
libEGLd.dll
libGLESv2d.dll
MyApp.exe
MyApp.ini
Qt5Cored.dll
Qt5Guid.dll
Qt5Widgetsd.dll
plugins
plugins\platform\
plugins\platform\qminimal.dll
plugins\platform\qminimald.dll
plugins\platform\qwindows.dll
plugins\platform\qwindowsd.dll
When i run the application i get an error saying:"Failed to load platform plugin 'windows'. Available platforms are:"
I think it can not find a platform to load altough i provided platforms under the plugins folder. I also add the platform path to system path but it didn't solve also. Any suggestion?
The plugins directory is unnecessary.
Try this structure:
...
Qt5Widgetsd.dll
platform\
platform\qminimal.dll
platform\qminimald.dll
platform\qwindows.dll
platform\qwindowsd.dll
There is a help page which tells in detail how to deploy Qt5 applications for Windows.
The most helpful info from there: There is a Windows deployment tool (windeployqt) which finds all required dlls automatically for you!
You can load your plugins at the start of the program main() as follows:
QCoreApplication app(argv, args);
QString sDir = QCoreApplication::applicationDirPath();
app.addLibraryPath(sDir+"/plugins/platform");
When running Qt in Debug, the output window tells you all the DLLs it loads, and which you then need to inclde in your distribution exe folder.
I am having the same issue described in this post on the py2app mailing list.
I have a python application that uses a sqlite database. On my machine, which has all the dependencies installed, there are no issues. However, when I bundle the application with py2app, clicking a menu that causes the database to be accessed results in this error:
Database error: Driver not loaded Driver not loaded
For the Windows installer, the files in \Qt\version\plugins\sqldrivers\*.* can be copied to \myApp\sqldrivers\*
The same files on the Mac can be found in /opt/local/share/qt4/plugins/sqldrivers (installed via Macports).
However, copying the sqldrivers directory to my application's Resources or Frameworks directories still results in the same error.
How can I add sqlite support into my application that is built using py2app?
Turns out the pyside recipe does have a way to specify which qt-plugins you need...
options=dict(py2app={
'argv_emulation': True,
'qt_plugins' : "sqldrivers",
}
),
This puts all the sqldrivers into the right directory and setups qt.conf correctly.
have you tried what he said
in this post ?
py2app setup.py usage question
it mentioned
you need to include the sqlalchemy.dialects.sqlite as a package
I managed to get this to work as follows:
After building with py2app, inside the application's Contents directory, make a new plugins directory.
Then copy sqldrivers/libqsqlite.dylib into this plugins directory.
Afterwards, install_name_tool has to be used to change the library links in libqsqlite.dylib to point to the Qt libraries in the application's Frameworks directory rather than the system Qt libraries.