headless

Is it possible to load an eclipse Java project using JDT in the headless mode?

家住魔仙堡 提交于 2019-12-23 17:34:01
问题 I have an eclipse Java project and want to get information like project source dir, classpaths, etc. My current implementation parses the .project file. But as I didn't find any official documentation describing the structure of the .project file, I have some concerns for the robustness of this approach. A more convenient and robust way would be to use JDT (headlessly) to load the project and get the relevant information from the IJavaProject object. Although the developer guide of JDT says

Android Emulator in Jenkins

空扰寡人 提交于 2019-12-23 14:21:10
问题 I tried to use Android Emulator in Jenkins, I follow this guide: Jenkins Plugin I do it from headless build machines, CentOS. I tried to create emulator from jenkins like the example When I try to do this like the example, but with my version, I get this error from the jenkins: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [/opt/android-sdk_r24.2-linux]! [android] Emulator did not appear to start; giving up [android] Stopping Android emulator $ /opt/android-sdk_r24.2-linux

How do I prevent a headless exception in Java?

我只是一个虾纸丫 提交于 2019-12-23 12:00:02
问题 I have an Applet and when I try to run it on my laptop, a headless exception is thrown by Java at the line where a JFrame is created. Now I know why the JFrame normally causes the exception but my computer was not in headless mode to begin with. I'm also still not sure what headless mode entails exactly. I'm running Ubuntu and have a pretty recent version of java. Also, I have successfully created JFrames and such in Eclipse when running Windows on my laptop (if that helps). 回答1: Have you

How do I prevent a headless exception in Java?

╄→尐↘猪︶ㄣ 提交于 2019-12-23 11:59:07
问题 I have an Applet and when I try to run it on my laptop, a headless exception is thrown by Java at the line where a JFrame is created. Now I know why the JFrame normally causes the exception but my computer was not in headless mode to begin with. I'm also still not sure what headless mode entails exactly. I'm running Ubuntu and have a pretty recent version of java. Also, I have successfully created JFrames and such in Eclipse when running Windows on my laptop (if that helps). 回答1: Have you

Capture video with Poltergeist, PhantomJS and Capybara

淺唱寂寞╮ 提交于 2019-12-23 09:52:50
问题 Is it possible to capture video with PhantomJS in combination with the gems Poltergeist, Capybara and Cucumber? I have used the Headless gem previously, which put a video in a specific folder in case a scenario failed. If all went well, no video was stored. Headless uses Xvfb and ffmpeg. Can ffmpeg also be used to provide the same functionality as shown here: https://github.com/leonid-shevtsov/headless/blob/master/lib/headless/video/video_recorder.rb I basically need the same functionality,

Java on Mac OS X Server: game over?

你离开我真会死。 提交于 2019-12-22 10:54:06
问题 As a developer currently working on a Web app that uses a Java/Tomcat backend, the recent announcement by Apple to deprecate Java is causing me some consternation. Mainly because I'm planning on hosting this Web app on Mac OS X Server (already on 10.5, soon to be on 10.6). From http://www.appleoutsider.com/2010/10/22/java/: Since the Intel transition, building a server VM for Darwin is almost trivial. Is this actually true? Is there a document somewhere that describes how to build a headless

Better way to take screenshot of a url in Python

試著忘記壹切 提交于 2019-12-21 17:45:32
问题 Problem Description Currently working on a project which requires me to take browse a url and take a screenshot of the webpage. After looking various resources i found 3 ways to do so.I will be mentioning all 3 methods iam currently using. Method - 1 : PhantomJS from selenium import webdriver import time import sys print 'Without Headless' _start = time.time() br = webdriver.PhantomJS() br.get('http://' + sys.argv[1]) br.save_screenshot('screenshot-phantom.png') br.quit _end = time.time()

Headless Firefox in Selenium C#

家住魔仙堡 提交于 2019-12-21 09:17:39
问题 I want to run firefox headless. Not hide the browser window or open it in a virtual desktop, Firefox supports headless mode by using "-headless" flag. Problem is I know how to do it in chrome but not in Firefox. My code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using OpenQA.Selenium; using OpenQA.Selenium.Firefox;

How to setup Android sdk from command-line on headless server? [duplicate]

若如初见. 提交于 2019-12-21 07:15:03
问题 This question already has answers here : “android update sdk” on headless linux (5 answers) Closed 6 years ago . So far Ive managed to download and install the SDK and its in my PATH. Problem now is that I can't run "android update sdk" since it expects to be connected to a display and Im connected to a remote headless server through ssh (its a build server so there's no desktop env). Is there a command-line option for the android tool that tells it to run without X ? 回答1: There is a --no-ui

Headless JMeter -How to get printed the response data in the output file

◇◆丶佛笑我妖孽 提交于 2019-12-21 06:22:23
问题 I am running a load test by using a jmeter script in non gui mode. I use the following command to run the JMeter in non gui mode and result is stored in a file Test.jtl sh jmeter.sh -n -t ThreadGroup.jmx -l Test.jtl Sample data written to Test.jtl is as below and there it does not print response data. Is there a way to get printed the response data as well may be by altering jmeter script or above command? Any help would be appreciated. 1453272193899,231,HTTP Request-staging-qqq-customer1,200