I'm switching from NetBeans to IntelliJ IDEA 13.0.2 for an existing JavaFX project and I've had very little trouble setting everything up, but I am missing one setting. I'm using the artifact from IntelliJ to build MSI and EXE installers. This works fine, but it always shows version 1.0 when I use the installer as well as in the name of the MSI and EXE files. How do I change this to the correct version number?
Related
I'm using the linux beta installation on my chrome-book, and I'm trying to set up a project to use the jdk version 1.8. I previously had a project set up that uses jdk 1.11, and now it seems that even though the current project is configured to use jdk 1.8 in project settings etc, the maven installation used by intellij is still configured to use jdk 1.11. When I run java -version and mvn -verison in the intelliJ terminal, java 11 turns up. I tried changing the maven settings as well, but whenever I try to mvn compile and install, I get the following error:
/usr/lib/jvm/jdk1.8.0_271/bin/java: 1: /usr/lib/jvm/jdk1.8.0_271/bin/java: Syntax error: "(" unexpected
I can't figure out why this is happening, but it must be the fact that maven thinks this is java 11, when it's java 8. Does anyone know how to fix this?
CTRL-ALT-SHIFT-S / Project / Project SDK - you can choose existing or add configure another one
It turns out I had downloaded jdk-8u271-linux-arm64.tar.gz instead of jdk-8u271-linux-x64.tar.gz, which is why the code wasn't recognized after installing the jdk. Apparently the two are designed for different CPU architectures, and arm is for mobile devices, and wasn't compatible with my chromebook.
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.
My Eclipse Mars 4.5.1. uses JDK 8 to start-up (specified in the eclipse.ini)
My RCP project uses JDK 7. The entire workspace uses 7. I've also included the JavaFX JAR until I migrate the whole project to JDK 8, where I won't need it.
When I try to export the RCP project using the .product file, the exported version has some logs saying that certain classes using JavaFX have compile errors. Even though the exported version is started with JDK 7 (specified in the .ini file), and the JavaFX JAR surely was exported too, these UI components crash.
This whole process works with Eclipse starting with JDK 7 !
I really want to use my Eclipse with JDK 8, but ONLY the Eclipse
How does Eclipse influence the export process? My target platform points to eclipse, but has JDK 7 set on it.
You can try to put a JRE 7 in your product location and test if it runs, remove the entry in the .ini file.
plugins
configurations
jre
...
If this works, your entry in the .ini file is probably wrong.
Another thought: "I've also included the JavaFX JAR", where did you include it? Maybe you need to include it in the JRE.
I'm in process to create/bundle native wrapper for my javaFX project. The project is running in the IDE e(fx)lipse. Using the IDE's build script generate feature I have generated the Ant build which I'm then using to build the app from IDE/command line.
The problem is whenever the build is generating the exe wrapper, the system antibirus(Symantec) is detecting that as a virus and deleting that. This is happening for the simple Hello World projects also. I tried the signing using a generated key also but the problem remained.
It is not possible to disable my antivirus since I'm working in my office machine and will not get corporate approval to do that.
Anyone faced similar issue? or know how to solve this?
Turns out that the problem only existed if the ant build uses the JDK1.8.0_40 32bit version. Not sure what caused the error but I have tried with other versions like JDK1.8.0_5 32 bit, JDK1.8.0_25 32bit, JDK 1.8.0_45 32bit, JDK1.8.0_40 64bit and all of these versions worked flawless.
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.