I'm currently using IntelliJ IDEA Community Edition 2017.1 to work on a project that involves using a Greenfoot port (GitHub) that's optimized to use Groovy. The code is perfectly fine, but IntelliJ is telling me that com.sun.jdi doesn't exist. I am unsure as to how I might fix this. Any ideas?
Sidenote: I don't know much about how JDI correlates with VM, which I suspect may have something to do with it.
Add tools.jar to the JSDK classpath used for this project:
As someone who is new to Java and developing a plugin for Datameer, I'm not sure if Eclipse has imported the project structure correctly. It doesn't look like it. The nested src folders are split out separately as what looks like Java packages. The Jar files requested by the plugin sdkare not in a lib folder, they're included at the top level of the project.
The project requests Java 1.7. I'm using Eclipse Mars with Java 1.8. Although, I have Java 1.7 on my machine so it should only matter when I go to build. Could you please help point me in the right direction?
I hate posting answers to my own questions but the issue does appear to be resolved after I switched over to Java 1.7 & restarted eclipse. You can have multiple versions of Java by using update-alternatives on Fedora 22. I can't speak to other distributions. Since the project did require Java 1.7 then this outcome makes sense to me
I am building a small Java code analysis tool and wonder if I could use the amazing IntelliJ compiler to get an AST for Java projects?
IntelliJ has open sourced the community edition some years ago under the Apache 2 license. Can the project also be used as a library in a Java standalone project (instead of a plugin for a full IDE) to analyze Java projects? The Git repository is quite big and I am grateful for any hints or links where to start.
(I have already read about the Eclipse JDT but creating my own Mini-ANTLR-Java-parser was much easier than getting the Eclipse JDT to work for me. But it would be amazing if I could use a more sophisticated, always up-to-date version of a Java AST for my project. So my hopes are in the IntelliJ compiler.)
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.
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