Where to start changeing emulator preferences in Java ME SDK 3.0

in the Java ME SDK 3.0 help (UserGuide.pdf) i found
"The Java ME Platform SDK enables you to configure the Bluetooth and OBEX
simulation environment. Choose Edit > Preferences and select Bluetooth/OBEX to
display the following window."
but there is no menu/button or any other element labeled "edit" from where i can start
Edited by: peter-simon on Aug 8, 2010 5:34 AM

Hello Erik,
thank you for your comment.
The UI which comes with Jame ME SDK 3.0 is supposed to be a small IDE for Java ME SDK 3.0. It means it does not support emulators which are not Java ME SDK 3.0 compliant. That's probably your case.
Detecting not Java ME SDK 3.0 compliant 3rd party emulators and "Run With" command was a side effect of EA release which was removed for final version. In final release it is not possible to detect not 3.0 compliant toolkits anymore, e.g. Sun Java Wireless Toolkit 2.5.2 for CLDC or Sun Java Toolkit 1.0 for CDC.
If you want to use 3rd party emulators use NetBeans Mobility. It is supposed to support all emulators which can be detected by UEI.
Best regards,
Radko

Similar Messages

  • Where do I change file preferences to allow opening of files in time Machine? Or can it only be restored?

    TRying to see if photos backed up with time machine are actually on the backup drive. It will not allow to open?

    Go to your photos in Finder, then enter TM interface. When you see that they are there you can cancel.
    See...
    http://pondini.org/TM/FAQ.html

  • When I use page setup, it shows metric dimensions (centimeters), I would prefer imperials (inches). Where do I change this in preferences?

    When I use page setup, it shows metric dimensions, i would prefer imperial. Where do I change that preference?

    I went to preferences/language & text/formats and changed it from US to metric. Then went back and changed it again to US. It seems to be correct now with US settings ( inches).

  • Where should I change the adapter? It doesn't work from the start.

    where should I change the adapter? It doesn't work from the start. But there is no apple store in our city.

    The phone does not charge when linking with adaptor. But it is OK when linking PC using USB instead. I do not know why, but I am just sure there is something wrong with the adaptor.

  • Can we change the title of "Java Web Start" window?

    Hi while running our application into "Java Web Start" using jnlp configuration file, may I know how to change the title of Java Web Start Window.
    At present it show the title like "Java Web Start" I want to customize, is it possible? , How?

    As far as I know this is not possible. You can customize the splash window displayed with the jnlp how your told, but the title of the window cannot be changed.
    Edited by: Phlipp_Meier on Oct 5, 2007 6:14 AM

  • Can we change the label of Java Web start at the time of downloading applic

    can we change the label of Java Web start at the time of downloading application?
    At the time of downloading application(jar files) java web start shows "Downloading Application" lable on it window , so can we change it so some other..

    The 'splash' screen might be of interest to you.
    Here is the quick description from the FAQ.
    <http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#206>
    Section 3.5 of the JNLP Spec. has more details on using a splash screen for an application.
    (But if you mean changing the very first screen seen when downloading an application the first time, the answer is 'no'.)
    Late addendum..
    By the way - now I review your question, I note you stress 'while jars are downloading'.
    There is another strategy you might take. Mark most of the application jar's as 'lazy' download, get the main GUI on-screen quickly, then use the JNLP API's DownloadService to fetch the rest of the jars, after the application is running.
    This has the advantage that, then we can have complete control of whatever is shown on the screen during the bulk of the downloads. We might show ..a 'splash screen', or a dialog with the application name on it, or a progress dialog, ..or any combination of the three.
    Edited by: AndrewThompson64 on Oct 22, 2007 3:01 PM

  • Hi, My computer has started to talk to me. Every key I touch it tells me what it is, any activity t all it repeats it, for example "HTML Contact" when i go online. I can't find where to switch off this preference?  It's an iMac G5.

    hi, My computer has started to talk to me.  It's an iMac G5. Every key I touch it tells me what it is, any activity t all it repeats it, for example "HTML Contact" when i go online. I can't find where to switch off this preference? Any ideas?

    Turn off VoiceOver in the Universal Access pane of System Preferences.
    (60017)

  • Java?!?!  Where to start, where to go!

    I'm just starting to look into Java and to be honest, there's so much information that it's confusing! I've no idea where to even begin to get a foothold so I thought I would post, tell you a little about me, and maybe you can help point me in the right direction. Knowing nothing about Java I'm simply overwhelmed looking at a website and seeing Java, Jdk, JE, EE, ME, JDK, Netbeans, Eclipse, FX, Wombats, BlueJ, Applet Ajax, IDE, ... ARGH!!
    So.... here's who I am and what I'm after....
    I've done development work in the past using whatever languages were needed at the time. Perl, PhP, Visual Basic, Visual Studio, etc. etc. I was out of it for quite a while and now, at 39, am looking at getting back into development work fulltime. After doing a lot of research, I understand that Java is one of the best languages to have under your belt nowadays. Java is one of the languages I know nothing about or where to even begin. I've got some people telling me to download different IDE's and do tutorials through interfaces, and other people telling me to just download the JDK and use notepad while learning. I opted for the 'notepad' method for now and have constructed the gratuitous helloworld programs and all that with no problems... My normal development jobs, including my current one, are just developing simple applications for end users. Issue tracking programs, records management programs, inventory programs, simple database interfaces for data mining... nothing special.
    What I'm trying to work out is this. What exactly do I need to learn to become a standard Java developer, where should I start? I do have a lot of catching up to do with technology but I am familiar with development, I just need a lot of study time. Seeing all the different options and software and packages, I'm at a loss. If I'm right, from what I've been able to work out so far, is that I want to shoot for the Entry Level SCJA cert and work all the way up to the SCJD cert and then figure out where to go after that.
    What are the best things, or most common things, to learn right off the bat to get out in the java workforce as quickly as possible. There must be some common place to start and there are just so many acronyms and packages and things for java that it seems a bit impossible to know where to start! I don't want to, for instance, learn java using nothing more than notepad and the JDK only to get a job and find out they use some sort of Java IDE or something like that.
    I appreciate any help and websites you guys can give me. Thanks!

    No better place to start than here: [New to Java Center|http://java.sun.com/learning/new2java/index.html]
    ~

  • Where do I change my facetime preferences on my macbook?

    where do I change my facetime preferences on my macbook?

    When I click on Facetime on the menu bar, nothing happens. And I've tried the command + and also nothing happens. Could you let me know how to access the preferences, or anything about my Facetime account? All that comes us is the address book on the right and the camera picture on the left. Thanks for your help.

  • Emulating consoles using Java, is it possible?

    i know that there are already programs such as NESticle and ZSNES emulate the nes and snes, and other consoles, but these prgrams are DOS based, and wirtten in a combination of assembly and c++ which makes them horrible. i want to create a multi-emulator, that emulates both the nes and snes using a Java program, but i'm not sure if it is possible or where to start. i realize that i should start w/reading the rom image files but don't know how to recreate the console driver systems, any thoughts or should i have given up before i thought of it.

    The only reason the ROM-reading console emulators were written in assmebly language and C++ was preference. Assembly language allows a program to perform very fast calculations, thus decreasing the system requirements of the emulator. An emulator written in Java will require more memory and processor power than an emulator written in C++/assembly; the concept is, however, quite possible. I don't think Java currently provides direct access to CD drives (though I could be wrong), so I don't think emulating a CD-based system would be easy (you'd have to make an ISO from the CD and read it). Overall, creating a Java-based emulator instead of a C++-based emulator would be the same trade as usual: the Java emulator would be a bit more demanding but would be faster to write and run on any machine using a JRE.
    Hope that helps. :)
    Zachary Palmer
    [email protected]

  • Hi,I am unsure if I have a safari or modem problem. It only happens when I use my macbook pro, my HP windows is fine. Internet crashes on modem and then a message that safari is not connected. I don't know where to start sorry I am not technical at all.

    Hi there, my internet is crashing everytime I use my macbook pro/safari it happens roughly every 2 mins, it can happen on any website.
    I am not technical at all and I am at a total loss of where to start with this. I did a bit of research on the internet but no luck in finding any
    help.
    Basically I am not sure if it is a modem of safari problem. I have no problems when using my HP on without windows explorer on the internet.
    I am working wireless ADSL 2 - Bigpond - 2 Wire 2701 HGV-W and a macbook pro purchased around 5 months ago. Since the purchase date
    I have had problems with internet.
    Safari brings up a page you are not connected to the internet. I then look at the modem and DSL and internet lights are both flickering and or/off.
    They then re-set themselves. I then have to re-set preferences on safari and quit and restart.
    I have also tried using with cable into mac and modem and no difference.
    I can only figure that maybe Safari is not compatible with the modem? could this be the case?
    Thanks for reading and any assistance would be appreciated.
    Fi

    There's an Apple help page on the DNS problem - at http://support.apple.com/kb/TS3408
    The first thing to try is changing your DNS settings - and for that you need to open System Preferences, then the
    Network section.
    In Network - click  on Advanced - then the DNS tab
    under DNS servers - use the + button to enter two extra lines
    either these, from google dns
    8.8.8.8
    8.8.4.4
    or from OpenDNS
    208.67.222.222
    208.67.220.220
    then click OK & then 'Apply'
    You would need to do that seperately for the Cable (Ethernet) settings and Wireless (Airport)

  • I have no idea where to start

    okay, hi! i'm trying to write a vending machine program for a class i'm taking. i have a text file with names, image URLs, and prices. I have a product class which is supposed to use filereader to read the fields in the text file. The product class is going to be loaded by the main VendMach class file, where i will have all of the main ui stuff written. The last file is the MoneyInOut class, which handles all of the money methods. i've got the majority of the UI file done, the text file is ready, and the money file is almost done...everything is hanging on whether or not i can write the product file. i have no idea where to start. any help would be greatly appreciated. i'm not looking for somebody else to write my code, but a point in the right direction would be great! here are the UI and text files:
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.text.NumberFormat;
    import java.util.StringTokenizer;
    // Still to be fixed:
    // 1. Purchase & Maintenance buttons.
    // 2. fix repaint of pictures, they don't display until a repaint is hit.
    // 3. fix the Quit from program, it doesn't work right.
    // 4. Put in the code for doing Maintenance.
    // 5. Button super.setSize
    // 6. Animate picture on selection.
    public class VendMach extends Applet implements ActionListener
    // Fonts for text and buttons.
    private Font boldSerif16 = new Font("Serif",Font.BOLD,16);
    private Font boldSerif24 = new Font("Serif",Font.BOLD,24);
    private Font boldItalicSerif24 = new Font("Serif",Font.BOLD+Font.ITALIC,24);
    private Font boldItalicSerif13 = new Font("Serif",Font.BOLD+Font.ITALIC,13);
    private Font boldItalicSerif40 = new Font("Serif",Font.BOLD+Font.ITALIC,40);
    //%% private Font boldItalicDialog16 = new Font("Dialog",Font.BOLD+Font.ITALIC,16);
    // Mode flag.
    private int mode = 0;
    // Panels for the buttons
    private Panel mainPanel = new Panel();
    private Panel cashPanel = new Panel();
    private Panel selPanel = new Panel();
    private Panel maintPanel = new Panel();
    // Product selection panel buttons
    private Button selBtn[] = new Button[6];
    // Cash customer puts in machine panel buttons
    private Button viewC = new Button("View The Products");
    private Button quit = new Button("Quit");
    private Button bNickle = new Button("Nickel");
    private Button bDime = new Button("Dime");
    private Button bQuarter = new Button("Quarter");
    private Button b$Paper = new Button("$1 Paper");
    private Button b$Coin = new Button("$1 Coin");
    private Label lCredit = new Label(" Credit:");
    private Label lMsg = new Label("");
    private Button bChange = new Button("Change Return");
    private Button purchase = new Button("Purchase");
    private Button maintenance = new Button("Maintenance");
    private Product productForSale [];
    private CashIn changeOH;
    private int $collected = 0;
    private double total$In = 0.00;
    private NumberFormat nf;
    private Image pic;
    private Image picAnim;
    private int prodSel = 999;
    private String line;
    private String f[] = new String[8];
    private int tokenCount;
    private int int3, int4, int5, int6, int7;
    private double dbl4;
    private StringTokenizer strings;
    private int dispense = 99;
    public void init()
    {  setLayout(new BorderLayout());
    productForSale = new Product[6];
    try
    {  BufferedReader inPut = new BufferedReader(new FileReader("Vend_Machine.txt"));
    while ((line=inPut.readLine()) != null)
    {  strings = new StringTokenizer(line,",");
    tokenCount = strings.countTokens();
    // Loop thru and retrieve each data element.
    for (int i=0; i<tokenCount; i++)
    f[i] = strings.nextToken();
    // Load the money.
    if (f[0].compareTo("M") == 0)
    {  int3 = Integer.parseInt(f[3]);
    int4 = Integer.parseInt(f[4]);
    int5 = Integer.parseInt(f[5]);
    int6 = Integer.parseInt(f[6]);
    int7 = Integer.parseInt(f[7]);
    changeOH = new CashIn(f[1],f[2],int3,int4,int5,int6,int7);
    // Load the products.
    if (f[0].compareTo("P") == 0)
    {  int3 = Integer.parseInt(f[3]);
    dbl4 = (new Double(f[4])).doubleValue();
    int5 = Integer.parseInt(f[5]);
    int6 = Integer.parseInt(f[6]);
    int7 = Integer.parseInt(f[7]);
    productForSale[int3] = new Product(f[1],f[2],dbl4,int5,int6,int7);
    inPut.close();
    catch(IOException e)
    {  e.printStackTrace();
    setBackground(Color.pink);
    setForeground(new Color(120,0,120));
    setFont(boldSerif16);
    cashPanel.setLayout(new GridLayout(10,1));
    cashPanel.add(viewC);
    cashPanel.add(quit);
    cashPanel.add(bNickle);
    cashPanel.add(bDime);
    cashPanel.add(bQuarter);
    cashPanel.add(b$Paper);
    cashPanel.add(b$Coin);
    cashPanel.add(lCredit);
    cashPanel.add(lMsg);
    cashPanel.add(bChange);
    add(cashPanel,"East");
    selPanel.setLayout(new GridLayout(1,6));
    for (int i=0; i<6; i++)
    {  selBtn[i] = new Button(productForSale.getName());
    selPanel.add(selBtn[i]);
    add(selPanel,"South");
    setBackground(Color.black);
    viewC.addActionListener(this);
    quit.addActionListener(this);
    bNickle.addActionListener(this);
    bDime.addActionListener(this);
    bQuarter.addActionListener(this);
    b$Paper.addActionListener(this);
    b$Coin.addActionListener(this);
    bChange.addActionListener(this);
    nf = NumberFormat.getCurrencyInstance();
    for (int i=0; i<6; i++)
    selBtn[i].addActionListener(this);
    } // =======>> END OF INIT METHOD
    // ** PAINT METHOD **
    public void paint(Graphics g)
    {  int xVal = 35;
    int yVal = 85;
    int xValAnim = 0;
    int yValAnim = 0;
    int c = 0;
    // Paint the product pictures on the vending machine.
    g.setColor(Color.cyan);
    g.setFont(boldItalicSerif24);
    g.drawString(changeOH.getLogo1(),115,40);
    g.setFont(boldItalicSerif13);
    g.drawString(changeOH.getLogo2(),200,60);
    for (int z=0; z<2; z++)
    {  xVal = 35;
    yVal = 85;
    c = 0;
    g.setColor(Color.black);
    g.fillRect(xVal,yVal,500,350);
    g.setColor(Color.yellow);
    for (int i=0; i<2; i++)
    {  for (int j=0; j<3; j++)
    {  g.setFont(boldSerif16);
    g.drawString(nf.format(productForSale[c].getPrice()),xVal+45,yVal-5);
    pic = getImage(getCodeBase(),productForSale[c].getPic());
    g.drawImage(pic,xVal,yVal,null);
    // If product is dispensed get ready to animate.
    if (c == dispense)
    {  xValAnim = xVal;
    yValAnim = yVal;
    picAnim = pic;
    xVal = xVal + 170;
    c++;
    yVal = yVal + 160;
    xVal = 35;
    // If product is dispensed, animate it.
    if (dispense < 99)
    {  for (int y=0; y<40; y++)
    {  g.setColor(Color.black);
    g.fillRect(xValAnim,yValAnim-9,125,125);
    g.setColor(Color.yellow);
    g.drawImage(picAnim,xValAnim,yValAnim,null);
    yValAnim = yValAnim + 10;
    pause(3);
    dispense = 99;
    if (mode == 0)
    {  pic = getImage(getCodeBase(),"OutStock.gif");
    g.drawImage(pic,300,300,null);
    g.setColor(Color.black);
    g.fillRect(1,1,500,300);
    g.setColor(Color.pink);
    g.setFont(boldItalicSerif40);
    g.drawString(changeOH.getLogo1(),10,150);
    g.setFont(boldItalicSerif24);
    g.drawString(changeOH.getLogo2(),160,250);
    mode++;
    } // =======>> END OF PAINT METHOD
    // ** ACTIONPERFORMED METHOD **
    public void actionPerformed(ActionEvent event)
    {  Object source = event.getSource();
    lMsg.setText(" Enter up to $1.00");
    // Customer puts money in the vending machine.
    // Customer paid a nickle
    if (source == bNickle && $collected < 96)
    {  changeOH.nickleIn();
    $collected = $collected + 5;
    // Customer paid a dime
    if (source == bDime && $collected < 91)
    {  changeOH.dimeIn();
    $collected = $collected + 10;
    // Customer paid a quarter
    if (source == bQuarter && $collected < 76)
    {  changeOH.quarterIn();
    $collected = $collected + 25;
    // Customer paid a paper dollar
    if (source == b$Paper && $collected == 0)
    {  changeOH.dollarPaperIn();
    $collected = $collected + 100;
    // Customer paid a coin dollar
    if (source == b$Coin && $collected == 0)
    {  changeOH.dollarCoinIn();
    $collected = $collected + 100;
    // Customer makes their product selection.
    for (int i=0; i<6; i++)
    {  if (source == selBtn[i])
    // Do nothing if customer selects item that isn't on-hand.
    if (productForSale[i].getOnHand() == 0)
    repaint();
    // We have product on-hand.
    else
    {  prodSel = i;
    // Tell customer to add more money if they don't have
    // enough in the machine to handle the purchase.
    if ($collected < (int) (productForSale[i].getPrice() * 100))
    { lMsg.setText("    Insert Money");
    // Customer has enough money in machine to cover purchase.
    else
    {  // Take cost of item from customer's money
    dbl4 = productForSale[i].getPrice() * 100;
    int4 = changeOH.giveChange($collected - (int)dbl4,0);
    // Tell customer to put exact amount in the machine
    // because there isn't enough change to handle purchase.
    if (int4 == 9)
    {  lMsg.setText("Exact Amount Only!");
    // **** Here the purchase was made and committed. ****
    else
    {  total$In = productForSale[i].getPrice() * 100;
    $collected = $collected - (int) total$In;
    productForSale[i].sellProduct();
    dispense = i;
    repaint();
    // If the last product item was sold, set picture to OutStock.gif.
    if (productForSale[i].getOnHand() <= 0)
    productForSale[i].setOutOfStock();
    if ((source == bChange || source == quit) && $collected > 0)
    {  $collected = changeOH.giveChange($collected,1);
    // Here we save the machine info file when customer asks
    // for their change back or quits the machine.
    // Customer has selected to Quit the vending machine program.
    // Quit the program.
    if (source == quit)
    System.exit(0);
    // These commands set up variables to show how much money
    // the customer has in the machine.
    total$In = $collected;
    total$In = total$In / 100;
    lCredit.setText(" Credit: " + nf.format(total$In));
    repaint();
    } // =======>> END OF ACTIONPERFORMED METHOD
    // ** PAUSE METHOD **
    public void pause(int i)
    {  for(long l = System.currentTimeMillis() + (long) i; System.currentTimeMillis() < l;);
    // =======>> END OF VENDMACH CLASS APPLET
    // ** CASHIN CLASS **
    class CashIn
    {  private String logo1;
    private String logo2;
    private int numProd;
    private int nickles;
    private int dimes;
    private int quarters;
    private int dollarsP;
    private int dollarsC;
    private int money;
    private double moneyVal;
    private int amtToChange = 0;
    private int hNickle;
    private int hDime;
    private int hQuarter;
    private int hpDollar;
    private int hcDollar;
    public CashIn(String l1, String l2, int p, int q, int d, int n, int dP)
    {  logo1    = l1;
    logo2 = l2;
    numProd = p;
    quarters = q;
    dimes = d;
    nickles = n;
    dollarsP = dP;
    dollarsC = 0;
    money = (n * 5) + (d * 10) + (q * 25) + (dP * 100);
    // Get total of money in machine.
    public double getCashIn()
    {  moneyVal = money;
    moneyVal = moneyVal / 100;
    return moneyVal;
    // Get machine record information.
    public String getLogo1()
    {  return logo1;
    public String getLogo2()
    {  return logo2;
    public int getNumProd()
    {  return numProd;
    public int getNickles()
    {  return nickles;
    public int getDimes()
    {  return dimes;
    public int getQuarters()
    {  return quarters;
    public int getDollarPaper()
    {  return dollarsP;
    public int getDollarCoins()
    {  return dollarsC;
    // Money comes into the machine
    public void nickleIn()
    {  nickles++;
    money = money + 05;
    public void dimeIn()
    {  dimes++;
    money = money + 10;
    public void quarterIn()
    {  quarters++;
    money = money + 25;
    public void dollarPaperIn()
    {  dollarsP++;
    money = money + 100;
    public void dollarCoinIn()
    {  dollarsC++;
    money = money + 100;
    // Give the customer their change.
    public int giveChange(int custMoney, int mode)
    {  hNickle   = nickles;
    hDime = dimes;
    hQuarter = quarters;
    hpDollar = dollarsP;
    hcDollar = dollarsC;
    amtToChange = custMoney / 100;
    for (int i=0; i<amtToChange; i++)
    {  // Give change in dollar coin if possible
    if (hcDollar > 0)
    {  hcDollar--;
    custMoney = custMoney - 100;
    // or else give change in paper dollar
    else
    {  if (hpDollar > 0)
    {  hpDollar--;
    custMoney = custMoney - 100;
    amtToChange = custMoney / 25;
    for (int i=0; i<amtToChange; i++)
    {  if (hQuarter > 0)
    {  hQuarter--;
    custMoney = custMoney - 25;
    amtToChange = custMoney / 10;
    for (int i=0; i<amtToChange; i++)
    {  if (hDime > 0)
    {  hDime--;
    custMoney = custMoney - 10;
    amtToChange = custMoney / 5;
    if (amtToChange > hNickle)
    {  mode = 9;
    for (int i=0; i<amtToChange; i++)
    {  hNickle--;
    custMoney = custMoney - 5;
    if (mode == 1)
    {  nickles   = hNickle;
    dimes = hDime;
    quarters = hQuarter;
    dollarsP = hpDollar;
    dollarsC = hcDollar;
    money = money - custMoney;
    if (mode == 9) custMoney = 9;
    return custMoney;
    } // =======>> END OF CASHIN CLASS
    // ** PRODUCT CLASS **
    class Product
    {  private String name;
    private String image;
    private String picUsed;
    private double price;
    private int onHand;
    private int sold;
    private int maint;
    public Product(String n, String i, double p, int o, int s, int m)
    {  name    = n;
    image = i;
    picUsed = i;
    price = p;
    onHand = o;
    sold = s;
    maint = m;
    // Reset picture used when product is out of stock.
    public void setOutOfStock()
    {  picUsed  = "OutStock.gif";
    // Get product information
    public String getName()
    {  return name;
    public String getImage()
    {  return image;
    public String getPic()
    {  return picUsed;
    public double getPrice()
    {  return price;
    public int getOnHand()
    {  return onHand;
    public int getQtySold()
    {  return sold;
    public int getMaintDate()
    {  return maint;
    // Sell one of the product.
    public void sellProduct()
    {  onHand--;
    sold++;
    // Set the product values.
    public void setName(String n)
    {  name = n;
    public void setImage(String i)
    {  image   = i;
    picUsed = i;
    public void setPrice(double p)
    {  price = p;
    public void setOnHand(int o)
    {  onHand = o;
    public void setQtySold(int s)
    {  sold = s;
    public void setMaintDate(int m)
    {  maint = m; }
    this is the text file
    p,Fritos,Images/FritoLay.gif,
    m,$.50,
    p,Dr. Pepper,Images/Dr.Pepper.gif,
    m,$.60,
    p,Pepsi,Images/Pepsi.gif,
    m,$.60,
    p,Coke,Images/CocaCola.gif,
    m,$.60,
    p,Seven-Up,Images/7-Up.gif,
    m,$.60,
    p,Sprite,Images/Sprite.gif,
    m,$.60,
    c,10,20,40,
    i know that the filereader is supposed to read the fields...i guess i just have a weak start on understanding and implementing arrays.

    I write this sample some time ago, you can use it to start a new project
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CVM extends JFrame 
         JTextField mw = new JTextField("0");     
         JTextField hf = new JTextField("0");     
         JTextField ds = new JTextField("0");     
         JTextField lr = new JTextField("0");     
         JTextField py = new JTextField("0");     
         JTextField tp = new JTextField("0");     
         JTextField ch = new JTextField("0");     
    public CVM()
         super("Chocolate Vending Machine");
         setBounds(0,0,500,400);
         addWindowListener(new WindowAdapter()
         {      public void windowClosing(WindowEvent ev)
                   dispose();
                   System.exit(0);
         JPanel pan = new JPanel();
    //     pan.setLayout(new GridLayout(0,2,4,4));
         JPanel lp = new JPanel();
         lp.setBackground(Color.pink);
         lp.setLayout(new GridLayout(16,2,4,4));
         addButton(lp,"Milky Way    20$",mw);
         addButton(lp,"Hot Fudge    40$",hf);
         addButton(lp,"Dandy Shandy 50$",ds);
         addButton(lp,"Lovers Rock  80$",lr);
         addClearButton(lp);
         lp.add(new JLabel(""));
         lp.add(new JLabel(""));
         addPayButtons(lp);
         addMoneyBack(lp);
         pan.add(lp);
         setContentPane(pan);
         setVisible(true);
    private void addPayButtons(JPanel pan)
         JPanel lp = new JPanel();
         lp.setOpaque(false);
         lp.setLayout(new GridLayout(0,2,4,4));
         JButton b1 = new JButton("Pay 5");
         addPay(b1,5);
         b1.setMargin(new Insets(0,0,0,0));
         JButton b2 = new JButton("Pay 10");
         addPay(b2,10);
         b2.setMargin(new Insets(0,0,0,0));
         lp.add(b1);
         lp.add(b2);
         pan.add(lp);
         lp = new JPanel();
         lp.setOpaque(false);
         lp.setBackground(Color.cyan);
         lp.setLayout(new GridLayout(0,2,4,4));
         JButton b3 = new JButton("Pay 20");
         addPay(b3,20);
         b3.setMargin(new Insets(0,0,0,0));
         JButton b4 = new JButton("Pay 50");
         addPay(b4,50);
         b4.setMargin(new Insets(0,0,0,0));
         lp.add(b3);
         lp.add(b4);
         pan.add(lp);
         pan.add(new JLabel("    Payd"));
         pan.add(py);
    private void addPay(JButton bt, final int i)
         bt.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   int n = Integer.parseInt(py.getText())+i;
                   py.setText(""+n);
                   calculate();
    private void addButton(JPanel pan, String s, final JTextField jt)
         JButton    bt = new JButton(s);
         bt.setHorizontalAlignment(SwingConstants.LEFT);
         bt.setMargin(new Insets(0,0,0,0));
         pan.add(bt);
         bt.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   int i = Integer.parseInt(jt.getText())+1;
                   jt.setText(""+i);
                   calculate();
         jt.setHorizontalAlignment(SwingConstants.CENTER );
         jt.setEditable(false);
         jt.setBackground(Color.white);
         pan.add(jt);
    private void calculate()
         int nwi = Integer.parseInt(mw.getText()) * 20;       
         int hfi = Integer.parseInt(hf.getText()) * 40;  
         int dsi = Integer.parseInt(ds.getText()) * 50;  
         int lri = Integer.parseInt(lr.getText()) * 80;  
         int t   = nwi+hfi+dsi+lri;
         if (t >= 100) t = t - (t/10);
         tp.setText(""+t);
         int n = Integer.parseInt(py.getText());
         int c = n-t;
         ch.setText(""+c);
    private void addClearButton(JPanel pan)
         pan.add(new JLabel("    To pay"));
         pan.add(tp);     
         JButton    bt = new JButton("Clear");
         bt.setHorizontalAlignment(SwingConstants.CENTER);
         bt.setMargin(new Insets(0,0,0,0));
         pan.add(bt);
         bt.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   mw.setText("0");       
                   hf.setText("0");  
                   ds.setText("0");  
                   lr.setText("0");  
                   tp.setText("0");  
         pan.add(new JLabel(""));
    private void addMoneyBack(JPanel pan)
         JButton    bt = new JButton("Money back");
         bt.setHorizontalAlignment(SwingConstants.CENTER);
         bt.setMargin(new Insets(0,0,0,0));
         pan.add(bt);
         bt.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   py.setText("0");
                   ch.setText("0");
         pan.add(new JLabel(""));
         pan.add(new JLabel("    Change"));
         pan.add(ch);     
    public static void main( String[] args)
         new CVM();
    }Noah

  • Errors when starting Java ME SDK 3 - Windows 7 x64

    Hi,
    I am having trouble running the Java ME SDK 3 on a Windows 7 x64 computer. When trying to run the installed SDK using the shortcut link on my desktop, I receive a number of erros such as
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:525)
         at java.net.Socket.connect(Socket.java:475)
         at java.net.Socket.<init>(Socket.java:372)
         at java.net.Socket.<init>(Socket.java:186)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
    Caused: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
    Caused: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect]
         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
         at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
         at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
    Caused: java.io.IOException: Failed to retrieve RMIServer stub
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.connect(Unknown Source)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.start(Unknown Source)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.lookupMBean(Unknown Source)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.findObject(Unknown Source)
         at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.openConnection(DevicemanagerHelper.java:53)
         at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.getDeviceManager(DevicemanagerHelper.java:86)
         at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.ensureDMStarted(AutoInstaller.java:292)
         at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.restored(AutoInstaller.java:63)
         at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:421)
         at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:342)
         at org.netbeans.ModuleManager.enable(ModuleManager.java:906)
         at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:428)
         at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:364)
         at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276)
         at org.netbeans.core.startup.Main.getModuleSystem(Main.java:165)
         at org.netbeans.core.startup.Main.start(Main.java:312)
         at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
    [catch] at java.lang.Thread.run(Thread.java:619)--------------------------------------------------------------------------------------------------
    Does anybody know where this comes from? Is it an incompatibility with Windows 7 x64? I have installed the latest Java SDK for Win64.
    I have another issue consisting in the fact that the Eclipse MJT plug-in is not abel to find any devices in the Java ME SDK 3 folder (see my post in the Eclipse forum [Post in Eclipse MJT forum|http://www.eclipse.org/forums/index.php?t=msg&th=156515&start=0&S=6f25cc6925ad7008453ee93ca55525a2]), does this have anything to do with the problem described above?
    Thanks for your help,
    Markus
    Edited by: acm821 on Oct 28, 2009 2:06 PM

    Edit file "C:\Java_ME_platform_SDK_3.0\bin\java", replace the path of x64 jdk by path of x32 jdk.
    For example, my file contains "C:\Program Files\Java\jdk1.6.0_21" and I change to "C:\Program Files (x86)\Java\jdk1.6.0_21".
    You need have a 32 bits jdk installed. Restart device managar after the change.
    Obs.: This happens because device manager need load a 32 bits DLL. So you need run they with a 32 bits jdk.
    With this method you don't need remove x64 jdk. You can stay with both jdk.

  • Where do i change the heap size?

    have the application installed and functional, most setup is complete.
    When i'm working with the application we have running on the app server, i am only able to work for around 30 minutes before heap errors prevent further use with the site.
    where do i change the allocated heap size?
    within the portal?
    on the server?
    Running Windows and Oracle App Server

    here is the file i have to work with....
    &lt;?xml version = '1.0' encoding = 'UTF-8'?&gt;
    &lt;opmn xmlns="http://www.oracle.com/ias-instance"&gt;
    &lt;log path="$ORACLE_HOME\opmn\logs\opmn.log" comp="internal;ons;pm" rotation-size="1500000"/&gt;
    &lt;debug path="$ORACLE_HOME\opmn\logs\opmn.dbg" comp="internal" rotation-size="1500000"/&gt;
    &lt;notification-server&gt;
    &lt;port local="6100" remote="6200" request="6003"/&gt;
    &lt;ssl enabled="true" wallet-file="$ORACLE_HOME\opmn\conf\ssl.wlt\default"/&gt;
    &lt;/notification-server&gt;
    &lt;process-manager&gt;
    &lt;process-modules&gt;
    &lt;module path="$ORACLE_HOME\opmn\lib\libopmnohs"&gt;
    &lt;module-id id="OHS"/&gt;
    &lt;/module&gt;
    &lt;module path="$ORACLE_HOME\opmn\lib\libopmnoc4j"&gt;
    &lt;module-id id="OC4J"/&gt;
    &lt;/module&gt;
    &lt;module path="$ORACLE_HOME\opmn\lib\libopmncustom"&gt;
    &lt;module-id id="CUSTOM"/&gt;
    &lt;/module&gt;
    &lt;module path="$ORACLE_HOME\opmn\lib\libopmniaspt"&gt;
    &lt;module-id id="IASPT"/&gt;
    &lt;/module&gt;
    &lt;/process-modules&gt;
    &lt;ias-instance id="detqas.ARC-MCAC-VW018.amc.faa.gov" name="detqas.ARC-MCAC-VW018.amc.faa.gov"&gt;
    &lt;environment&gt;
    &lt;variable id="TMP" value="C:\DOCUME~1\DENNIS~1\LOCALS~1\Temp"/&gt;
    &lt;/environment&gt;
    &lt;module-data&gt;
    &lt;category id="start-parameters"&gt;
    &lt;data id="routing-id" value="g_rt_id"/&gt;
    &lt;/category&gt;
    &lt;/module-data&gt;
    &lt;ias-component id="ASG" status="enabled" id-matching="true"&gt;
    &lt;process-type id="ASG" module-id="CUSTOM"&gt;
    &lt;environment&gt;
    &lt;variable id="OS" value="Windows_NT"/&gt;
    &lt;/environment&gt;
    &lt;start timeout="600"/&gt;
    &lt;stop timeout="120"/&gt;
    &lt;process-set id="ASG" numprocs="1"&gt;
    &lt;module-data&gt;
    &lt;category id="start-parameters"&gt;
    &lt;data id="start-executable" value="D:\product\10.1.3\OracleAS\jdk\bin\java"/&gt;
    &lt;data id="start-args" value="-ms20m -Djava.library.path=D:\product\10.1.3\OracleAS\bin;D:\product\10.1.3\OracleAS\dsa\bin;D:\product\10.1.3\OracleAS\oui\lib\win32 -classpath D:\product\10.1.3\OracleAS\dsa\jlib;D:\product\10.1.3\OracleAS\dsa\jlib\duf.jar;D:\product\10.1.3\OracleAS\lib\dms.jar;D:\product\10.1.3\OracleAS\oui\jlib\OraInstaller.jar;D:\product\10.1.3\OracleAS\jlib\srvm.jar;D:\product\10.1.3\OracleAS\jlib\netcfg.jar;D:\product\10.1.3\OracleAS\lib\xmlparserv2.jar;D:\product\10.1.3\OracleAS\assistants\jlib\assistantsCommon.jar;D:\product\10.1.3\OracleAS\jdbc\lib\classes12.zip;D:\product\10.1.3\OracleAS\jdbc\lib\nls_charset12.zip;D:\product\10.1.3\OracleAS\jlib\share.jar;D:\product\10.1.3\OracleAS\opmn\lib\optic.jar;D:\product\10.1.3\OracleAS\j2ee\home\jazn.jar;D:\product\10.1.3\OracleAS\jlib\ldapjclnt10.jar oracle.duf.dufserver.DufServer D:\product\10.1.3\OracleAS\dsa\dsa.conf"/&gt;
    &lt;/category&gt;
    &lt;/module-data&gt;
    &lt;/process-set&gt;
    &lt;/process-type&gt;
    &lt;/ias-component&gt;
    &lt;ias-component id="HTTP_Server"&gt;
    &lt;process-type id="HTTP_Server" module-id="OHS"&gt;
    &lt;environment&gt;
    &lt;variable id="PERL5LIB" value="D:\product\10.1.3\OracleAS\Apache\Apache\mod_perl\site\5.8.3\lib\MSWin32-x86-multi-thread;$ORACLE_HOME\perl\5.8.3\lib;$ORACLE_HOME\perl\site\5.8.3\lib"/&gt;
    &lt;variable id="PHPRC" value="D:\product\10.1.3\OracleAS\Apache\Apache\conf"/&gt;
    &lt;variable id="PATH" value="$ORACLE_HOME\Perl\5.8.3\bin\MSWin32-x86-multi-thread" append="true"/&gt;
    &lt;/environment&gt;
    &lt;module-data&gt;
    &lt;category id="start-parameters"&gt;
    &lt;data id="start-mode" value="ssl-enabled"/&gt;
    &lt;/category&gt;
    &lt;/module-data&gt;
    &lt;process-set id="HTTP_Server" numprocs="1"/&gt;
    &lt;/process-type&gt;
    &lt;/ias-component&gt;
    &lt;ias-component id="IASPT" status="disabled"&gt;
    &lt;environment&gt;
    &lt;variable id="LD_LIBRARY_PATH" value="D:\product\10.1.3\OracleAS/lib" append="true"/&gt;
    &lt;/environment&gt;
    &lt;process-type id="IASPT" module-id="IASPT" working-dir="D:\product\10.1.3\OracleAS/iaspt/bin"&gt;
    &lt;port id="ajp" range="7501-7600"/&gt;
    &lt;process-set id="IASPT" numprocs="1"/&gt;
    &lt;/process-type&gt;
    &lt;/ias-component&gt;
    &lt;ias-component id="OC4J"&gt;
    &lt;process-type id="home" module-id="OC4J" status="enabled"&gt;
    &lt;module-data&gt;
    &lt;category id="start-parameters"&gt;
    &lt;data id="java-options" value="-Xrs -server -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/&gt;
    &lt;/category&gt;
    &lt;category id="stop-parameters"&gt;
    &lt;data id="java-options" value="-Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/&gt;
    &lt;/category&gt;
    &lt;/module-data&gt;
    &lt;start timeout="600" retry="2"/&gt;
    &lt;stop timeout="120"/&gt;
    &lt;restart timeout="720" retry="2"/&gt;
    &lt;port id="default-web-site" range="12501-12600" protocol="ajp"/&gt;
    &lt;port id="rmi" range="12401-12500"/&gt;
    &lt;port id="jms" range="12601-12700"/&gt;
    &lt;process-set id="default_group" numprocs="1"/&gt;
    &lt;/process-type&gt;
    &lt;/ias-component&gt;
    &lt;/ias-instance&gt;
    &lt;/process-manager&gt;
    &lt;/opmn&gt;
    I'm working with the Enterprise Manager 10g console.
    I can find the current monitoring of the heap space used in percentage, but cant find where to adjust it or increase it's space.
    searching around.
    thanks! but still searching...

  • How to start the emulator from eclipse

    Hello everybody, i've just installed Java_ME_platform_SDK_3.0 on my XP machine and i use eclipse helios with the eclipseme plugin for developing midlets. now, when i start a simple midlet with the emulator for my nokia device (S60_3rd_FP2_SDK_v1.1) the nokia emulator comes up and start the midlet. but when i choose the Java_ME_platform_SDK_3.0 as emulator i got the following output:
    -Xdebug Use a remote debugger
    -Xrunjdwp:[transport=<transport>,address=<address>,server=<y/n>
    suspend=<y/n>]
    Debugging options
    -Xdevice:<device> Select a device skin for the emulator
    -Xdomain:<domain_name>
    Set the MIDlet suite's security domain
    -Xquery Print device information
    -Xjam[:install=<JAD file url> | force | list | storageNames |
    run=[<storage name> | <storage number>] |
    remove=[<storage name> | <storage number> | all]]
    Java Application Manager and support
    for Over The Air provisioning (OTA)
    -Xautotest:<JAD file url>
    Run in autotest mode
    -Xdescriptor:<JAD file name>
    The JAD file to be executed
    any ideas how i can start the emulator directly from inside eclipse?

    Thank you Diane and Lynn.
    Diane what you said would be the obvious choice if i was using motor angles to calculate the distance i have to run. I am using Motor run block sets. that make the robot move a specific distance. then a combination of different blocks completes the square trajectory. I am refering to the NXT motor blocksets. so there are two states. the swerve around routine is working fine. However in the search mode. i have lets say three blocks. one makes the robot go 1.5 meter straight. then another block steers it. then it again moves 1.5 meter. Now when my mine is in between these 1.5 meter runs. i want it to start from the same point where it swtiched states. and then move onto the next two block. or atleast move to the next two blocks rather than start from beginning. i was wondering if there is some sort of flag that can be used to tell that this where the states were switched and when the flow comes back it starts from that flag rather than from beginning.
    Regards
    Asad Tirmizi
    Design Engineer
    Institute of Avionics and Aeronautics
    " Its never too late to be, what u want to be"
    Using LabVIEW 8.2

Maybe you are looking for