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

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 :/

Related

Use OpenCV/CMake with Clion

I wish to use CLion for my course so I follow this topic.
I updated my PATH by adding these values :
C:\Program Files\CMake\bin
C:\tools\opencv\build\install\x64\mingw\bin
(I use chocolatey)
And I added this FindOpenCV.cmake to my project and in the folder C:\Program Files\JetBrains\CLion 2020.2.1\bin\cmake\win\share\cmake-3.17\Modules.
When I try to reload my project in CLion I have :
Found OpenCV Windows Pack but it has no binaries compatible with your configuration. You should manually point CMake variable OpenCV_DIR to your build of OpenCV library.
How can I solve that ? Thanks in advance.

Problems building a simple F# project in Xamarin Studio on Windows 8

I've had VS2013 installed on my windows 8 laptop and F# works fine.
I've since installed Xamarin Studio version 4.2.2 but unfortunately can't get any F# project to build even a very simple one.
I installed F# Version 3.0 from the Web Installer and have installed the F# addin in Xamarin Studio and restarted it. Compiling the simple Console Project just gives me the error:
Error: Build failed. See the build log for details.
With no other details anywhere.
In the fsproj file There is the following:
<Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets"
I'm not sure where the MSBuildExtensionPath32 is set or where it currently points to but if I update this to a hard-coded path that actually points at my file:
<Import Project="C:\Program Files (x86)\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets" />
Then when I build the project in xamarin it builds successfully.
Is there an easy way of setting the MSBuildExtensionsPath32 to my actual path for xamarin? I don't really want to resort to having to set up a .bat file to launch it but can't find an option in xamarin to configure it.
I feel I must be missing something.
Thanks
It looks like the F# project templates are using a path to an older version of F#. There is a discussion about this on the GitHub repository for the F# addin. Hopefully the project template can be updated to support different versions of F# being installed. For now you can modify your project file.
MSBuildExtensionsPath32 points to C:\Program Files (x86)\MSBuild
So you could try modifying the project template to use the following path, which should work on your machine:
<Import Project="$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets" />

Blackberry Build Error

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.

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

Resources