Buid error and I do not understand why
Hello
I'm a newbe in Java and I can't build this application. Can someone help me? Thank you
Bernard
Building SenderSmsBernard
C:\Program Research In Motion\BlackBerry JDE 5.0.0\bin\rapc.exe-codename-quiet = com\rim\samples\device\SenderSmsBernard\SenderSmsBernard com\rim\samples\device\SenderSmsBernard\SenderSmsBernard.rapc warnkey = 0 x 52424200; 0 x 52525400; 0 x 52435200 import =... \lib\net_rim_api.jar "C:\Program research in Motion\BlackBerry JDE 5.0.0\samples\com\rim\samples\device\SenderSmsBernard\img\SenderSmsBernard_jde.png" "C:\Program search in Motion\BlackBerry JDE 5.0.0\samples\com\rim\samples\device\SenderSmsBernard\SenderSmsBernard.java".
C:\Program Research In Motion\BlackBerry JDE 5.0.0\samples\com\rim\samples\device\SenderSmsBernard\SenderSmsBernard.java:34: incompatible types
found: javax.microedition.io.Connection
required: javax.microedition.io.file.FileConnection
fileConnection = Connector.open ("file:///SDCard/testfile.txt");
^
1 error
Error! : error: failed java compiler: javac - 1.3 source-target 1.3 - g - O-d C:\Users\Bernard\AppData\Local\Temp\rapc_33f1d149.dir - bootc...
Error while building project
And my code:
package com.rim.samples.device.SenderSmsBernard;
import java. IO;
import java.io.InputStream;
import java.io.IOException;
Import Java.util;
Javax.microedition.io import. *;
Import javax.microedition.io.Connector;
Javax.microedition.io.file import. *;
Javax.wireless.messaging import. *;
Net.rim.device.api.io import. *;
Import net.rim.device.api.io.SharedInputStream;
Net.rim.device.api.system import. *;
Net.rim.device.api.ui import. *;
Net.rim.device.api.ui.component import. *;
Net.rim.device.api.ui.container import. *;
Net.rim.device.api.ui.picker import. *;
SerializableAttribute public class SenderSmsBernard extends Application
{
private static final int MAX_PHONE_NUMBER_LENGTH = 32;
private String addr = "0033610101010";
private String msg = "this is a test message ';
private DatagramConnection _dc = null;
private static String _openString = "sms: / /";
public private static InputStream inputStream = null;
private static FileConnection fileConnection = null;
Public Shared Sub main (String [] args)
{
new SenderSmsBernard () .enterEventDispatcher ();
}
public SenderSmsBernard()
{
try {}
fileConnection = Connector.open ("file:///SDCard/testfile.txt");
If (fileConnection.exists ())
{inputStream = fileConnection.openInputStream () ;}
_DC = (DatagramConnection) Connector.open (_openString);
data Byte [] = msg.getBytes ();
Datagram d = _dc.newDatagram (_dc.getMaximumLength ());
d.setAddress ("/ /" + ADR + ' "'");
d.setData (data, 0, data.length);
_DC. Send (d);
} catch (IOException e) {}
System.Exit (0);
}
}
Thanks for your help!
Everything is good now
Bernard
Tags: BlackBerry Developers
Similar Questions
-
Select the simple option doesn't work and I can not understand why? (CS5)
I have a simple database with about a dozen articles in there. Everything worked fine until this morning when suddenly only the first element is displayed.
It is a simple piece of code, so I can't understand what is wrong. Can someone take a look and tell me what I'm doing so badly?
And, thank you.
Ross
=============================
"" "" < select name = "NHName" size = '1' id = ' NHName ' title = "< % = (NH." Fields.Item ("NHName"). (% De la valeur) > "onchange ="changeFunc (value)">
< %
While (NOT NH. EXPRESSIONS OF FOLKLORE)
% >
< option value = "< % = (NH." Fields.Item ("ID"). % Value) > "> < % = (NH.» Fields.Item ("NHName"). % Value) > < / option >
< %
NH. MoveNext()
Wend
If (NH. CursorType > 0) then
NH. MoveFirst
On the other
NH. Requery
End If
% >
< / select >
I feel really stupid. I used a set of records pointing to the thewrong database. Changed to RS and is Hey.
-
Black Ops No. servers and I do not understand why.
I would like to ask this on the Steam forum, but it's too slow. I had a problem.
I finally got my computer stable and I've been running my Board from msi with my 280 unique from the start. It is very good with windows. I played the games without a problem (other then overheating play 3 hours in a row). I played Black Ops for a long time and all of a sudden I had fewer available servers and now I have NONE. I did hack so I don't think it has anything to do with it. I can still play Starcraft 2 and the need for speed world online without a problem. My internet connection is fine. I have the same problem in Moder Warfare 2. I can load the game and do everything but find a server or check the status of the server. I think it's a steam thing or a thing to call. I will uninstall everything (steam) and try again later. I just want to know how it happened.
Last thing is I read that someone has changed the language and the servers are back, I wonder how can I change the language of my game and maybe he'll find servers. I will know or let me know you know something I don't know.
http://www.YouTube.com/jeahavee http://www.reverbnation.com/jeahavee Enjoy
I thought about it. This is McAfee. I ended up definition of stealth security levels or something up like that. I turn it on for full access and now everything is fine. Stupid firewall settings. It's strange how it blocks the steam but not a necessity for Speed World or Starcraft 2. http://www.YouTube.com/jeahavee http://www.reverbnation.com/jeahavee Enjoy
-
I get errors MxTray.exe and can not understand why. This error appears randomly.
Hello thunder1948m
Do a search on the internet suggest that the MxTray.exe could be a malicious virus that contains malicious programs.
If you are not running currently a virus scanner, you can download Microsoft Security Essentials for free. It offers protection in real time and protects against software viruses, spyware and other malicious software.
You can download here.I hope this helps.
-
Original title: help please if you can
Im getting this error code: 80080005 and dt000 but I do not understand why or how he got that way please help?
Hi LesaW,
· Exactly when you receive this error code?
Microsoft has released a new "Fix it" solution that should automatically solve your problems with Windows Update. Click on the link below and follow the instructions.
How to reset the Windows Update components?
http://support.Microsoft.com/kb/971058
I hope this helps.
-
Do not understand why "the node fpga Audio IN Terminal is 16-bit signed integer"?
Hello
I work with myRIO 1900 for my project of ANC.
Audio IN of the fpga node gives its type terminal data as integer signed 16-bit. So, finally the exit on the nodes of the fpga is fluctuating between two values - 1 and 1. But I want the actual values of the audio data, I did not understand how to address this problem.
Audio In on the side of RT gives type of terminal of data such as actual values, but I did not understand why the terminal of Audio In FPGAs is 16-bit integer. ??
Please help me solve this problem.
Thank you.
If your analog range of +/-2.5 V. 32768 then--would be the equivalent of-2.5 V. 32767 would be + 2, 5V.
If you get + /-1 V, then you should see somewhere between + / 13 107 on the analog input of the number I16.
Basically, take the n ° I16, divide by 32767, multiply by 2.5. You will have your analog input in volts.
I don't know why you thing it's just rounding up to the-1 to + 1. Something must be wrong with your code or configuration.
-
I do not understand why stop you scrolling effects?
I do not understand why you have disabled the effects of roll with new sensitive sites! Come on! It is therefore sensitive site or site of Parallax scrolling. LAME.
I waited long for the sensitive site option and now you paralyze it powerless to do scrolling parallax... I'm shaking his head in disbelief and frustration!
-
When I copy something from one page to another, it seems to change text color or background, that I do not understand why he never used to do.
Whether it's text or only a shape it changes its color to something else when I copy and paste on.
Do you mean 'page' or 'site '?
If you copy something from another site, the reason may be, to have different, but all also named colours on each site.
It would be normal and causes the noticed effect.
-
I printed just a pdf and he did not understand the polylines I had traced. Why?
Hi Gary,.
Please try this: -.
- Click the print or choose file > print to open the print dialog box.
-
In the attached VI I do not understand why given domestic business structures are not transferred in the table.
Thank you.
The VI has yet InfoCluster.ctl.
If you don't bring anything in the cluster, you should always pass the cluster via. You run the same question ' use default if Unwired "as before. The presence of these "case bundleless" begs the question why you have these States because they do nothing.
-
There is a Speedy PC Pro porgram on my computer keeps coming back as an error and I can not find the program or software
any where on my computer to uninstall or remove. I don't know where it comes from. Please notify.
If the "program not found" error message is associated with the Windows startup, another solution is to use the System Configuration tool and remove applications from the startup list.
Here are the steps on how to do this:
- Move the cursor to the Start menu and then click on "Run".
- In the Open box, type msconfig
- Heat the Enter key
- Click the Startup tab
- Remove/disable all uninstalled applications in the startup list
- Move the cursor to the Start menu and then click on 'stop'. After that click on 'restart'.
-
Hello, I bought a monthly license paid for indesign last night and I do not understand how to play with it? When I opened the window of creative cloud, they suggested me to buy indesign (but I bought it already...) Please, help me... This is our easy to understand for beginners like me at all
FAQ: What should I do if I have a subscription, but my application acts as if I had a trial?
https://forums.Adobe.com/thread/1962238
Download/install the desktop application, connect and install applications subscription.
https://helpx.Adobe.com/creative-cloud/help/download-install-app.html
Creative cloud to desktop
https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html
Sign out, sign in | Creative office cloud app
http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html
Install, update, or uninstall applications
http://helpx.Adobe.com/creative-cloud/help/install-apps.html
-
Hello, I have a problem with adobe photoshop. for some time cannot pay monthly software, although enough money in the account. I do not understand why not go to pay each month as we did before. Since June adobe never had money on the account, although enough money in the account.
Hi Tina,
Please contact support by calling/chat for the billing of related queries.
* Be sure to stay connected with your Adobe ID before accessing the link above *.
Kind regards
Sheena
-
How can I change the Home Page of Adobe to English? Happens to be french and I do not understand. I press the translator button but nothing changes!
-
I out of the CC to my previous laptop and I can not understand how to create the link connection in my new laptop
Hi Steven,
You have the CC of Adobe desktop application installed on your machine?
In the case is not, please see the help below document to download the same:
Kind regards
Sheena
Maybe you are looking for
-
Bootcamp partitions not bootable with iMac 2015
Hi guys,. I tried to install boot camp on my iMac (late 2015, Fusion drive) without success. Download a picture ISO of Windows 10. Point the wizard Boot camp on the image. Create a partition for Windows. Click install and wait until the end. Restarti
-
Question how to put in shape the Qosmio
Hi Toshiba, I have a Toshiba Qosmio and it is about 3 years old, when I bought it I do not have a windows cd as it was already installed. Its been running slowly lately and I want to reformat it, but how can I do it without the windows disc? and help
-
How to overcome the 'Error678 '?
I think it may be corrupt files, but am not sure and still don't know how to eradicate it. The ideas people?
-
When I connect my SanDisk Sansa Clip MP3 player Zip I get Code 10 device cannot start
Original title: Code 10 When I try to plug in my SanDisk Sansa Clip Zip MP3 player I get the device Code 10 cannot start. I have XP. The MP3 came with a 2.0 USB. I don't know what the USB on my computer.
-
How to restore missing "show the menu button" in Windows live mail?
I want to use the bar hidden in Windows live mail, but the "Show menu bar" button is missing. It should be between the stylus buttons and helps, but isn't. In fact the pen button is also absent, but the help button is there. Pressing alt quite appea