Eclipse, Ubuntu - Eclipse IDE not starting (Well kinda) - linux

I am very experienced with eclipse, using it since its Juno days, but today i have ran into one of the strangest bugs and want to know if any of you have had this bug and if you may have an answer as to how to fix it. (Or at least a work-around to getting my favorite IDE working again).
I recently updated to Ubuntu 16.04 (Xenial) and it seems nothing wants to work like it did when i had Wiley, namely eclipse. I used the installer to download the IDE and launched it and i got a strange issue where the IDE would load and ask for a workspace, but would then show a dialog box that is using the screen buffer as its data.
Screenshot with strange eclipse launch
I then thought that it may be an issue with the downloaded file (Corruption or something) so i downloaded the tar from eclipse.org directly. I extracted the tar and launched the eclipse executable and it loaded up and asked for a workspace again and began to launch, and finally it came up, the same old back buffered box.
So i got the idea to run it from the console and got this output, but i have no idea what it means. I saw no stack traces so im sure its fine (Again it may be a GTK error, so any ubuntu people this is where you come in)
Console Run with the same problem
I started to think it was my java version (Oracle JDK 9 for Linux)that was the problem so i did a test compile of the hello world program and everything was fine, it all worked.
(Would add screen shots but im new here so i dont have enough reputation to do so :( )
Any idea what it might be? Any help would be great!

I found the problem, i installed the latest version of java in the apt repository. This version was JDK9 which Eclipse does not support (At least not until Eclipse Oxygen). I purged the computerof JDK9 and installed JDK8 and everything worked fine!
Moral of the story, don't use JDK9 on Neon

I am running a dual boot windows 10 and Ubuntu 16.04, I have similar issue where I can see all the file menu and the eclipse launched on the tool bar, I have selected the application and used ctrl+WindowsKey+left,right to split the application to half of my screen and then magically it appeared,Then I adjusted to fit to my screen.

Would a fresh install work? I didn't have any issues. Perhaps ask this on ask ubuntu, too.

Related

SpringSource Toolsuite: Huge icons after todays update

im running a linux box with gtk3 and was re-installing my STS today.
I was choosing the x64 version based on eclipse 4.6 and everything went fine after starting the new installed STS version.
Then i decided to check for updates and was installing the suggested packages (i didnt install any own custom packages/plugins yet).
After the restart the GUI seems to be broken. Please see the Screenhot: http://imgur.com/0lAtByT
Im working already since some years with STS on Linux but never found this strange behavior. Anyone a idea what could fix this problem?
Try:
-Dswt.enable.autoScale=false
when starting STS.

Atom Runs Incredibly Slow on Ubuntu 15.10 - Something about a Renderer?

Alright, to be honest, I have no idea if this situation is specific to my computer or to any Linux user... but hear me out.
I have coded in GitHub's Atom text editor on Windows 8.1 platform before. Loved it, so when I switched to Linux (Ubuntu 15.10 Wily), the first thing I did was to download Atom's Linux build and install it on my system. It started out really great. It was as fast as I thought, even faster than its Windows counterpart, so I was fairly pleased.
However throughout the days I have reinstalled Linux and reinstalled Atom - and it was just very, very slow. I was editing a Markdown file and it lagged for 2 seconds to position the cursor onto where I clicked. I thought it may have been one package that was the culprit in eating up CPU/memory, so I deleted all the packages and started on a clean slate.
Nothing changed, for some reason.
Then I decided to check the System Monitor since there must be something going on, because ever since I've reinstalled Ubuntu 15.10 (I played around with some configuration files before and screwed the system up...) and reinstalled Atom - every time I started up Atom, my CPU would get very hot and the fan just gets super loud. Evidently that is not a good sign.
Behold, the culprit:
“atom --type=renderer --js-flags=--harmony --no-sandbox --lang=en-US --node-integration=true --enable-delegated-renderer --num-raster-threads=4 --gpu-rasterization-msaa-sample-count=8 --content-image-texture-target=3553 --video-image-texture-target=3553 --disable-accelerated-video-decode --disable-webrtc-hw-encoding --disable-gpu-compositing --channel=14354.0.624276243 --v8-natives-passed-by-fd --v8-snapshot-passed-by-fd”
Yes, the process name is that long, but here's a more readable list of the parameters:
--type=renderer
--js-flags=--harmony
--no-sandbox
--lang=en-US
--node-integration=true
--enable-delegated-renderer
--num-raster-threads=4
--gpu-rasterization-msaa-sample-count=8
--content-image-texture-target=3553
--video-image-texture-target=3553
--disable-accelerated-video-decode
--disable-webrtc-hw-encoding
--disable-gpu-compositing
--channel=14354.0.624276243
--v8-natives-passed-by-fd
--v8-snapshot-passed-by-fd
Here's an image of detailed description/statistics of the process - why is this renderer alone taking so much virtual memory...?
Seeing that the Atom creators also developed the Electron platform, I thought that Atom was built with Electron. Otherwise I can't explain as to why the Javascript V8 Engine is running as a renderer when I fire up Atom - whatever that means.
I'm really curious as to why this is happening, but most importantly I love Atom too much to give it up so easily, so I'm willing to put up a fight and see if you guys know what's going on.
In case it matters, I'm running Ubuntu 15.10 with GNOME Shell 3.16.4 desktop environment. Also, apm --version spits out:
apm 1.5.0
npm 2.13.3
node 0.10.40
python 2.7.10
git 2.5.0
P.S. Seeing that it's my first question, I may be violating some standards and netiquette on SE/SO, either through the way I voiced my question or any reason really - I don't know. If that is the case, please forgive me as I still have a lot to learn about StackOverflow and this amazing community which helped me through my journey of coding. Thank you wonderful folks in advance.
There is an Atom text editor snap package in Ubuntu 16.04 and later, and it runs the way it's supposed to, including the built-in JavaScript console in Dev Tools.
Run these commands to quickly and easily install and upgrade the Atom text editor snap package from the terminal in Ubuntu 16.04 and later (64-bit only).
Install Atom text editor:
sudo snap install --classic atom
Note that a snap in classic confinement behaves as a traditionally packaged application with full access to the system, and Atom extension packages are installed into the user's home directory.
Upgrade Atom text editor:
sudo snap refresh --classic atom

REDHAWK IDE sandbox not appearing in SCA Explorer

I am using version 1.9.0 of the REDHAWK IDE on CentOS 6.5 and ran software updates today, made up of OpenJDK updates.
Before the updates, I was able to see the sandbox and chalkboard in the IDE. When I opened the IDE a little while after the updates, the sandbox was gone.
I tried installing Java SE JRE version 1.8.0_05 and restarting REDHAWK IDE without success.
I then tried a fresh IDE installation, which successfully showed the sandbox for two different times starting the IDE. Although, after being closed for an hour or so, the sandbox went missing again.
Does this sound like a java issue? If not, is the IDE breaking itself in some way?
Note that during the time of REDHAWK inactivity I was only using a word processor and a web browser.
Edit: Prior to the updates I had installed the newest GNU HAWK components and was able to load various GNU HAWK components onto the chalkboard with the sandbox still showing up.
I had the same issue, and ended up fixing it by commenting out the following line in the eclipse.ini file:
#-Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB
For other people looking at this, I went through the basic example in the Getting Started and the plot window would flash and go away. It is related to that line in the accepted answer.

JavaFX missing from JDK 1.7/1.8 in Linux?

I have a problem that allegedly isn't possible, so I'm having a heck of a time finding an answer.
I have the latest version of NetBeans 7.4, running on fully-updated Fedora 20 x64. Officially, this can work with JavaFX. Period. I have both the JDK from the repo (1.7.something) and the very latest version I could find (1.8.0). Officially, these have JavaFX with them. Period.
If I try to create a new JavaFX project, it has this to say:
Failed to automatically set-up a JavaFX Platform.
Please go to Platform Manager, create a non-default Java SE platform, then go to the JavaFX tab,
enable JavaFX and fill in the paths to valid JavaFX SDK and JavaFX Runtime.
Note: JavaFX SDK can be downloaded from JavaFX website.
Well alright, I'm used to things getting confused, I think I can fix this. Go create a new platform, and... there's no "JavaFX" tab. It took a bit of research to even find out what it was talking about, and in the process I discovered that the tab has actually been removed from 7.4. Because NetBeans 7.4 will absolutely, definitely recognize JavaFX automatically. Period.
Going to the actual JavaFX site tells me, as expected, that it's bundled with the Java SE 7 JDK I already have. Period.
Since the end result I'm after could technically be achieved by integrating one JavaFX component into my Swing application, I attempted that, but NetBeans still can not find anything related to JavaFX and therefore yells at me if I try to import such a thing.
So, given that things that are supposed to just plain work just plain aren't... where can I go from here?
Currently in Debian and Ubuntu (probably others) JavaFX is a separate package from the OpenJDK (openjdk-8-jdk) and so needs to be installed:
sudo apt-get install libopenjfx-java libopenjfx-java-doc
Notable issue (this issue does not impact a Maven, JavaFX application so if that is your preferred build method then ignore the following issue):
If you try to create a new project:
Categories > JavaFX
Project > JavaFXApplication
You'll get:
Internal error. Missing resources [/resources/web-files/javafx-loading-100x100.gif]
/home/ken/NetBeansProjects/vestFxReports/nbproject/jfx-impl.xml:1465: The following error occurred while executing this line:
/home/ken/NetBeansProjects/vestFxReports/nbproject/jfx-impl.xml:3093: The following error occurred while executing this line:
/home/ken/NetBeansProjects/vestFxReports/nbproject/jfx-impl.xml:2055: Error: -includedt requires the java deployment toolkit, which is not included in this distribution
BUILD FAILED (total time: 1 second)
To fix the above error [following steps are derived from here: http://hongouru.blogspot.com.uy/2015/09/solved-error-building-new-project-using.html]:
Switch to the files tab (usually you're on the Project tab).
Expand the node for your project >
expand the nbproject node > open the "project.properties" file.
Find the line javafx.deploy.includeDT=true and change true to false.
Now you can create and run a JavaFX application, on OpenJDK.
Next steps, although beyond the issue at hand you'll probably at some point want to download the JavaFX scene builder: http://www.oracle.com/technetwork/java/javafxscenebuilder-1x-archive-2199384.html
Apparently, the issue is indeed a discrepancy between the open-source OpenJDK provided by most Linux distributions, and the proprietary Oracle JDK. Ironically, this is a well-known issue, but you have to specifically search for it to find it, and by then you already know.
The solution is to download the official Oracle JDK, and if necessary create the matching platform in NetBeans (located under /usr/java/jdk... at this moment). It should work perfectly fine after that.
Perhaps the official documentation
https://netbeans.org/kb/docs/java/nb_fx_screencast.html
https://netbeans.org/kb/72/java/javafx-setup.html
may help you to set it up

Update glibc in Cygwin

I just wanted to make use of the Cygwin x server, but when trying to start a program I am told that glibc is too old. I have version 2.3.2 but would need version 2.3.6. Is there any easy way to update this? Cant find this package in the cygwin setup routine.
Thanks
When you run a Cygwin update, it should by default update all packages that have changed, which should give you the latest C library. A lot of "shoulds", but I've never had any issues.
However, this sounds like an error from the client program, running on a remote host, not the X server (which is running under Cygwin). I'm not sure how a Cygwin program would even report this.
Please edit your question, showing the actual program that you're running, and the exact text of any error message -- copied from either the console window or a dialog box.

Categories

Resources