FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How do I use the emulator?

 
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users
View previous topic :: View next topic  
Author Message
Tuneman



Joined: 13 Aug 2009
Posts: 1
Location: Halmstad, Sweden

PostPosted: Thu Aug 13, 2009 3:56 pm    Post subject: How do I use the emulator? Reply with quote

When running my programs in the IDE, I get a nice notice in the output window that says "Starting emulator in execution mode", which stays for a while. Is this the way it's supposed to be? 'Cause after some more waiting, I get a new notice saying "BUILD SUCCESSFULL", but this doesn't help me much at all, as I never got to see any real output, such as my app running in the emulator.

My questions are: why won't the emulator pop up and show me the program running? How can I make it do that? Have I just misunderstood the NetBeans IDE?

Thanks in advance! Smile
Back to top
View user's profile Send private message MSN Messenger
peter_budo



Joined: 03 Oct 2008
Posts: 27

PostPosted: Sat Aug 15, 2009 1:32 pm    Post subject: Reply with quote

Not normal behaviour. Either emulator is blocked by anti-virus/firewall (my F-Secure does give me po-ups on new application first run) or something went wrong with installation. In that case you should reinstall NetBeans

PS: Which WTK you using? New WTK 3.0 takes considerably longer to start then previous (plus check for icon in right corner next to time in Windows)
Back to top
View user's profile Send private message
ET3D



Joined: 08 Oct 2009
Posts: 4

PostPosted: Thu Oct 08, 2009 9:13 pm    Post subject: Reply with quote

I'm facing the same problem. I'm running Vista x64. I downloaded and installed JDK 6 Update 16 and NetBeans 6.7.1 "All" bundle. For NetBeans I installed everything except the servers. When Windows Firewall popped up messages I gave the app access.
Back to top
View user's profile Send private message
rugae



Joined: 08 Oct 2009
Posts: 3

PostPosted: Fri Oct 09, 2009 3:49 am    Post subject: Reply with quote

Try just running the jad/jar with the [emulator.exe] in [NetBeans 6.7.1\mobility8\Java_ME_platform_SDK_3.0\bin] and just go:

emulator.exe -Xdescriptor:Program.jad

If jar can't be found check the jad reference [MIDlet-Jar-URL: Program.jar].
Back to top
View user's profile Send private message
ET3D



Joined: 08 Oct 2009
Posts: 4

PostPosted: Sat Oct 10, 2009 11:40 am    Post subject: Reply with quote

If I try to run the emulator (regardless of parameters) I get "Create process failed".
Back to top
View user's profile Send private message
roeezab



Joined: 22 Oct 2009
Posts: 1

PostPosted: Thu Oct 22, 2009 2:10 pm    Post subject: Reply with quote

I had the same problem and I found something that worked for me on another forum.
I guess you're all using the 64-bit jdk. The solution is to install the 32-bit jdk also (without installing the 64-bit one). After that, the emulator worked, no other configuration needed.
It seems that the WTK has problems with the 64-bit jdk, therefore installing the 32-bit jdk will solve this.

If you're already using the 32-bit jdk then sorry, I don't know what the problem is...

EDIT:
Forgot to mention - during the search for solution, I also downloaded and installed WTK 3.0. I know it's already installed with NetBeans, so I think you should first install the 32-bit jdk as I wrote above, and if the problem persists, install WTK 3.0.
Back to top
View user's profile Send private message
ET3D



Joined: 08 Oct 2009
Posts: 4

PostPosted: Mon Oct 26, 2009 8:59 pm    Post subject: Reply with quote

Thanks you! That was indeed the problem.
Back to top
View user's profile Send private message
manabab2002@yahoo.com



Joined: 04 Sep 2009
Posts: 8

PostPosted: Sun Nov 01, 2009 4:46 am    Post subject: Emulator not functioning correctly in Netbeans Java ME Reply with quote

l'm also having a problem with the emulator not working and l read through the posting and the replies. First l dont think the replies are correct, 1. because the download does not offer whether to select a 32-bit download or a 64-bit download, 2. because this bit stuf only deals with whether a particular Operating system supports a 32-bit or 64-bit, so those of you posting this bit story must be very careful and think again. If you don't know the solution don't post wrong answers. l have submitted a feedback form to netbeans to try and resolve this problem. l think this problem is the netbeans ide itself.
[/b]
Back to top
View user's profile Send private message
ET3D



Joined: 08 Oct 2009
Posts: 4

PostPosted: Sun Nov 01, 2009 5:54 am    Post subject: Reply with quote

Since the solution worked for me, I'll try to explain it more clearly, so perhaps it'd be easier to understand.

Netbeans is 32 bit only. The Java SDK has two versions: 32 bit and 64 bit. Netbeans won't work with the 64 bit version of the SDK. So for a 64 bit OS, it's important to install the 32 bit version of the SDK if you want to use Netbeans, even if installing the 64 bit version seems like the natural thing to do.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB