Have downloaded some cn1libs using Codename One Preferences. The lib folder now contains 2 files per cn1lib eg.
CN1CircleProgress.cn1lib
CN1CircleProgress.ver
When Refresh cn1libs is activated and it shows Invoked ant target: refresh-libs for a short while. The class are not available.
Have tried ide restart and adding the lib folder codename one libraries classes path without success. Any suggestions?
Iam using IntelliJ Community Edition 2016.3.1, JRE 1.8.0 on Ubuntu 16.04 LTS
I've just tried this myself and it works just fine for me you would see the library in the completion and build process but won't see it in the standard IDE module system.
Related
I am using IntelliJ IDEA for programming with Gradle on Linux. The problem is, IntelliJ (for some reason) could not detect my Gradle I downloaded myself (version 7.4), so it tried to download one itself (version 7.1) and I couln't stop it. I tried tweaking around a bit and in the end IntelliJ decided it needed one more version, the one it downloaded earlier wasn't enough, so it downloaded version 7.2. After a while I managed to command IntelliJ to use the Gradle I downloaded, but now I am left with two Gradles I don't want to use (versions 7.1 and 7.2). How can I delete them?
Also, IntelliJ downloaded a JDK when I already had one (same story), and it just occupies space. Is there any way to delete it as well?
I can't find any files for neither of them.
To find JDKs location go to File | Project Structure | SDKs | select downloaded JDK | JDK home path. Open the mentioned path is OS file explorer and delete the folder.
Regarding the Gradle issue. For now, there is no way to disable gradle wrapper generation by default. Feel free to vote/follow https://youtrack.jetbrains.com/issue/IDEA-215792 . Downloaded distributions can be removed from ~/.gradle/wrapper/dists.
Normally IntelliJ installed JDK is inside IntelliJ installation folder in a subfolder named jbr. Gradle will be in plugins subfolder. If you want to remove them, delete the folders.
our company uses the Eclipse IDE with some plugins that are required to start our platform. I want to create a bundle for our Java developers that contains the latest Eclipse Java (Oxygen) with the plugins already installed.
So far I've installed Eclipse with
sudo cask brew install eclipse-java
which created an /Application/Eclipse Java.app.
After installing the plugins within Eclipse with Help->Install New Software the ~/.eclipse/ was created in my home directory.
Is there some way to zip these folders to create an distributable package of eclipse or am I missing other files/directories?
Is it possible to move the plugins in the installation directory as well?
Thanks for your help!
It is not advisable to use any Eclipse distribution that's produced by packaging tools. It's best to download directly from eclipse.org, for various reasons.
As for customizing an Eclipse "package" for distribution yourself, have a look at the Oomph project, which is designed for that exact purpose (and others). Oomph is what produces both the installer and the downloadable packages of Eclipse IDE releases. You can read specifically about Oomph authoring here.
You can use the official eclipse installer. There is an advanced mode to disable the p2 pooling. Then using this mode, everything will go into the eclipse folder. Afterwards you can zip it and give it to others. Of course you are always bound to the CPU Arch still.
I've just installed an Xubuntu 16.04 64bit virtual machine in VirtualBox. I used the Eclipse Neon Installer and picked the CDT edition.
Right after I started Eclipse I also tried to install the PyDev from the Marketplace. Right after the dialog window where you select which sub-components you want to install (for example Mylyn integration) I got
Unable to read repository at http://www.pydev.org/updates/content.xml.
Unable to make member of class sun.security.ssl.SSLSocketImpl
accessible: module java.base does not export sun.security.ssl to
unnamed module #7098b8f8
The underlying JDK is OpenJDK 9 (from the official repositories) and I have also tried switching to OpenJDK 8 (using sudo update-alternatives --config java and selecting the 8th version) with the same poor result. In addition I also have successfully installed PyDev in another machine that is using Xubuntu 16.10 (same architecture).
I was unable to find any hint on what's going on.
EDIT: Updating Eclipse works (I've just updated CDT which for whatever reason was not the latest version).
I guess there's something wrong with the regular site. Perhaps because Source Forge switched to Let's Encrypt.
The best solution I found was to install PyDev from a zip file.
Download the PyDev zip file from Source Forge.
Unzip it, and copy the contents into Eclipse's dropins folder.
Restart Eclipse.
I wasn't sure exactly where the files were supposed to go, so here's the folder layout that worked for me:
eclipse
dropins
Eclipse X.Y.Z
features
many folders
plugins
many folders
Before I got that working, I found another option on this question: use an AWS mirror for the PyDev update site. Unfortunately, the AWS mirror has an old version of PyDev.
I'm an experienced (Java, Eclipse & Maven) developer, and have used a couple of frameworks thus far. Every time I'm trying to start with something new, it seems like there are about a zillion configuration possible for downloading and installing it.
I've looked here for instructions, and all the near pages, but they seem out dated, the Eclipse plugin path is invalid, and when I install the latest version I've found no the site (2.0.2), it says that I have a newer version installed.
Also, the Maven setup in most posts I've read seems obscure.
I'm using:
Windows 7
Eclipse x64 Indigo
JDK x64 1.6.0.24
Maven 3.0.3
And I don't recall installing the JavaFX.
What an I missing? Where can I read about the setup in order to start working with this framework?
JavaFX gets installed if you install the latest JDK 7 from Oracle (co-bundled).
You can find the Eclipse plugin here:
http://efxclipse.org/
If your're interested in Maven builds: I've recently released an initial version of Drombler FX, a modular RCP for JavaFX based on OSGi and Maven (POM-first):
http://puces-blog.blogspot.ch/2012/12/drombler-fx-building-modular-javafx.html
http://wiki.drombler.org/GettingStarted
I did tried efxclipse but it was not enough for me. I have also tried to give the path of javafx jar file to efxclipse
Window->Prefrences->javafx->"The path to javafx jar which is
jfxrt.jar"
. But nothing worked for me I don't know what was going wrong.
Then I just add the jfxrt.jar file to my Library and everything worked fine :-
1. Right click your JRE System Library
2. Build Path
3. Configure Build Path
4. Add External Jars
5. "The path to jfxrt.jar"
You can download jfxrt.jar file from this link.
Or
If you have already downloaded the latest oracle JAVA JDK you will find in this path
Extracted_oracle_jdk_folder/jre/lib/ext/jfxrt.jar
That's it everything should work fine.
Try e(fx)clipse at http://efxclipse.org/. I'm a netbeans developer, but heard a lot of good stuff about that plugin from my eclipse using friends.
I recently installed the ubuntu 12.04 final beta
After installing the oracle jdk from the webupd8 ppa, launching eclipse failed complaining about a missing shared library.
Can't load library: /home/bob/.swt/lib/linux/x86_64/libswt-gtk-3740.so
I searched around, and found this quesion: Eclipse cannot load SWT libraries
As the OP recommended, I tried switching to open-jdk, and that worked wonderfully. The problem, however, is that I am working on a project that doesn't support openjdk.
I tried the second solution as well (the one by scott, which was just creating symbolic links to /usr/lib/jni/... in ~/.swt/lib/linux/x86_64/). Eclipse launches and everything is fine, but it still misses some libraries; this is what I get when i try to run my project:
Caused by: java.lang.UnsatisfiedLinkError: /tmp/libgdx/1352105074/libjogl_awt-linux64.so: libjawt.so: cannot open shared object file: No such file or directory
I know libjawt.so is somewhere on my computer:
$ locate libjawt.so
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/libjawt.so
/usr/lib/jvm/java-7-oracle/jre/lib/amd64/libjawt.so
But eclipse or java seems to think that libraries should be placed in ~/.swt/lib/linux/x86_64, isn't that weird?
Eclipse when launched defaults to its own internal JRE, as I understand. I recommend the following:
Modify your CLASSPATH variable to include the path to the desired libraries;
Set your JAVA_HOME to match the actual JAVA_HOME;
Setup Eclipse to launch from the desired JVM by customizing the eclipse.ini using this information: http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#eclipse.ini
Also, can you specify the -classpath option when Eclipse is launched?
Try downloading the latest version of Eclipse and running it. For some reason it works fine. I just ditched my older version of Eclipse. I hope this works for others!
Please note that there are two Java runtimes in play here. The one used to run Eclipse itself, and the one you want to run your code. They do not have to be the same!
I would suggest
Run Eclipse with a JDK that works
Download Oracle JDK manually and unzip it to a folder in your home directory
Tell Eclipse about this additional runtime (http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-add_new_jre.htm)
Configure your project to use that JVM instead. (http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-assign_default_jre.htm)
Now your own code is compiled against, and runs with Oracle Java.