How to launch ios_webkit_debug_proxy using java code - java

I am able to run Appium server from Java code. But wanted to know how can I
check if iPhone is connected to a Mac and if connected, then launch ios_webkit_debug_proxy using Java code
Any pointer or suggestion would be highly appreciated.

If you havn't installed ios-webkit-debug-proxy install it via homebrew by executing below commands
brew install ideviceinstaller ios-webkit-debug-proxy
Once installed you can start it by using Java Process builder and execute it.
Sample here

Related

Can't run SDK Manager because of Java

I tried to run SDK Manager , but the only thing I achieved is that command prompt window pops up and then disappears. I tried opening :
android-SDK-windows/tools/android
in cmd but it said : No suitable Java found.When I try to install Java , both online and offline versions, Program Compatibility Assistant tells me that it's already installed , but Java's uninstallation tool and version verification can't find anything . How can I get Java up and running ?
Try reinstalling windows, and then installing SDK manager one more time.

Install automatically Java 8 on Windows Server AMI

I am starting a Windows Server AMI and would need to have java 8 installed after boot. I already have an instance-setup.txt script to install the codedeploy-agent automatically (from here: http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-set-up-new-instance.html), but would need to install Java 8 at the same time. I have no idea how to automatize this though, did anyone manage to do it successfully by any chance ?
Thanks !
Emmanuel
The Java installers for Windows provide the ability to run an installation in silent mode via the command line or a script. If you package a Java installation executable with your deployment you can run a silent install like this:
jre-8-windows-i586.exe /s
Check out the documentation on Windows Installer Options for Java for more information and other available options: http://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_installer_options.html

Installing Apache tomcat using bash script using Java

Hi I'm planning to devolep a APP that will install install programs using bash commands Ie to install tomcat
apt-get install tomcat7
Is it possible to achieve it programmatically using Java
Use Runtime.exec() method to run external command. For more refer: http://www.tutorialspoint.com/java/lang/runtime_exec.htm

How to solve error java.lang.NoClassDefFoundError at the time of installing netbeans8 in debian

I am trying to install netbeans 8 in debian-7.0-amd64-minimal. (VPS)
1st I have installed java/JDK latest version (1.8.0_20) by following
https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps
Next I am trying to install netbeans by following
http://installnetbeansdebian.blogspot.com/2013/06/how-to-install-netbeans-73-ide-complete.html
when I run
./netbeans-8.0-php-linux.sh
it displays the following error.
Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
Anybody knows, how to fix this?
Had a similar issue, for some reason the command
$ sudo chmod -x netbeans-8.2-javaee-linux.sh
didn't create executable file out of the script, so I had to use GUI method, as it shown here in the second answer:
https://askubuntu.com/questions/229589/how-to-make-a-file-e-g-a-sh-script-executable-so-it-can-be-run-from-termina
then as the user Firestorm suggested just dropped sudo and it worked for me:
$./netbeans-8.2-javaee-linux.sh
Installed perfectly even created "Development" department in the "Application" menu and nested program start tag there. Debian-8 x64 KDE
Just had the same issue here (Fedora 25, Netbeans 8.2). It only occurs, when executing the installer as root which seems to be a problem with a root-privileged gui in a non-root-privileged environment.
Solution: Either install netbeans as normal user in your home directory OR launch the installer as root with the switch '--silent':
./netbeans-8.2-html-linux-x64.sh --silent
which will install netbeans in /usr/local.
Maybe late. For ubuntu 17
azuka$ : xhost +
azuka$ : sudo su
root$ : sh netbeans-8.2-php-linux.sh
I had the same issue on "Fedora 26". But I resolved it by repeating the same procedure but not as 'root' or 'sudo'. I.e:
Change directory to locate the downloaded file.
then.
$ chmod +x netbeans-8.2-linux.sh
$ ./netbeans-8.2-linux.sh
This question is nearly exactly two years old, but still actually occurred here just now.
I had this too on a Slackware system. I was trying to install it like you (because Slackware doesn't provide NetBeans packages) and I was typing in a virtual terminal window after executing su. The problem was the exact same as yours: I got the NoClassDefFound exception and the installer stopped. The solution was to execute the NetBeans installer as a normal user, or as the same user that you're logged in as in the X session. Java errors can be a bit cryptical, but the solution's as easy as that.
I hope this helps.
Simply close netbean if you open it already
1.install openjdk
2. download netbean
and where you download it use below command
$./netbeans-8.2-javaee-linux.sh
The solution was to execute the NetBeans installer as a normal user, or as the same user that you're logged in as in the X session
The solution was to execute the NetBeans installer as a normal user, or any user other than root.
define JAVA_HOME and JDK_HOME as environment variable
I had the same issue while installing Oracle Developer Studio via ssh X forwarding. I switched jdk from SE to 1.7.0 openjdk (update-alternatives --config java) and then managed to install. I hope it will help someone.
I have the same issue and I use:
sudo bash -x Apache-NetBeans-12.1-bin-linux-x64.sh --silent
and with this I coud install netbeans, but the version 12.1.
It is much easier (and more reliable and more secure) to use package management system to install software. All you need to do is to use the following command to install netbeans on Debian:
sudo apt-get install netbeans
Although netbeans version 7 will be installed (ver. 8 is not available from native Debian repository yet) you won't be struggling to make it work.
Besides please be careful with instructions to install java/JDK -- the method they describe is not the best. If OpenJDK is not sufficient for you then you might be doing something wrong. If you absolutely have to try Oracle's Java (unfortunately there are some corner cases when it might be needed) please use java-package to build your own Java package (.deb) from downloadable Java binary.

Check whether cygwin is installed & install if needed

I am trying to run shell scripts in Windows XP using Java. I found that we can run shell scripts using cygwin in Windows, but what if it is not installed on the system?
I want to check whether it is installed on machine, if it is not installed - add that software as a part of my application and install it.
If cygwin complains with windows installer standards then when you install it you should be able to find a registry entry for this program.
You should check the registry for something like localmachine/software/cygwin.... this validation can be done using RegistryKey class in c#.
To include this program as a dependency you must provide the way you are installing your app, visual studio windows installer? Inno installer?

Categories