Beginner Assistance Sorely Needed

I'm attempting to teach myself J2ME; having successfuly (or so I thought) installed the JDK 1.3, CLDC, MIDP and changed the various PATH variable, I decided to try and run a program.
I managed to successfully compile the program and generate a class file, however when I try to preverify this I'm presented with the following error every single time.
Error preverifying class Welcome
Class loading error: Illegal constant pool index
Any assistance to get me up and started would be extremely appreciated...

Good point :)
Ok let me start from the beginning. I'm currently working through the 'Core J2ME Technology & MIDP' book from Sun Microsystems.
I have downloaded the JDK (1.3.1.08) and CLDC and MIDP, and hopefully have installed these to the correct directories. Following directly from the book, I've ammended the PATH environment variable, the CLASSPATH Environment Variable and created a MIDP_HOME Environment variable according to the book.
My primative program consists of the following code, which was succesfully compiled but run into the error at preverify stage.
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class Welcome extends MIDlet implements CommandListener
private Display display;
TextBox tbMain;
private Command cmExit;
public Welcome()
display = Display.getDisplay(this);
cmExit = new Command("Exit", Command.SCREEN, 1);
tbMain = new TextBox("Welcome", "Core J2ME", 50, 0);
tbMain.addCommand(cmExit);
tbMain.setCommandListener(this);
public void startApp()
display.setCurrent(tbMain);
public void pauseApp()
public void destroyApp(boolean unconditional)
public void commandAction(Command c, Displayable s)
if (c==cmExit)
destroyApp(false);
notifyDestroyed();
Compiling the code correctly generates the CLASS file - Welcome.class, however when I try to preverify this I find the following error -
Error preverifying class Welcome
Class loading error: Illegal constant pool index
I've spent all day trying to sort the problem out, any help would be extremely grateful...

Similar Messages

  • Sorely needed

    iCal sorely needs journaling capability. The iCalendar standard allows it (i.e., VJOURNAL), but iCal does not seem to support it. Or am I missing something? I'm not trying to keep a daily diary or blog, but how I long to record miscellaneous once-in-a-while events such as when I changed the pool filter or when I fertilized the yard, or painted the kitchen, etc. I could add these items as an appointment with a specific time, or call it an all-day event, but that is just a work-around for a limitation that really shouldn't exist.
    There are 3rd-party apps like MacJournal or viJournal, but that is like using a rifle to kill a fly. Besides, do these apps integrate with iCal so my journal events will sync with my iPhone's calendar? I could even live with the ability to drag Notes (from the Apple Mail app) onto an iCal date to accomplish the record-keeping I desire, but, alas, that doesn't work, either...
    I sure hope the next O/S upgrade will include journaling capabilities in iCal. Until then, any ideas on how I can do this aside from spending 40 bucks for non-Apple software??

    I have a new subtopic: what is very much needed in iCal is an easier way of entering the time of an appointment. Does Apple realize how long it takes to click with your mouse on the time dropdown box? This works much much better in google calendar, where you just can click, enter an appointment and anywhere in this line you mention a time (like 14.00), then the appointment immediately becomes an appointment from 14.00 - 15.00. I hope this very easy to make function will be integrated soon!! I hope somebody useful will read this! Thank you!
    Jazz

  • Not familiar with wiki etiquette, Beginner's Guide needs to be changed

    Hello everyone,
    I am an Arch newbie and did my first Arch installation successfully last night.
    During the installation, a problem occured in chapter Configure the network of the Beginner's Guide. When executing
    # systemctl start dhcpcd
    the system refuses to do it, it complains it is in a chrooted environment and ignores the command. Consequently, I didn't have an internet connection after the reboot, but executing this piece of code again in my "real" system quickly solved the problem.
    Since Arch is a community effort and I'd like to give back, even if it's just small things as a newbie, I'd like to help improve the Wiki, but I am not sure about its etiquette after going through the Help:Editing as it has a rather technical nature, but not the policies.
    Is it ok for me to make direct editions to the Beginner's Guide?
    If yes, should I just add a note along the lines "repeat this command in case you get the error..."? Or what do you suggest to have a streamlined style of writing?
    Thanks for any feedback.

    parcival wrote:
    Hello everyone,
    I am an Arch newbie and did my first Arch installation successfully last night.
    During the installation, a problem occured in chapter Configure the network of the Beginner's Guide. When executing
    # systemctl start dhcpcd
    the system refuses to do it, it complains it is in a chrooted environment and ignores the command. Consequently, I didn't have an internet connection after the reboot, but executing this piece of code again in my "real" system quickly solved the problem.
    Since Arch is a community effort and I'd like to give back, even if it's just small things as a newbie, I'd like to help improve the Wiki, but I am not sure about its etiquette after going through the Help:Editing as it has a rather technical nature, but not the policies.
    Is it ok for me to make direct editions to the Beginner's Guide?
    If yes, should I just add a note along the lines "repeat this command in case you get the error..."? Or what do you suggest to have a streamlined style of writing?
    Thanks for any feedback.
    I am no expert, but in order to install arch, u need an internet connection already before the install process. And after the chroot, that connection will not change; the "systemctl start dhcpcd command" therefore is in my opinion not necessary.
    It makes sense to run "systemctl enable dhcpcd" after the chroot to start the internet connection during the next reboot. (That's probably also what u want to do; else u need to run the start command everytime u reboot your system)
    PS: Welcome to the "Arch Family"
    Last edited by tumas (2013-02-28 10:22:08)

  • Beginner Question - Help Needed for EJB QL Sample Application

    I'm working with a group of student interns, like myself, and we've been given an assignment to work with Oracle. All of us have no training or experience with this, so we're just learning as we go.
    I've been trying to run the EJB QL Sample Application (http://www.oracle.com/technology/sample_code/tech/java/ejb_corba/ejbql/Install.html), but I keep running into problems at step 3.
    Now, we will deploy the sample application onto OC4J. Open another command prompt and go to the folder <OC4J_HOME>/j2ee/home and run the following commands one-by-one
    > java -jar admin.jar ormi://<machine_name>:<admin_port> admin <admin_pwd> -deploy -file <SAMPLE_HOME>/build/ejbql.ear -deploymentName Ejbql
    > java -jar admin.jar ormi://<machine_name>:<admin_port> admin <admin_pwd> -bindWebApp Ejbql ejbql-war http-web-site /ejbql
    where,
    <machine_name>      Name of the machine where OC4J Server is running
    <admin_port>      Admin Port on which the OC4J server listens. This value by default is 23791 unless explicitly changed by the user
    <admin_pwd>      Adminstrator password to access OC4J. The default value is welcome
    When I do this step I get this error:
    Error: Unable to find java:comp/ServerAdministrator: Lookup error: javax.naming.
    AuthenticationException: Invalid username/password for default (sds); nested exc
    eption is:
    javax.naming.AuthenticationException: Invalid username/password for defa
    ult (sds)
    com.evermind.client.orion.AdminCommandException: Unable to find java:comp/Server
    Administrator: Lookup error: javax.naming.AuthenticationException: Invalid usern
    ame/password for default (sds); nested exception is:
    javax.naming.AuthenticationException: Invalid username/password for defa
    ult (sds)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:105)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :27)
    javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException
    : Invalid username/password for default (sds); nested exception is:
    javax.naming.AuthenticationException: Invalid username/password for defa
    ult (sds) [Root exception is javax.naming.AuthenticationException: Invalid usern
    ame/password for default (sds)]
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:153)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:102)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :27)
    Caused by: javax.naming.AuthenticationException: Invalid username/password for d
    efault (sds)
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2410
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2226
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1692)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:727)
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:134)
    ... 2 more
    ---- Embedded exception
    javax.naming.AuthenticationException: Invalid username/password for default (sds
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2410
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2226
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1692)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:727)
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:134)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:102)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :27)
    Any suggestions to fix this error?
    Thanks in advance for any help.

    George,
    The Readme.html file is available with the ejbqlsample.jar downloadable (Extract and find the doc in Ejbql\docs\Readme.html) which is printable.
    Or,
    If you are trying to print the file directly from OTN site, you need to set the Page-Setup Orientation to 'Landscape'.
    Hope this helps.
    Regards
    Pushkala

  • New beginner with iTunes need help please!!

    When i am trying to open iTunes this is the message that has been brought up has anyone had the same problem and who knows how i could fix this problem??
    Error Signature
    AppName: itunes.exe AppVer:7.0.2.16 ModName: unknown
    Reporting Details
    This error report includes; information regarding the condition of iTunes when the problem occurred the operating system version and computer hardware in use; Digital Product ID, which could be used to identify your license and the Internet Protocol (IP) address of your computer
    We do not intentionally collect your files, name and address or any form of personally identifiable information. Etc etc
      Windows XP  

    Dougal95 wrote:
    The list doesn't say which one is in which format.
    IN the iTunes menu, click on View, then View Options, and check the "Kind" box. This will display the Kind for each track. if it says "MPEG Audio File," it's an MP3.
    Should all my MP3 files be converted to simplify things.
    No need to convert any music. iTunes can play MP3s.

  • Complete beginner, assistance required

    I am just starting out on the webcam thing & I have just aquired an external isight with fire wire connection: I have a number of questions:
    Have I aquired the correct webcam? I hope so as it was an ebay buy!
    What else do I require to be able to use it? I have Ichat
    Do I need to get 'Skype'
    What do my friends require so that we can video chat, bearing in mind that all of them are running a pc without Isight.
    Basic questions I know, but hope you experts can help.
    Thanks

    Hi
    To use iChat you will need a .mac or Aim name.
    Free 60day trial .mac(click on free trial on the top) here http://www.apple.com/dotmac/ keep your .mac name after the 60days.
    or free AIM name here https://reg.my.screenname.aol.com/_cqr/registration/initRegistration.psp
    If your videoing with a PC Skype might be easier, you will need a skype name.
    Mac version http://www.skype.com/download/skype/macosx/
    PC version http://www.skype.com/download/skype/windows/
    Tony

  • A beginner in desperate need of help :D!

    Hi all! First time posting on these forums, but I have been a lurker for a long time.
    I'm making a website for someone who specifically requested using Flash, and I know how to do everything...well almost everything.
    I've attached the entire site with codes and a working swf here: http://www.2shared.com/file/jfQHZpP8/Actual_Site.html
    I was following a tutorial, but changing a whole lot of things to be more appropriate for my needs. The only thing I can't seem to change on my own is adding several pictures to the "Full Project Panel". That is found when clicking any project in the Projects page. I have it so when you click on a project, you get more info about that project. What I want to add is a slideshow in the Full Project Panel.
    If you see the "Multi-purpose 1" project and click on it, you'll see I found a way to add two pictures below each other. What I want though is a way to navigate between 5-6 pictures in each Full Project Panel, accessing those images through the xml file.
    I'm open to any solution that can achieve this, and I really have been working on this issue alone for the past 3 days and I just can't seem to figure out a way...
    I'm actually quite new to flash, so sorry if there's some easy answer I'm missing.
    Thanks everyone!

    Just bumping this with an update.
    I managed to find a way to play with the alpha effect on pictures and having buttons to make a manual slideshow. With Tweening I can add nice transitioning effects, so hopefully that problem is solved, with one exception.
    I have the the project panels that open up the fullproject panels as a 'for loop', so I can't manipulate one without changing the other. The problem here is that I might have 5 pictures for the first project, hence needing 5 buttons, but I might have 4 pictures for the second project, only needing 4 buttons. Is there a way I can set the fifth button to hide if I add an array to the project panels?
    Something like "if fullProjectPanel.Array = 2, button5.visible = false"? (not perfect syntax, just would the concept itselft work?

  • Missing features - sorely needed

    Things I am finding painful with iWeb...
    1. Cannot modify the templates and save the changes. Sure you can change a font, fontsize on a page, but I want (a) to apply the change globally to ALL pages and (b) make the change stick in the template. The idea of having to go and apply these changes page by page manually is moronic.
    Likewise if I want to put a link (icon) to a home page on every other page I have to do this manually page by page, it would make far more sense to be able to put this on the template and have it applied to ALL pages of that type.
    2. Needs more/new templates and kept somewhere as files (/Library/... is the obvious place) we can manage them, like iWork does. The notion that they are embedded deep within iWeb itself is a really crappy idea.
    3. Put these together ad we need to the ability to create our own templates and save them in iWeb. Pretty obvious omission, really...
    4. Need to be able to save the site(s) as a file/folder somewhere where you can get at them as separate documents. Yes I know where iWeb keps things (having hunted around) but the way its done is clearly designed to defeat anyone wanting to transfer the entire site like a document to a CD-ROM
    5. It uploads, but it won't download. For example if you work on 2 macs you cannot transfer the iWeb data to the second mac and edit there.
    6. It uploads - and erases what was there before. For example - create a site on one mac with iWeb and upload. Now switch to another mac and create create another site (this mac knows nothing about the first site published already). When the second one is uploaded the first one is deleted. yeah... right... someone shoot the idiot that dreamed this up.

    It sounds like your needs really required a different kind of program. Luckily there are lots of them out there.
    4. Need to be able to save the site(s) as a
    file/folder somewhere where you can get at them as
    separate documents. Yes I know where iWeb keps things
    (having hunted around) but the way its done is
    clearly designed to defeat anyone wanting to transfer
    the entire site like a document to a CD-ROM
    I don't understand what you are saying here. iWeb can publish a site to a folder anywhere you want. You can view them fine, you just can't edit them (a separate issue).
    5. It uploads, but it won't download. For example if
    you work on 2 macs you cannot transfer the iWeb data
    to the second mac and edit there.
    In iWeb you can do this by transferring the Domain file. A useful trick for this can be found here:
    http://discussions.apple.com/thread.jspa?messageID=1525121#1525121
    6. It uploads - and erases what was there before. For
    example - create a site on one mac with iWeb and
    upload. Now switch to another mac and create create
    another site (this mac knows nothing about the first
    site published already). When the second one is
    uploaded the first one is deleted.
    Is that true even when you use the Inspector to give the second site a different name than the first one?

  • Beginner in desperate need of some expert advise

    In adobe premier elements 7 do i have to drag every transition separately to each clip on the timeline or can I select and drag bulk loads of transitions?  I am dealing with about 120 video clips of anything from 15 secs - 45 secs so there is a lot of transitions needed between clips. Would appreciate your help guys.

    (you might do better on the premiere forum.)

  • Unix command sorely needed

    Hi
    Our tmp file was rammed up to 98% early this morning and I was called to deal with it.
    I needed to see the largest files then decide if we could eliminate them.
    I really need a Unix command that will list the largest files first (or last) from a given directory.
    Does this command exist? I already tried googling to meagre avail.
    Thanks.
    AIX 5.2
    9.2.0.2
    DA

    Hi Dan,
    I really need a Unix command that will list the largest files first (or last) from a given directory.Here is how I do it, using the "find" command:
    http://www.dba-oracle.com/t_unix_script_find_files_older_date.htm
    Finding large files on Linux
    The following command is very useful in cases where a Linux file system has become full. As we may know, Oracle will hang whenever Oracle must expand a tablespace and Oracle cannot extend the UNIX filesystem.
    When a UNIX file become unexpectedly full, it may be because Oracle has written a huge core or trace file into the UNIX filesystem.
    The script below will display all files that are greaten then one megabyte in size. Note that the size parameter is specified in K-bytes.
    root> find . -size +1024 –print
    ./prodsid_ora_22951.trc
    Of course, you can easily append the xargs of –exec command to automatically remove the large file:
    root> find . -size +1024 –print|xargs –i rm \;
    This find command will do a "stats" on all files in a directory structure, showing the total size of all files in the directory. You can also incorporate the "df -k" command"
    find ${START_DIR} -mtime -${DAYS} |xargs stat -c "%s"|awk '{sum += $1}END{print sum}'
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm

  • Beginner!  I need help on figuring out how to make a form display subforms/fields based on a drop do

    I am trying to create a from that will allow the user to select a 1st, 2nd, or 3rd request. All of the request will need to be a little different so I would like to make the subform or feild that are relavant to the request type appear and the other be hidden. Should I use subforms to accomplish this or ????? I have looked all over for a answer but I can't find anything that seems to work for my needs. Can someone please help?
    Thank You

    Thank You for the response! I was able to get that far but I am still having trouble. First, I was able to get the form to work even though I used postioned content. I used 3 radio buttons and JS to get the subforms to appear and disappear. (Request1.presence ="visible"; Request2.presence ="hidden"; Request3 ="hidden" each button has a similar script on the Click event) The problem occurs when you go from the 3rd button to the 1st button. Both subforms show up but if you go in any other order the subforms hide and appear properly. ??????? Maybe I am going about this completely the wrong way.

  • Beginner to iDVD, needs basic help to get started

    I am in need of help. I want to make DVDs of my old 8mm tapes. I have a Sony 8mm video camera. What do I need , like adapters, cables or cards to make this happen. I have iDVD on my system, but have never attempted anything like this before. I just recently purchased this computer. Can ya'll help me get started?
    Thanks

    Charley,
    Read this:
    http://www.macworld.com/2004/05/features/fromvhstodvd/index.php
    You'll just use your Sony8mm like the VHS deck.......
    John B.

  • Beginner's advice needed on extending iProcurement page

    hi, I'm new to using OA Framework so would appreciate any help to get me started about how to approach the following...
    I need to add a new item to the iProcurement page oracle/apps/icx/por/req/webui/CheckoutDistsPG to show the account segment descriptions underneath the code combination.
    My plan is:
    1 - Create new OA project
    2 - Create new OA Packages for my project gg/oracle/apps/icx/por/req/webui and gg/oracle/apps/icx/por/req/server
    3 - Create new VO with expert-mode query which returns the descriptions for the segments of a code_combination_id as one string.
    4 - Create new page gg/oracle/apps/icx/por/req/webui/CheckoutDistsPG which extends oracle/apps/icx/por/req/webui/CheckoutDistsPG
    5 - Create a new AM which extends RequisitionAM which sets my new VO
    But this is incomplete and probably incorrect!
    Can anyone help me by suggesting in more detail how to do this please?
    Thanks
    Graham

    The new field which you have to add, is it a single instance field on the page or a field on a table being shown for each row? If you can get this value as a new column on the seeded VO, then the extension of seeded vo will be a better idea.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Complete Beginner-Simple Advice Needed

    SO.....I have very simple questions...I have an iBook G4 and I want to record some music on it.
    First off, Garageband or Logic? I've heard G-band is much simpler..
    Also, I will be wanting to route a sampler, drum machine, bass, etc into the computer. Do I just need a midi interface to relay the instrument into the software?
    Sorry for the ignorance...I've always been intimidated and I'm basically just looking to get set up here...
    Any input would be appreciated...thanks!

    tunnelman wrote:
    SO.....I have very simple questions...I have an iBook G4 and I want to record some music on it.
    First off, Garageband or Logic? I've heard G-band is much simpler..
    GB = simple and fun, but limited. Still, you can do serious work with it.
    Logic = powerful but complex. Still, you can have fun with it.
    Also, I will be wanting to route a sampler, drum machine, bass, etc into the computer. Do I just need a midi interface to relay the instrument into the software?
    No, you will also need an audio interface (which may include a MIDI interface).
    Sorry for the ignorance...I've always been intimidated and I'm basically just looking to get set up here...
    Any input would be appreciated...thanks!
    A G4 is an aging computer which some of the current versions of audio software will stress. Just something to consider.

  • Beginner CSS help needed - White space.

    So, I'm creating this website...yes im a beginner, and I just dont know how to add white space onto each side of the site as to center it in the browser.
    here's what I have...but, when I try and use "float:left;" the div sits outside the container, even though it is definitely inside it? Any recs? Thanks x
    body  {
        font: 100% Verdana, Arial, Helvetica, sans-serif;
        background: #ffffff;
        margin: 0;
        padding: 0;
        text-align: center;
        color: #000000;
        height: auto;
    #container {
        width: 750px;
        margin: 0 auto;
        border: 1px solid #000000;
        text-align: left;
        background-color: #FFCCE6;
        height: auto;

    Code fragments, screenshots, etc.. don't show us the problem.  For best results here, you should upload your test page to your web server and post the URL here.
    Using our browser and web developer toolbars, we can see your page, underlying code and trouble shoot what might be going wrong.
    As a rule of thumb, build your HTML content logically from top to bottom of page.  Then go back in and add division tags for your CSS to grab onto.  My guess is that you have positioned the left column outside your main wrapper division.  But without seeing your HTML and CSS code, the best we can do is make guesses.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

Maybe you are looking for

  • Conditions in Purchase Order - No scroll bar/Sales Tax value not in mmr

    Hello, I am stuck in a weird problem where I have created a Condition Calculation Schema, assigned it to Schema group and assigned that schema to vendor, but when i open my condition in the PO, it does not give me scroll bar i.e. I have calculation S

  • Executing same VI multiple times, sending/retrieving data

    I know how to execute a single vi multiple times using the invoke node/reentrant method.  But I am not sure how to send/get data the running vi's. A little background on my project.  I have to test up to 64 units for a long period of time.  When one

  • Runnning repair disc

    when i bought this emac, it ran 10.2.1. more recently, i upgraded it to 10.4.6, then did a software update to wake it to 10.4.9. my disc drive has been acting up (spitting discs out sometimes) and not playing DVDs. i ran the java scripts dr. smoke re

  • Oracle BI EE "complex" model problem

    Problem - we have 3 tables (star schema) - Sales_fact, Customer and Product - Sales_fact are divided by organizations and contains sales to organization external customers and sales between organisations. In Customer (divided by organization code) ta

  • Pubcenter shows 0 request for ads

    I have an older app that was originally done in the WP 7.5 era, now Pubcenter shows 0 request even though I've seen ads on the app? is this a typical issue?