I am new to Intellij and Scala. I just now installed Intellij and while creating first project of hello world I get the following error when I compile Scala code on Intellij.
Error:
Cannot run program "/Applications/IntelliJ IDEA
CE.app/Contents/jdk/Contents/Home/bin/java" (in directory
"/Users/rahulghadge/Library/Caches/IdeaIC2017.3/compile-server"):
error=2, No such file or directory
I tried to google it and check in my contacts if someone faced it before. Nothing helped.
Please advise.
I figured out it is scala and jdk version compatibility issue. I had jdk_1.8.0_121.jdk but i had to install jdk_1.8.0_161.jdk on my mac. Once this was done, I added it in Intellij File -> Project Structure -> SDKs. And above mentioned compile error was resolved.
I found out below mentioned link particularly useful as it discusses about same error but solution is different version of jdk to be installed as per Scala version in use. Please refer that for step-by-step guide with screenshots for more details.
https://dotnetvibes.com/2018/01/03/intellij-idea-error-cannot-run-program-no-such-file-or-directory/
Thanks.
Related
I am using JetBrains GoLand and I am trying to debug my go file and I am getting the following error:
decoding dwarf section info at offset 0x0: too short
I tried to find an answer here at StackOverflow but unfortunately, I didn't get any solution.
GoLand ships with a bundled version of Delve. Update to 2018.2.2 and it should work. If you need to do remote debugging, then you need to update your Delve installation on/for the target machine as well (make sure you compile it with Go 1.11).
Edit:
There are two more possible cases where this issue can appear:
the application was compiled with all the debugging flags turned off and the additional debugging information stripped
the application uses the standard library "plugin" package, which is known to cause an issue in the Go compiler. This will be fixed in Go 1.12.
I would like to share my experience here too as it may be helpful for community, I made it works by doing the following:
Update Goland to 18.3
Also, in case if you have Mac, you should run xcode-select --install
In case if you had delv already installed inside GOPATH/bin, remove it and re-install it again by following instructions here
For my Mac the problem is related to the dlv package as installed by Golang plugin.
Install delv and,
check the path of dlv as executed by IntelliJ (in the console).
Go to this directory
($HOME//Library/Application Support/IntelliJIdea2017.3/intellij-go/lib/dlv/mac)
and rename dlv to any other name. Get the right dlv executable by using
which dlv (/usr/local/Cellar/go/1.11.1/libexec/bin/dlv for my computer)
and add a symbolic link
(ln -s /usr/local/Cellar/go/1.11.1/libexec/bin/dlv dlv).
After hours of effort, I was able to find the issue. It was due to Golang Plugin which is deprecated and was not compatible with IntelliJ IDEA 2018.2.2 (Ultimate Edition).
I uninstalled the plugin and reinstall the IntelliJ.
Hope this also helps to above solutions.
I have a project that builds and works on Windows but when I've brought it over to MacOS (Sierra) and set up Resin, Ant, and the rest of my project in IntelliJ the build is failing with a fairly ambiguous error:
build.xml:24: Directory /java/ant-build/classes creation was not successful for an unknown reason
at org.apache.tools.ant.taskdefs.Mkdir.execute(Mkdir.java:70)
Image of the full error message
At first I thought it was a permissions issue but I ran chmod 755 on the two directories and still am getting this error. I also tried updating to a newer version of Ant to replace IntelliJ's built in one with brew install ant#1.9 but that didn't help either.
Does anyone know of any changes that need to be made to projects when migrating from Windows to Mac? I'm the first one at the company to migrate this project to Mac so unfortunately the others don't know much about this.
Both are using:
IntelliJ IDE 2017.1.2
Built in IntelliJ Ant (1.9.4)
Resin 4.0.51
As the comments on the main post point out, this was a permissions issue where the ant was trying to build in the root directory
I had to change my build.properties file so the paths were point towards my $HOME directory.
I'm trying to comple the Apache Flex SDK mavenizer tool, I need this tool to convert the Apache Flex Sdks in package suitable for the Maven repository .
I downloaded the git repository from
https://git-wip-us.apache.org/repos/asf/flex-utilities.git
I followed the instruction in the README.txt that are similar to the Building the Mavenizer tutorial: I clone the repository, I entered in the mavenizer directory and I lunched mvn package.
The maven script ran without errors but I couldn't find any jar in the man target directory.
Each module were correctly built but not the main jar.
So I coulnd't execute the converter
java -jar [path-to-the-maveinzer-jar]/mavenizer.jar "[sdkhome]" "[fdktarget]"
Could someone help me? Has anyone run into the same problem?
I'm happy to share here the answer they gave me in the apache flex users forum.
Actually there was a problem!
Ups sorry for that ... I didn't update that page for quite some time.
The problem is that you checked out the old version. The new version
is in the develop branch. As soon as the mavenizer is officially
released, master will contain the updated version.
I did write down a little more detailed howto under:
https://cwiki.apache.org/confluence/display/FLEX/Quick+Start+Guide:+Building+Apache+Flex+applications+using+Maven
(I just re-checked and fixed one problem)
I Hope that it could be useful !
I am trying to import the sample from this link:
https://github.com/badlogic/theplanethatcouldntflygood
After I unzip the file, I try to import it as a gradle project, but I keep getting this error:
A problem occurred evaluating root project 'theplanethatcouldntflygood-master'.
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
I then attempted to add my sdk location to the ANDROID_HOME environment :
export ANDROID_HOME=/Applications/Development/adt-bundle-mac-x86_64-20140321/sdk
However, this did not fix the error. All the other questions I found on stack overflow related to this error seems to be with Android Studio, but I am having this issue in Eclipse.
All my software downloads are completely up to date since I just downloaded them today. I checked to see if there were any other updates required, and there isn't. I obtained the Eclipse extension for Gradle from this link:
http://dist.springsource.com/release/TOOLS/gradle
I am currently running on OS X Version 10.9.3.
I searched for answers on git hub to see if anyone else was having similar issues with this code but I couldn't find anything, so I am likely doing something very wrong. Almost all recommendations with Android Studio were to add the sdk location to the ANDROID_HOME environment, so I am lost as to what I should do to fix this. Any help will be greatly appreciated!
I found this frustrating, too! Especially since adding the ANDROID_HOME didn't seem to help.
What worked for me was creating a file named local.properties with the contents being:
sdk.dir=/Applications/Development/adt-bundle-mac-x86_64-20140321/sdk
Save the local.properties file in the root directory of the project (in the same folder as gradlew, gradlew.bat, etc.).
I'm trying to compile the qtdensity example from the RInside examples folder, using Qt, Windows 7, R 32bit.
I have followed all the instructions posted online on how to set up these tools since my ultimate goal is to develop a C++/R application in Qt.
When I try to build the project I get the following error:
E:\dev\R-2.15.2\library\RInside\lib\i386\libRInside.a:-1: error: file not recognized: File truncated
Indeed, the libRInside.a file is empty as well as the libRInside.dll file in the same folder.
I have installed, uninstalled, installed again the RInside package using the install.packages("RInside", type="source") command.
The same problem does not occur with the Rcpp package, installed the same way.
I would greatly appreciate any insights on this. I've recently started with C++ and as a result it has taken me a lot of effort to set up everything so far.
Thank you!
Laura
Not sure what I did wrong but I solved it by copy-paste the same files from the archive available at the CRAN page of RInside