A short question: My eclipse project is set to use the "sun-java-6-jdk"-supplied JDK library, but I cannot Ctrl-click to view source (no source attached), as I can do out-of-the-box on Windows. How do I make this work?
You need to install the openjdk-6-source package and to attach the sources (located in /usr/lib/jvm/java-6-openjdk/src.zip) to the JDK under Eclipse.
Personally, I prefer to use sun-java6-jdk - the source package being sun-java6-source - that you can get from the Canonical Partner Repository:
deb http://archive.canonical.com/ lucid partner
Then, attach the sources located in /usr/lib/jvm/java-6-sun/src.zip
Presumably that's because it hasn't got source with the JAR so it's not finding it automatically. Your best bet is to consult the ubuntu package manager and see if there's a src, or if it's elsewhere on your system (/use/src or /use/local are places to start looking).
Once you've got it, you can right-click on the JAR in the project and point to the location of the Java source in the "source" property.
I think you need to go to the settings for your installed JRE, edit it, and set the source attachments manually.
Here's a link to Eclipse's help: http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/preferences/java/debug/ref-installed_jres.htm
Related
I have a Linux Mint VM, where I installed formerly NetBeans 12.x (up to 12.6) and now I've updated it to 13.0, all with flatpak, and even starting from a clean setup.
With all those setups, NetBeans can't find Mercurial, even if I really have it in /usr/bin/hg available and working (when used from the shell).
From menu Team / Mercurial / Initialize repository... I get the error "Mercurial could not be found", asking to check PATH.
The strange behavior is that if I even browse for Options and Mercurial Executable Path to /usr/bin I can't see hg in there, while it is in the filesystem!
Is NB browsing somewhere else when I open /usr/bin?
Is it accessing some virtual environment? I'm confused
I have a partial solution: the flatpak package is indeed at fail, as for some reason it's not seeing my /usr/bin but a virtualized (?) directory, where many files are missing - notably hg and hg-ssh
So I removed the package suggested by the Linux Mint Software Manager and installed the package got from the Apache NetBeans site, similarly to what #flied-onion did.
What's still missing is that NetBeans relies on the hgk application as an hg GUI interface for some functions (see Team / View). This is unknown to me, and I don't find it in any (recent) Debian flavor.
When I create a new javaFX project the javaFX variables are unresolved. I use java 8 (121) and eclipse Neon on which I installed e(fx)clipse. OS is Linux Mint 18.1. What I did:
I uninstalled and installed e(fx)clipse again, that didn't help
In another post I read that someone had solved the problem by adding
jfxrt.jar to the build path. I searched for this file but it is not present on my file system
Anybody any idea what is wrong in my setup?
Edit
James_D suggested adding openjfx. I read documentation of openjfx and it says that only a subset is implemented. I decided to install the oracle JDK and adjust the building path with a reference to the oracle version of jfxrt. That worked. I wonder whether it wouldn't be better to switch to the oracle version of JDK?
I try to install MinGW-w64, but during install i got
the file has been downloaded incorrectly
I have 64 bit win10 and my option of installation:
I use that link sourceforge. and some commentators have same problem.
Any idea how to fix it?
Newer MinGW-w64 releases are now available at https://winlibs.com/ as standalone packages that don't need an installer. Just extract to a folder and start using. This also allows having multiple versions on your side by side (e.g. 32-bit and 64-bit).
This MinGW article addresses the issue. It's actually pretty simple to fix. The problem is with the Windows installer. What you need to do is download the MinGW zip archive directly (not the installer) and extract the files to something like C:\mingw and then add it to PATH in Environment Variables. Here's direct link to the SourceForge files you'll need.
I have problem finding the configure command line tool. I downloaded Qt online installer for Linux 32-bit and it seems that the configure tool is not included. I have looked inside the Qt main directory. Does anyone have any idea where to find it or how to get it?
Thanks!
That tool is a part of Qt source code and is only useful when you're going to build Qt yourself. In that case, you shouldn't be downloading any installers; download the source code archive instead.
You can install the build-essential meta package to get a complete build environment for Ubuntu.
When I try to install/update any plugin from Help -> Install New Software I receive error messages like this:
No repository found at http://download.eclipse.org/releases/galileo.
or
Unable to connect to repository http://pydev.org/updates/site.xml
Invalid argument
This happens with all Eclipse versions.
I use Eclipse on Debian Sid.
I had the same problem, try running eclipse with these options:
-vmargs -Djava.net.preferIPv4Stack=true
It worked for me
(see https://lists.launchpad.net/openjdk/msg03123.html)
Try disabling proxies inside Eclipse. This helped me once.
Here are some generic eclipse error resolution steps I use:
1) Try run eclipse with the -clean option. This should cleanup some stuff. No clue if it helps with your problem, but maybe worth a try?
2) Delete .metadata directory (or move it temporarily away) from your workspace and run eclipse with the -clean option again.
3) (Skip if you have tried this) Try download another eclipse installation into another local directory and try to see if that works out of the box. If it works, your former eclipse installation was bugged. If it does not work, I suggest checking your general network access to the specific urls you mention.