STS - Scala project not showing up - java

I have installed Scala IDE plugins from Eclipse Marketplace but there is no option to create Scala project.
NOTE:
I am using spring-tool-suite-3.6.2.RELEASE-e4.4.1
Installed Scala IDE for Eclipse & Scala Worksheet since JDT Weaving is already installed in STS.
Scala version: 2.11.2

Create a regular project then when you right click on it in the package explorer there should be a Scala sub menu and you can "add Scala nature". Now STS knows it's a Scala project.

Related

Eclipse Luna - "No projects are found to import"

I am using the following version of Eclipse IDE:
Eclipse SDK
Version: Luna SR2 (4.4.2)
Build id: M20150204-1700
I have checked out my code using SVN and when I do the following:
Import > general > Existing Projects into Workspace > click on project
I get the error:
"No projects are found to import"
How can I solve this?
In that release, the wizard expects to find .project files defining the projects. If they were not checked in, you can not use that wizard. You have more options under the current release, Oxygen.2, and unless you have a reason to be using a 3 year old version, I'd suggest updating and using the new "Open Projects from File System" wizard.

Intellij Idea add Scala support to existing Java project

Intellij Idea add Scala support to existing Java project.
Just cannot figure it out How to add Scala worksheet to existing Java project?
It would be just nice to have Scala REPL or worksheet.
But after resiarsh and trying I failed to do that.
To add Scala support to existing module:
Right-click the module in Project View, choose “Add Framework Support…”
Check “Scala” in technologies list (unavailable if module has Scala facet attached)
Provide a path to Scala installation (if not detected)
From http://blog.jetbrains.com/scala/2010/09/02/project-configuration-explained/.

Java8 and Aspectj plugin are not compatible?

I'm using eclipse Kepler 4.3.2 with STS, Maven and other Web development tools. Today i thinked about trying some lambdas with Java 8, so I installed JDK1.8 and Eclipse Plug-in Development Environment Patch with Java 8 support (for Kepler SR2). It was working but when I opened project i was working with I got bunch build errors in dispatcher-servlet.xml:
Build path is incomplete. Cannot find class file for org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
It looked like AspectJ plugin was uninstalled, so I installed it again:
AspectJ Development Tools (AJDT) including the AspectJ compiler.
AspectJ compiler for Eclipse
After rebuiling, project works again but I cant use lambdas. In preferences > Compiler compliance level there isn't Java 1.8. It was there before installing AspectJ stuff.
What can I do to make this work together?
You can install the most recent development version of AspectJ plug-in for Kepler, which supports Java 8 at http://download.eclipse.org/tools/ajdt/43/dev/update
Then re-install the JDT update at http://download.eclipse.org/eclipse/updates/4.3-P-builds/

Compiling Groovy Code in my Java EE application

My web project includes Groovy class files.
How should I compile it for my project using Eclipse?
Rest of my team is using IntelliIDEA to use it but I want to set it up in Eclipse.
To start with I have installed a Groovy Plug-In for my Eclipse and installed Groovy on my Windows.
You should be able to right click on the project -> Configure -> Convert to Groovy project.
If your project is a maven project, then you should also install m2eclipse as well as the optional m2eclipse configurator for groovy-eclipse. This will automatically configure your project for Eclipse and groovy.
Hope this links helps you. It has step by step on how to import your existing Groovy Project into eclipse so you can work on it.
http://docs.codehaus.org/display/GROOVY/Create+Your+First+Groovy+Project
If the project is created using grails create project, I believe all of the .project and .setting files are there for eclipse.
If you have the groovy eclipse plugin installed you should be able to mix your groovy classes into the same packages as your java code. Are you using maven or ant to build your actual war file? If not you will have to make sure that you compile the groovy classes along with the java code. while in eclipse you will be fine. Both ant and maven have facilities for compiling the groovy and java code together for your actual war that you deploy.

Eclipse RCP with project dependency

I have developed an RCP plug-in (not standalone), and a Java Project with library code that the plug-in needs to call.
I have configured the Java Project in the same workspace. The plug-in has a project dependency on the Java Project.
The code compiles (the plug-in does some stuff with the Java Project / library code).
When I run the plug-in, I get a ClassNotFoundException:
java.lang.ClassNotFoundException: com.mycode.ArgSet
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
Anyone know how to configure the plug-in properly?
Convert your library project to a plug-in project (right-click -> Configure -> Convert to Plug-in Project) and add it to the dependencies of your plug-in project (manifest editor, Dependencies tab).
You can also generate a JAR of your libray Project and add this jar to your plugin-project. That's the way we do it (but thats not that automatically, you have to export manualy every time you change the library-project.
The other bad with this jar-export is: when using another libraries (i.E. AXIS2 for Webservice,...) this Libraries must have also been added to the plugin project.

Categories

Resources