I need to know how to use an an Ant tool for preprocessing in Blackberry. I have a project which needs to be used in 4.6 and 5.0 versions of Blackberry, since JDE4.6 doesn't support preprocessor. I need to know how we can use Ant tool in Eclipse?
Any sites or example will do.
I referred this site.
http://www.blackberryforums.com/developer-forum/138210-setup-up-eclipse-blackberry-development.html
and
http://bb-ant-tools.sourceforge.net/docs
This both links will be very helpful to you as a use Ant tool in blackberry eclipse.
Eclipse has a versioning preprocessor plugin. It's like a preprocessor who's only commands are #define and #ifdef
However I wanted something more myself. I don't know how to use Ant, but I did just manage to get the C preprocessor working in Eclipse on windows for java, using the non-Ant Builders and some glue in Ruby. I wanted it for an android project, maybe for similar reasons to why you would want it for Blackberry.
Since I was looking for an answer on Stackoverflow before I rolled my own and didn't find one, I'm copying my post into a few questions like this one:
https://stackoverflow.com/a/10497206/1137626
Related
I'm just about starting to learn Java. Reading about, I installed Netbeans.
Running Apache Netbeans IDE 11.2.
The Java version is 13.0.2.
I'm promptly follow the Quickstart guide on the netbeans website.
File>>New project>> Java >> Java Application.
Errhmm, I don't have this 'Java' option. All I have is
So what's the difference between Java & Java with Maven/Cradle/Ant . At this point in time, I intend to start with basics of Java programming and then move on from there. SO which option am I meant to be starting with? If I'm missing Java, how can I add it ? Going through the installation procedures didn't give me any option to choose from.
p:s - this is all running on Mac OS Catalina
You can start with any of Java with ... option. I use Java with Ant option.
Maven, Gradle, Ant are build-tool addons i.e. they provide additional support if you intend to use any of these as your build tool.
When you choose Java with Ant option, it will let you create, compile, debug and run your Java programs without requiring anything additional. After using this option, you will get an interface as shown in the screenshot given below:
Maven, Gradle and Ant are build tool which allows you to compile, unit test, package and (if you like) even deploy your Java applications (they do support other languages btw).
I suggest you to start with one of those (Maven is very popular and probably a little bit easier than the others) instead of relying on your Java IDE specific features.
Once you master a build tool you can change IDE (IntelliJ is also a very good option ;-)) and will still work as before. You also find plenty of resources and help (like Stackoverflow) if you need hit some problems.
Best of luck!
I've been looking into scala lately and from the conciseness and language features I'm completely thrilled.
I have netbeans 8.0 running on ubuntu 12.04 and downloaded scala, edited netbeans.conf (netbeans_default_options="-J-Dscala.home=...), installed plugins from plugin manager inside netbeans (ALL OF THEM). Then, I created scala project (not maven one) and tried out autocomplete. It works, compiles, runs, however, it shows no document found in autocompletion.
This is how I added javadocs Tools > Scala platforms > javadoc tab
I tried adding following ways:
added the entire scala api doc zip from http://downloads.typesafe.com/scala/2.11.2/scala-docs-2.11.2.zip
extracted the previous zip to scala-home folder under $SCALA_HOME/docs/javadocs/scala-docs-2.11.2 and added that
same as 2 but added $SCALA_HOME/docs/javadocs/scala-docs-2.11.2/api in netbeans
None of these pick up documentation! Of course, I could live without it, but it's such a killer for such a concise language where I could just find out stuff instantly from autocompletion. Also, I don't want to use eclipse special ide for scala because I don't want to throw out all the experience with netbeans out of the window and learn new IDE.
P.S. - Netbeans navigator also seem not to work in scala.
And I wonder why there's so little content on google for such a wonderful language?
There is no need to change to IntelliJ. Use the right build tool -sbt or Maven- and everything works fine.
In Netbeans you can use e.g. free Application Servers.
Netbeans support for scala seems pathetic so I just decided to jump to IntelliJ IDEA. It was little bit of learning curve but I'm glad I did because now everything was working (autocomplete, documentation, awesome SBT support etc. etc.)
I read some tutorials about making Eclipse plugins, but every text was just about Java coding. Does it really have to be Java or there is some way to write a plugin in some other JVM language such as Scala or Clojure?
You can use all languages that are based on JVM. You need to simply add a dependency jar (e.g. Scala dependency).
Tested live, so it must work!
Current version of Scala IDE is written in Scala
I wanted some tool which could check all the standard violations that I make while I write code. After some search I found Eclipse Checkstyle Plugin suitable to my requirement.
I have not yet tried out using this. Information about this tool was found in this site
http://checkstyle.sourceforge.net/
Can some on who has used this tool tell me whether this tool works fine for applications that have Generics and wrapper classes.
Oh Yes, we use Checkstyle regularly in our project. This proves it works fine for 1.5.
Protocol Buffers (protobuf) are a way of encoding structured data in an efficient yet extensible format.
There's plugin for Netbeans, but I cannot find one for Eclipse. Does it exist? If yes, please, share the link.
Thanks.
I recommend using Google's "Protocol Buffers Development Tools". It is a plugin for Eclipse that features automagic regeneration and error checking with quick fixes, among other things.
It's available here: https://github.com/google/protobuf-dt/blob/master/README.md .
It does not seem to be approved by Eclipse yet.
And the EMF project uses protobuf, but not as a plugin.
So for now, no there do not seem to be any Eclipse protobuf plugin.
I have tried protobuf-dt, that was the only plugin [on marketplace]. But it had some issues, so I created (November 2016) one that would fit protobuf and gRPC usage, that we have (generation inside maven build without waiting for issues to be solved)
Welcome minimalist editor for .proto files. Just 25KB, works in any Eclipse (latest protobuf-dt 3.2 requires Neon)
Sources and notes are at
https://github.com/Enide/polyglot-maven-editors#minimalist-proto-files-editor-for-protocol-buffers-and-grpc
It is already on Marketplace https://marketplace.eclipse.org/content/minimalist-proto-files-editor-protocol-buffers-and-grpc
Using m2eclipse and directions from Issue 81/Comment 6 for a a protobuf maven plugin, it works pretty well.
The only trick that doesn't work exactly is the "generated-sources/protobuf" will be created following the instructions is not automatically added to source folder in eclipse. Do this manually and you're g2g.
Related Stackoverflow Issues:
how-do-i-get-support-for-gpb-in-eclipse
integrate-protocol-buffers-into-maven2-build