Blackberry Build Error - blackberry

I am getting the following error when building the app using Blackberry JDE editor:
Building HelloWorld
C:\Program Files (x86)\Research In
Motion\BlackBerry JDE 7.1.0\bin\rapc.exe -quiet codename=HelloWorld
HelloWorld.rapc
warnkey=0x52424200;0x52525400;0x5242534b;0x42424944;0x52435200;0x4e464352;0x52455345
import="....\Program Files (x86)\Research In Motion\BlackBerry JDE
7.1.0\lib\net_rim_api.jar" C:\Projects\BeginningBlackBerryDevelopment\com\beginningblackberry\helloworld\HelloWorldApp.java
java.io.IOException: Cannot run program "C:\Program" (in directory
"C:\Projects\BeginningBlackBerryDevelopment"): CreateProcess error=2,
The system cannot find the file specified
Error while building
project

I would try reinstalling your JDE. Something looks like it got messed up during installation.
I am able to install and run JDE 7.1 on a Windows 7 machine (64-bit, with the install directory set to C:\Program Files (x86)\Research In Motion\), using the BlackBerry_JDE_7.1.0.exe file on blackberry.com published 7/12/2012.
If reinstalling doesn't work, then the next time you install, try to pick a new directory to install in. Instead of
c:\program files (x86)\research in motion\
as the root folder, make a new folder yourself:
c:\RIM\
and install there. It looks like somehow your command line is having trouble with file paths that include spaces.
Also, the JDE is now quite old. I would generally recommend trying to use the Eclipse Plugin, although from your other question, it looks like you're having trouble with that, too :(

Reinstalling the JDE to c:/rim worked for me.

Related

How to set environment for Blackberry Phonegap?

I tried with the procedure in http://docs.phonegap.com/en/2.0.0/guide_getting-started_blackberry_index.md.html#Getting%20Started%20with%20Blackberry but i cant set apache ant please help me to set environment. and guide to to develop the application
Steps:
Install the WebWorks SDK
Install Ant and set environment variable path of bin folder.
Link:http://ant.apache.org/bindownload.cgi
Register for Signing Keys
Link:https://developer.blackberry.com/html5/documentation/signing_setup_smartphone_apps_1920010_11.html
3.1 Paste signing keys to C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\bin
3.2 Install all key from command prompt with command (java -jar SignatureTool.jar [CSI file name].csi) from bin folder.
Build Project from project folder with command (ant blackberry build).
Run Project from project folder with command (ant blackberry load-simulator).

Webapplication.targets missing when building a MVC4 project in MonoDevelop on OS X 10.7.4

I am trying to build a test MVC4 project on OS X 10.7.4 using Mono 2.10.9. I created a new empty MVC4 web application in Visual Studio used git to transfer the source code from Windows to Mac OS X. I then ran xbuild for .nuget package restore, but when I build in monodevelop I get a weird error:
/Users/tamasnagy/Developer/Spellbound/Spellbound/Spellbound.csproj: Error: /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/VisualStudio/v10.0/WebApplications/Microsoft.WebApplication.targets: Project file could not be imported, it was being imported by /Users/tamasnagy/Developer/Spellbound/Spellbound/Spellbound.csproj: Imported project: "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/VisualStudio/v10.0/WebApplications/Microsoft.WebApplication.targets" does not exist. (Spellbound)
What could this mean? This also happens when I simply create a new MVC project in MonoDevelop and press build. Any ideas?
Create a symlink:
cd /usr/lib/mono/xbuild/Microsoft/VisualStudio/v9.0
ln -s v9.0 v10.0
I have the same exact ubuntu 12.04 distro on two different computers and could not figure out why mono would compile on one computer and not the other. But oh well, symlink solved the problem.
Change your csproj file to import v9.0, as so...
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
Mono's MSBuild implementation (xbuild) does not have an implementation of the targets for ASP.NET projects.
You might be able to build in MonoDevelop. Make sure you have the experimental xbuild integration turned off in MonoDevelop preferences.
I know this is an old question, but it came up when searching for how to use WebApplications.targets on OSX, so it's still worth answering. With the current version of Mono (5.x), Webapplication.targets is included, so now all you have to do, is to set the VSToolsPath, and everything should just work.
If you are using standard bash shell, the .profile file is the place to put it:
export VSToolsPath=/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild/Microsoft/VisualStudio/v15.0/

don't have apk in Bin and cannot build app in monodevelop when update Mono for Android 4.1

After update Mono for Android from 4.0 -> 4.1 ,I have problems:
In Visual Studio : when I start application , it doesn't run application in emulator(I only see message notification at left corner Build successful!) and I cannot see .apk file in Bin
In Mono develope :When I build this app it have error Error MSB4019: The imported project "C:\Program Files (x86)\MonoDevelop\AddIns\BackendBindings\MSBuild\Novell\Novell.MonoDroid.CSharp.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. (MSB4019)
Does anyone know what might generate these errors?
In VS, you probably need to turn on "Deploy" for your project:
http://docs.xamarin.com/android/Releases/Mono_For_Android_4/Mono_for_Android_4.1.0#Non-modal_Deployment

How do I run D3D9 programs (that have already been compiled) on a machine without the SDK?

I have a simple 3D application programmed in C++ and D3D9 using MSVC++ 2008 Express. Some weeks ago, I had to format my hard disk, so the DirectX SDK is not currently installed.
However, I found that the exe file that I found in my "Debug" folder for the project does not run. The error it gives is:
"This application has failed to start because d3dx9d_38.dll was not found. Re-installing the application may fix this problem."
Of course, it worked after I installed the SDK. Then I compiled a "release build" thinking that that was the solution. Then I uninstalled the SDK and tried to run the .exe file.
Still gave me the error.
So how does one make such .exe files run on machines without the SDK?
I think you cannot run the app without the SDK. See XBMC, which requires the SDK to run.
However, you could try simply placing the required dll file from your SDK in the same directory as the executable.
I followed the solution as stated here.
I copied the d3dx9_38.dll file into my Release folder. It still didn't work. However, I renamed the dll file to "d3dx9d_38.dll. Then it worked.
Wondering why I had to rename to the debug version of the file even though it was a RELEASE build...

No definition found for exported static routine : .main(String args[])

we are executing of my .cod and .jad files on Blackberry JDE4.0.2 simulator7290. while building that project we are geting the folloewing warnings
Deleting C:\Program Files\Research In Motion\BlackBerry JDE 4.0.2\samples\com\rim\samples\device\BlackCard\BlackCard.cod.
Building BlackCard ...
C:\Program Files\Research In Motion\BlackBerry JDE 4.0.2\bin\rapc.exe -quiet import=..\..\..\..\..\..\lib\net_rim_api.jar codename=BlackCard BlackCard.rapc "C:\Program Files\Research In Motion\BlackBerry JDE 4.0.2\1[1].1\1.1\BlackCard.cod" "C:\Program Files\Research In Motion\BlackBerry JDE 4.0.2\1[1].1\1.1\BlackCard.jad"
Warning!: No entry points found
Warning!: No definition found for exported static routine: .main(String[])
BlackCard - no errors.
Build complete.
I´ve searched in many forums to resolve this problem. But found out a easy way to create a new BlackBerry Project without this Problem.
I have the Eclipse SDK Version: 3.7.0 includes BlackBerry SDK.
Answer:
Create BlackBerry project: (Menu) File->New->BlackBerry Project
Enter a project name.
Click "next".
Under the source tab window open "Details"
(if it is not open, click the arrow besides "Details")
Click "Add project '...' to build path"
Click "finish".
This works for me and I hope for you too ;)
Sorry for my english.
André Müller
Not a lot of context here - but it really looks like you dont have a main defined in your project.
Look at this support forum thread:
No definition found for exported static routine: .main(String[])
I just tried using an old JDK version, and was hit by this error. I would not mark this as solved. I am still trying to figure out how to change my class path, ala http://supportforums.blackberry.com/t5/Java-Development/No-definition-found-for-exported-static-routine-main-String/td-p/238814 "The reason was a misconfigured bin-path in the eclipse classpath. Eclipse generated the classfiles in an other location than the rapc compiler searched for them. Fixing the classpath did it. " Admittedly I am using BBEclipse on a mac :/

Resources