Intellij does not recognize Haxe SDK - intellij-idea

I would like to work with haxe on intellij but it seems that is not able to recognize the haxe sdk, when i try to create a new project, intellij ask me to point the project sdk and i don't really know what to do.
i tryed to point the sdk to the haxe folder but an error message appear saying: The selected directory is not a valid home for Haxe toolkit
Intellij IDEA version: 13.1
Anyone can help?
Thanks

The configuration needs the directory the haxe binary is installed to. If running which haxe gives you /usr/bin/haxe you should set /usr/bin as the haxe toolkit directory.

I don't really know where exactly it is in linux, under which /usr/bin folder but in Windows 8 in C:\ folder, you'll see a haxetoolkit folder and in it there will be the haxe folder, which is the one it asks for!

Related

Noob figuring out instal4j and intellij

I am just experimenting to learn how to package and install a java app built on intellij onto a PC.
I built hello world in intellij using "C:\Program Files (x86)\OpenJava\openjdk-15.0.2_windows-x64_bin\jdk-15.0.2" and it runs in the development environment.
If I understand Launch4j, I can specify in the JRE tab a bundled JRE so I am not dependant on what is on the target PC.
My question is what do I put in the "Bundled JRE path" box on the JRE tab in Launch4j. Path to JRE, JDK, openJDK. Does the path include a file name? Is it just a directory, the BIN?
a bit lost,
Thanks, Tony
I was able to find an example like mine and the solution works for me.
How to bundle a JRE with Launch4j?

Where is Dart SDK? | Error: the folder specified as the Dart SDK home does not exists

I installed Dart Plugin in IntelliJ IDEA and set Dart SDK path in settings page and got this error message Error: Dart SDK is not found in the specified location. What path should I set here? Where is Dark SDK?
I went to this page:
https://dart.dev/get-dart#install
and I installed dart following Install the Dart SDK section.
As the following instructions show, you can use a package manager to easily install and update the Dart SDK.
dart command is here: /usr/local/bin/dart.
but I cannot set this path as Dart SDK path in IntelliJ.
$ which dart
$ /usr/local/bin/dart
You can set the path this way in Preferences > Languages & Framework > Dart : Dart SDK Path
/usr/local/opt/dart/libexec
Or
/usr/local/Cellar/dart/2.8.3/libexec
not
/usr/local/bin/dart
I installed dart using Homebrew. I was able to get this path by running the command brew info dart but the above path should work for you as well
navigate to the folder where you have kept your flutter folder and then just go to bin folder inside your flutter folder, and then to cache and here you go, you found dart sdk .location of dart sdkdart sdk in android studio
C:\src\flutter\bin\cache
sometimes you add dart SDK with flutter SDK on developer folder if you using mac os ..
try this
/Users/username/developer/flutter/bin/cache/dart-sdk
We should give the path for the 'dart-sdk' folder not the bin folder inside 'dart-sdk' folder.
https://stackoverflow.com/a/62186444/10405867
yes, #Prateek Thakur answer is the best answer to be accepted.
To add the information.
if you have installed from brew, mine using macbook m1 - apple silicon
the default path is:
/opt/homebrew/opt/dart/libexec/bin/dart
if you are downloading from https://dart.dev/get-dart archive (link: https://dart.dev/get-dart/archive), you need to set the correct path on your local path where you downloaded the sdk archived folder.
in manjaro if you installed from pamac(add/remove), then the command will be at
which dart
/opt/flutter/bin/dart
So to solve this issue in intelliJ Idea..
Go to new project => dart => then in the Dart SDK path click on the ellipses
then locate this
/opt/flutter/bin/cache/dart-sdk

Jython and ImageJ : cannot find jython.jar

I want to use an imageJ plugin (that I downloaded) coded in python. I put the .py file in the ImageJ plugin folder, and then I installed it using the Plugin>install on ImageJ. It now appears in the plugin list. However, when I try to use it, I get the following error:
Jython.jar was not found in the plugins folder or is outdated.
There is a jython.jar in the jars folder of ImageJ, but I still tried to install a newer version of jython. I put the new downloaded jython.jar in the jars folder of imageJ, but it still does not work.
I am using a windows 10 computer, with ImageJ 1.48v, and I installed both versions 2.5.4rc1 and 2.7 of jython.
Could someone help me? Thanks!

Where to find groovy library on intellij(mac) when installed groovy through sdkman

I installed groovy through sdkman on mac. When i try to create a new groovy project in intellij, it asks for groovy library location. Where can i find the installed groovy?
I ran into similar issue. By using
/Users/<username/.sdkman/candidates/groovy/current
or
/Users/<username/.sdkman/candidates/groovy/<version>
worked for me.
Adding the answer that solved my problem (thanks to ThomasW comment)
When dialog box is opened you can click CMDSHIFT.
and this allows you to pick the hidden folder in the open dialog box.
Then you can use:
/Users/<username>/.sdkman/candidates/groovy/current
Just run $ which groovy after have it installed.
You may not be able to find groovy path with which command.
After installation of sdkman on linux-like systems Mac OSX, Linux, Cygwin, Solaris and FreeBSD, First, run $ source "$HOME/.sdkman/bin/sdkman-init.sh", then you will be able to access the installed development kits.
Namely, if you type 'which groovy' it should show the path, and you can invoke other SDK commands.

Intellij plugin development "the selected directory is not a valid home for intellij platform plugin sdk"

I'm following these guidelines on how to develop Intellij plugin.
So I
Open project settings.
Project SDK --> New
Choose the community edition path I just downloaded
Expected the directory is selected fine.
Actual: I get the error message:
"the selected directory is not a valid home for intellij platform plugin sdk"
See screenshot:
Am I doing something wrong?
Thanks
Intellij platform plugin sdk home should be your installed or builded IntelliJ, not sources. You can add that intellij-community folder as sources to your IntelliJ SDK later or not at all.
Goto Intellij installed directory
C:\ProgramFiles\JetBrains\IntelliJ IDEA Community Edition 2016.3.4
Select plugin folder
Create a directory (eg: scala)
Copy the scala lib folder
Restart the intellij
In my case, I had to download a newer IDEA version (Community Edition) and after the installation, everything worked fine.
This is the official and updated link for setting up your plugin development environment.