Netbeans scala plugin - no documentation - java

I have installed Netbeans 6.7.1 with Scala plugin as described here. I got my "Hello World" project to compile and run.
The problem I have now is that there is no documentation available for Scala functions and classes, all I get is No document found.
In the Scala Platform Manager I have both sources and javadoc not empty and directories listed there exist. What can be wrong?

If you can upgrade to Netbeans 6.9, you could try http://scala-forum.org/read.php?22,2120,2127#msg-2127 :
I think the project location has changed several times since the start of the NetBeans plugin which causes a lot of confusion. In addition most documentations, blog entries and articles are out-of-date. I've searched myself for quite some time for a new version of the plugin.
BUT the plugin for NB 6.9 is available at Sourceforge! Just try it. It works for me with NetBeans 6.9.1 almost without problems. Though there is still plenty of room for improvements as I said.
Marco
Good Luck.

Related

Unable to install org.eclipse.ajdt.ui.nature in Spring Tools 4 / Eclipse

I just downloaded the latest Spring Tools 4 package, 4.3.2 RELEASE. My code base makes widespread use of AspectJ, and every time I try to import a project, I get a "Marketplace solutions available" dialog saying my IDE is missing natures to properly support my projects. It offers org.eclipse.ajdt.ui.ajnature as a solution, but the marketplace won't install it. When I try to access it directly through the Eclipse marketplace in my browser, I get an error dialog saying it's not compatible with this version of Eclipse. I'm using Java 11 on Linux. It's a little hard to figure out which version of Eclipse is embedded in this tool, but it appears to be Eclipse Equinox. Thanks for any help or suggestions.
The link provided by howlger http://download.eclipse.org/tools/ajdt/48/dev/update was the missing piece of information. That solves the problem, everything builds.

Is anyone having success mixing scala and java files in IntelliJ

Is anyone having success mixing scala and java files in IntelliJ?
I am getting way too many strange errors...
Here:
https://stackoverflow.com/questions/27516673/cannot-run-file-located-outside-of-main-module-intellij-14-java-scala
And Here:
IntelliJ 14 Java and Scala ClassNotFoundException
Files are mixed in same module.
Many posts online from -2011 are claiming the same sort of strange issues with mixing in the same project. I feel real uneasy approaching scala if this has remained unresolved for years with no real articles explaining why.
I could be wrong, so I am asking the community for their experience.
The answer is yes, I have Apache Spark project (https://github.com/apache/spark) in my IntelliJ.
It uses standard maven directory that has java and scala directories under src/main of module directory.
Yes. I have several projects running in Intellij. Intellij does a good job of supporting mixed Java / Scala projects. I am not sure of any other IDE that better supports this.
If you are using scala IDE for eclipse, i suggest you to try Intellij.
Check the screen shot:

Do Eclipse workspaces depend on a specific Eclipse version?

Perhaps a newbie question, but I could not find an answer on this one.
Question: Do Eclipse workspaces depend on a specific Eclipse version (and analgously: do Eclipse projects depend on a specific Eclipse version)?
For Example, on a workspace created with Eclipse 3.x, should I only work with Eclipse 3.x or can I also work on this workspace with Eclipse 4.x.
The answer is: it depends.
It depends on the plug-ins you're using, on how well they've each been written to deal with this case, and how prone they are to migrating metadata without your consent rather than simply using what's there.
Yes it depends. See this link Plugin Migration Guide.
Here you find some guidelines to migrate.
There is always a chance of something happening, so it's a good idea to back up your workspace in case you need to fall back to an older version of eclipse. However, in most cases you shouldn't have an issue, provided you don't have your workspace inside your Eclipse installation directory. You can find more information about upgrading and workspaces from help.eclipse.org:
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-2.htm
Hope this helps.

How do I work with JavaFX in Eclipse Juno?

I have installed jdk1.7.0_15.
JavaFX's download page says the following:
JavaFX 2.2.7 contains the latest security fixes and is co-bundled with
the latest JDK 7 for Windows, Mac and Linux.
Download Java SE 7 with JavaFX 2.2.7
Like a good noob, I followed the instructions and installed the JDK. Now when I look for jfxrt.jar file that I can import to Eclipse as a user library, I can not find it. There are a few other JavaFX related libraries in JDK's lib folder but I do not understand what to import next.
Most of the tutorials on Google, including the one by Java, are very old.
Please help me get started with JavaFX
I recommend using e(fx)clipse.
e(fx)clipse is a plugin to assist JavaFX development in Eclipse which will fix your classpath issue and provide you with many other useful features as well as step by step documentation and code completion assistance.
Great question. I remember having the same problem when I started. Here is a little step by step guide.
1) Make a new JavaFx project (This is actually the same as a Java project, it just comes with a more suitable skeleton)
2) If you're getting errors like 'Can't find javafx.application' add the jfxrt.jar by right clicking on the libraries and select 'Add folder/Jar' You will have to browse to your jdk folder and find jfxrt.jar. Here is where it is located in my jdk:
/jdk1.7.0_15/jre/lib/jfxrt.jar
3) For the third step I suggest checking out this example. This example comes with sample code and I used it to copy and paste till I got a little more comfortable in javafx.

Add Java Libraries to a Netbeans Grails Project

I am just getting started with Grails. How do I add Java libraries to my Grails project? I added the Smack library jar to the lib folder of my Grails project, but I still cannot import any of its packages into my Java or Groovy classes. I am using the Netbeans IDE. Any help would be appreciated..
Buzzy
This is a know bug in NetBeans: http://www.netbeans.org/issues/show_bug.cgi?id=144243
Maybe you can help the devolpers to fix it by adding a comment to this issue in the NetBeans bug tracker.
Here is what I did to solve the problem when running SpringSource Toolsuite:
Configure the build path by adding external jars (e.g. javax.mail, adwords-api, etc.)
Imported the same jars in to the lib folder (where mysql connector jar is located).
This should fix the compile time errors you would receive from missing imports in your java files.
Hope this helps
As stated above, this is a bug in the IDE, not Grails. Those libraries are available in your code, but the IDE won't do any code completion, etc.
Note, NetBeans 6.5 is supposed to have much better Grails integration. Or, you could use IntelliJ, which already has it.
G2One's acquisition by Spring Source makes the roadmap for Eclipse integration for Grails look much rosier, too. It's not there yet, but it's coming, and now maybe faster than we thought.
The issue still remains in NetBeans 6.5 (Build 200811100001), so the IDE will not do any code completion and formats the code that is referencing classes in the JAR as erroneous.
I have not tried NetBeans 6.7.
I'm using Netbeans 6.7.
I just pasted the library in the project's 'lib' folder and when I went back to Netbeans the library was under the 'Libraries' folder automagically!
i m also using netbean 6.7 and it's automagically working when i passed the jar under Libraries folder

Categories