intellij error while importing SBT project - scala

I recently installed IntelliJ on Ubuntu 16.04, but I'm getting this error while trying to start a Scala project:
This is my first linux computer, and I installed the oracle 8 jdk through the package manager, not sure if it's something wrong with this configuration or something else. Am I missing some java variables? When I installed intellij before on Windows the scala package came with basically everything I needed, and I used the jdk windows installer.

I think your Intellij is missing the Scala SDK. Usually it would be picked during first time setup.
Open "Open Module Settings" of your project (by right-click), go to libraries, add an Scala SDK.
Hope it should fix your problem.

Related

Incorrect Scala plugin configuration for NetBeans 8?

I'm running NB 8.0.2 on Linux Mint 17.1. I've followed the instructions twice, but still only see the "Scala Sbt Project" project template. I was expecting to see several non-SBT templates as well. I can, however, create and run Scala objects just fine, so I can work with it as it is, even if I'm not planning on using SBT.
Is something wrong with my plugin config, though, if I'm only seeing the SBT project template?
I've already gone through How do I add the Scala Platform in Netbeans? and other links, but this seems to be a NB 8 issue, as most of the posts/blogs concern NB 7 and 6. I didn't see anything about it on https://github.com/dcaoyuan/nbscala or https://blogs.oracle.com/geertjan/entry/10_steps_to_happiness_with .
Thanks,
Ari

Haskell Plugin on Eclipse is not visible

I'm learning Haskell and I need to install Haskell plugin on Eclipse.
I have first installed Eclipse Kepler and then installed the Haskell plugin from http://eclipsefp.sf.net/updates. The plugin installation went ok but the Haskell perspective is not visible at Window > Open Perspective > Other. It's visible at Help > Installation Details, though.
I've come across similar problem at this post:
Plugins installed on Eclipse not visible
I've applied all suggestions: I've started Eclipse as root, I've changed the installation path from /Applications to ~/, I've given write access to plugins folder, no luck.
I've erased Eclipse Kepler and installed Luna, still no luck.
I've updated the JRE to Java SE 7 [1.7.0_71] and edited the Java JRE section at Eclipse preferences, still no luck.
Any help is appreciated, thanks.
My OS X Lion 10.7.4 64bit
I've solved it. The problem seems to stem from multiple java versions installed on Lion.
I've come across this post salesforce Eclipse plugin and there I noticed that multiple Java versions on one system might cause trouble on plugins and in case of saleforce, that was causing trouble on Eclipse plugin or perspective.
Then I've taken a second look at Haskell's Eclipse plugin page Haskell Eclipse plugin and there I saw the java version 7 was emphasized.
So I reckoned that some java version mismatch might be causing Eclipse not to display the Haskell plugin. Btw, my installing the latest (1.7.0_72) version of java didn't change any possibel version mismatch on my Mac OS X, because though I successfully installed 1.7.0_72 version (using the file jdk-7u72-macosx-x64.dmg which I downloaded from oracle.com), the $ javac -version still returned 1.6.0_29.
Then I've found this post multiple java installations on mac os x and added the following line to eclipse.ini
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home/bin/java
before -vmargs, and that finally solved the problem. Now the Haskell plugin and perspective comes up. That's fine.

IntelliJ IDEA w/ Scala Plugin not finding scala.concurrent

I am having the hardest time getting a fresh install of IntelliJ to work properly with Scala.
I've installed IntelliJ IDEA 13.1.4 and the Scala plugin on a Mac. In any project, the IDE complains it cannot find scala.concurrent (or any other package in scala-library) even though the library is listed under "External Libraries". What am I missing?
I've got the basic steps to reproduce down to:
Install IntelliJ IDEA 13.1.4
Install Scala plugin via IntelliJ plugins dialog
Create a new Scala project (either SBT or non-SBT, doesn't matter)
Define a new class and try to import scala.concurrent._
This happens with new or existing projects - even when provisioned via sbt gen-idea.
I've installed Scala and SBT via brew and even tried setting $SCALA_HOME to point to the brew install of scala (/usr/local/share/scala).
IntelliJ is listing the library in External Libraries but still can't resolve the symbol.
I have been fighting with this for hours. What am I missing here?
I had the same issue. I fixed it with Invalidate Caches
File | Invalidate Caches / restart. Manual way on Mac with removing this folder:
~/Library/Caches/IntelliJIDEAXX
I had the same issue and above advice didn't help me. After googling and reading JetBrains tickets, I found out that I had $JAVA_HOME variable pointing to JDK 1.7:
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home
Removing that from both current shell (unset JAVA_HOME) and shell's profile (in my case .zshrc) resolved the issue.

Eclipse setup Ubuntu 10.04

I am trying to setup Eclipse on Ubuntu 10.04. I have installed Eclipse SDK 3.5.2 from the Synaptic Package manager.
The problem is, Eclipse is not giving me an option to create Java or Dynamic Web Projects. It also does not properly recognize the projects that I import (shows source folders but not packages).
Do I have the right version of Eclipse or do I need to install anything besides this.
Please note that I already have Sun's JVM set as the default for my system. Have been trying for a while and have searched everywhere with no luck, any help would be highly appreciated.
Thanks
The version packaged in Ubuntu is a light version for Java SE development (i.e. standalone java application). If you want to create web projects, you need a version with a lot more plugins. Eclipse IDE for Java EE Developers
I guess you need Eclipse IDE for Java EE Developers.. Here it is.

Failure creating clojure project in Netbeans

I decided to take a look at Clojure and thought the best and easiest method for me would be to use Netbeans with the Enclojure plugin as I didn't want to have to learn Emacs at the same time. I installed Netbeans 6.9.1 together with the latest JDK using the bundled install (on Windows 7). All went smoothly. I then followed the instructions at http://www.enclojure.org/gettingstarted for installing the enclojure plugin.
When creating a new Clojure application I get the following and see no project files :
java.io.IOException: Could not connect to URL nbresloc:/org/enclojure/ide/templates/project/ClojureProjectTemplate-1.1-distribution.zip. No such resource was found.
Maven is working using mvn --version
I have installed on both Windows 7 and Ubuntu 10.04 (same result).
I have looked on the Enclojure forum and there is a recent open thread for this issue, but it is not solved by anybody presently.
I have Java SE enabled in Netbeans
I have tried enabling the different platform versions of Clojure, 1.0.0, 1.1.0, etc..
The REPL seems to be working happily in Netbeans : (printf "hello") hellonill
I did try ClojureBox on Windows 7, but again that's Emacs, but emacs failed to start the server and hung there and became totally unresponsive.
I come from a .Net background (not Java) so my knowledge of the Java environment is somewhat lacking. My reason for looking at Clojure and not Java.
I am new to Netbeans
If you're interested in a working Maven pom, here is one I've used with Enclojure successfully:
http://puredanger.com/techfiles/100624/pom.xml
There are some project settings you'll need to change and a few dependencies to remove but it might be a good start. In general, I usually create the pom first and then just import the project into NetBeans rather than using the NetBeans options to create projects.
By the way, the REPL work in Enclojure has been split and is coming soon to the Eclipse plugin Counterclockwise.
I had written a small post on it on my blog.
Anyways here is the procedure:
On searching realized that this is a common problem for installing it on > Netbeans 7.. But with some manual tweeks managed to install it. Here are the instructions to install on Netbeans 7. plus:
Install Netbeans 7. You need only the Java SE version.
First Run of Netbeans after installation. Activate feature Java SE
Activate features is on the Start page or from Tools,->Plugins>Installed, click ‘Activate next to the Java SE support
Install Maven: It is HIGHLY recommended that you install maven: http://maven.apache.org/download.html
Go to the Netbeans->Preferences, click on the Miscellaneous tab and make sure the External Maven Home path is pointed to your maven install
Download the EnClojure 1.5 version from here. If you want to manually build, you can do that by following the instructions from here.
After downloading the file, In Netbeans: Goto:- Tools ->Plugins->Downloaded->Add Plugins->Downloaded
Then browse to the downloaded file. Later install by clicking at the “install : button.
Restart and you are on the go.
Visit here to build and run hello world project.Basically building the EnClojure 1.5 manually is the tough job. I hope above was useful.