This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes unable to create form. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "unable to create form." Watch "unable to create form." New topic

unable to create form.

Sebastian Green
Ranch Hand

Joined: Jan 30, 2004
Posts: 136
Here is what I want to do. Create a textfield, therefor I need a form. But I cant create a new form. I looked att the api doc and it says "Form(String title)" But Im getting this error message when I compile
"C:\WTK104\apps\2-MIDP1\src\ cannot resolve symbol
symbol : constructor Form (java.lang.String)
location: class Form myForm = new Form("InputForm");" And a ^ that points out the ";" Here is my code:

/ Sebastian<br />No blog, No homepage, No life?
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
I tried your code with WTK 1.04 and WTK 2.0 and was able to compile with both. The error seems to indicate a classpath issue. Check the WTK104/lib directory and make sure that the midpapi.jar hasn't been deleted.

Matthew Phillips
I agree. Here's the link:
subject: unable to create form.
It's not a secret anymore!