How to take screen shot using Sikuli? - automation

I need to use Sikuli for automation but I am unable to take screenshots. The problem is that when I click on "Take Screenshot" or "Create Region" the IDE gets hidden but selecting area option does not appear....

Make sure you are using Java 6 not 7. If you try to run both on the same computer, make sure to take a look in the system32 folder. Because Java 7 copies java.exe and javaw.exe there. You have to delete/rename them.
Better Solution: Uninstall Java 7 and install Java 6. ;)

Uninstall JDK, which ever version you have, I too faced the same problem, but after uninstalling JDK, it was working well

Related

AHK-Studio stuck at downloading

Downloaded the AHK-StudioMaster.zip from Github
AHK-Studio directory-- https://ibb.co/r4QK2x2
Stuck at this download screen -- https://ibb.co/M5nLptC
using Win 7 64bit.
AHK version 1.1.33.09
You need to let the main AutoHotkey executable (or AHK-Studio.exe if it's compiled) through your firewall so that it can update and download its dependencies. It does this on every startup, but you can disable it by creating an empty file called NoUpdate.txt in AHK-Studio's directory (where AHK-Studio.ahk is located)—but you'll probably want to let it update at least once after a fresh install, or else the themes and languages won't be set correctly and you might not be able to see/read it.
Try this link: https://github.com/maestrith/AHK-Studio/archive/master.zip
This link works for me, the other one may be down atm
Since this only happens with Windows 7 fresh installs (or without security updates).
Here's how to fix:
Install 2019 security updates
Some other updates provided by ProtonVPN (while installing it will automatically install required updates)
These 5 updates in order.
After installing these three, AHK-Studio can now access internet connection and complete downloading process.
Mission accomplished!

My Netbeans 12.2 on Ubuntu only has lightweight & temporary C++ IDE, can't find the real one

In Netbeans 12.2 on Ubuntu 18.04 (using that snap install), for my C++ plugin I have that first image. When I try to create a new project I get that second image. That is some kind of a lightweight version that does not do your makefiles for you. If I try to open an existing C++ project it just never IDs any project file or folder as the right one. And notice that this version does not include a "Create from source code".
Does anyone know how I can install the "real" c++ plugin? I've looked in a lot of tutorials but they all say it should be there under Available Plugins, but it is not there.
This comes very late but it seems that Netbeans 12 lacks some components for this.
Therefore you must enable Netbeans 8.2 Plugin Portal from Plugins Settings.
Then deactivate the C/C++ and then force updates from Updates -> Check for Updates. Restart IDE and install 8.2 C/C++ plugin.
Note: I have lead into this problem now because unpack2000 is no more present.
The validation of downloaded plugins cannot be completed, cause: NBM ../.netbeans/12.4/update/download/org-netbeans-modules-cnd-kit.nbm needs unpack200 to process following entries:
netbeans/modules/locale/org-netbeans-modules-cnd-kit_ja.jar.pack.gz
netbeans/modules/locale/org-netbeans-modules-cnd-kit_pt_BR.jar.pack.gz
netbeans/modules/locale/org-netbeans-modules-cnd-kit_ru.jar.pack.gz
netbeans/modules/locale/org-netbeans-modules-cnd-kit_zh_CN.jar.pack.gz
netbeans/modules/org-netbeans-modules-cnd-kit.jar.pack.gz
This can be resolved by installing jre-11 (if it is not present already. I have it on Opensuse Thubleweed amogst with jre-16).
So then you just start netbeans from terminal with:
$ netbeans --jdkhome "/usr/lib64/jvm/jre-11"
...and then install blugin, and when it is ready close netbeans and start it normally again.
Just wanted to report that the answer from Devspain also works with Netbeans 14, in Ubuntu 22.04.

Do I need to download javafx12?

I have been having trouble utilizing Javafx within Intellij. I run into the error "JavaFX runtime components are missing, and are required to run this application" that I see a lot of other people have.
My main question is do I need to download Javafx12 sdk. I am able to use Dr.Java to run some of my old javafx projects just fine after adding an extra class path and I haven't needed to downloaded anything. It doesn't seem like I need to download anything as another much more basic IDE is able to run javafx. So why does it seem like intellij requires an extra download?
If you moved to Java 12, then yes, you need to download the JavaFX 12 from their new website https://openjfx.io. Luckily installing it is pretty straightforward and well-explained.
It worked before because JavaFX was shipped inside the JDK distribution, which is no longer the case. Swing however is still there and will work as before. (I am not saying you go back to Swing, just that it is still shipped along the JDK)

Eclipse PDT doesn't work on windows 7, when I run it, it displays the Eclipse Logo popup for a brief second and then disapears and crashes

I used Eclipse PDT for a while now on my Windows 7 and was working fine, but couple of months ago it stopped working for some reason. When I run it, it displays the Eclipse Logo popup for a brief second and then crashes and disapears. What can cause this and how to mend it? I tried deleting it, and re-unzipping, no use - same happens. I tried deleting just the workspace, no use - same happens. I tried deleting .eclipse in my user directory, doesn't work either.
That can happen if you have corrupted your workspace files somehow. Remove the workspace folder temporary and see if that fixes your problem.
Vladimir Despotovic found the solution:
I have solved this by uninstall Java completely (JRE and JDK -
whatever you have on your computer). Uninstall all Java and reinstall
it. Start Eclipse again. This solved it for me.

Main menu placement in Intellij IDEA

When I am using Intellj IDEA in Linux (with Gnome) I can't seem to find an option to move the main menu from the top of the screen inside the window that it belongs to; this is similar to the appearance that is present in the equivalent Windows version. Anyone has any idea on how to do that? Or is it not supported?
EDIT:
Seeing is everything so...
Ubuntu version:
Windows version:
Hopefully that will give you an idea of what I am trying to achieve.
What you are seeing is Global Menu Integration for Swing applications.
You can get normal menus be uninstalling it:
sudo apt-get --purge remove jayatana libjayatana libjayatanaag libjayatana-java libjayatanaag-java