Using preprocessor directives in BlackBerry JDE plugin for eclipse? - blackberry

How to use preprocessor directives in BlackBerry JDE plugin for eclipse?

Within the eclipse config file (%ECLIPSE_HOME%\configuration\config.ini) make sure the following line exists.
osgi.framework.extensions=net.rim.eide.preprocessing.hook
With the current BlackBerry plugin (1.0.0.67) config line is added for you. I'm not sure about older versions of the plugin.
Also, checkout this Stack Overflow question for more information on the BlackBerry preprocessor.
Preprocessor directives supported by the RIM compiler

Related

Is it required to add java to your path for android development

I was wondering if it is required to have java added to your path (environmental variables), if you are using the adt bundle and the jdk is installed.
With other words: Does java has to be added to your path to let the Android SDK & adt plugin function correctly.
I think if you are using IDE (like Eclipse) then there is no need to do so.

Jenkins warnings plugin gives different results from eclipse

I am using the Jenkins warnings plugin to display compiler warnings. Problem is: The warnings I get from the Jenkins warnings plugin are different from the warnings I get in Eclipse.
e.g.
In Eclipse: I need an #SuppressWarnings("null")
In Jenkins: this annotation is marked as unnecessary
It looks like the warnings Plugin is using a different compiler compliance level than my Eclipse installation does.
In Eclipse I am using Compiler compliance level 1.6.
How can I find out and adjust the compliance level for Jenkins?
Or is there another explanation for the differing warnings?
Check the config of this job.Find the JDK checkbox, Is it default or sth else? Try to set it 1.6 and see.
Eclipse warnings can actually be customized. So I think the
problem is that the eclipse compile warning settings are different with the Jenkins Compile settings.
You can try compile your code with javac and see if you get the same warnings with that in eclipse,if not,it should be a eclipse config issue.

Grails x86/x64?

I was planning to use Eclipse Juno instead of GGTS/STS provided by SpringSource. I have installed on my Eclipse the plug-in for the GGTS support. I also have downloaded the newest version of Grails that is version 2.3.3. All is well, but when I create a Grails project on my Eclipse IDE this error always occurs on the Console View.
General error during semantic analysis: unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
java.lang.ClassNotFoundException: unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
I don't see any problems when I type java on my command prompt. I am currently using Windows 7 x64 with a JavaSE 6/7 both on x64. Is it possible the cause of this problem is that Grails needs to have a jre6+ under x86 platform?

QNX_CONFIGURATION settings error after Blackberry NDK installation

I've installed Blackberry Native SDK for Windows 7 but I get the following error when I open the application after installation:
"There is an error in the QNX configuration settings. Either de QNX_CONFIGURATION environment variable is not defined correctly or the location it points to is not accesible.
Exit the IDE and fix the error?"
I guess the solution is as easy as setting the indicated environment variable to the correct path. But i don't know the path it must point to. Does anybody know?
Thanx in advance!
It needs to point to the directory that contains the BlackBerry Native SDK qconfig folder. In Windows it is probably "C:\Users\username\AppData\Local\Research In Motion\BlackBerry Native SDK".

Netbeans groovy 1.8 support

I am using NetBeans 7.1, which comes with Groovy 1.6 support. I have to do a Grails project, but with Groovy 1.8 support. So I downloaded Groovy 1.8 installer, installed it and added the Library in Netbeans -> Tools -> Libraries (and removed Groovy 1.6 library).
Now whenever I use some stuff added in Groovy 1.8 within my Grils project, it still underlines it and throws "cannot resolve" error... I was googling it for last 2 hours and everything I find seems I have already done... it starts to give me a headache... Any suggestions on how to solve it?
NetBeans support from Groovy has -- until recently -- stagnated.
The Groovy support (as you say) is for Groovy 1.6.X, and the Grails support is similarly old.
There has very recently been some activity in trying to improve this, but at the current time you are probably better using Eclipse, STS (both free) or IDEA (paid) if you want proper IDE support for up to date Grails development.

Resources