Steps involved in writing java application on win CE

I want to develop a java application in win CE platform for a handheld device.
1. What are all the steps involved.
2. Is there any simulator available for win CE so that I can run my java application.
Advance thanks,
Regards,
Balasubramaniam.K.R
[email protected]

The way I developed my first app for the Compaq iPAQ
1. Install PersonalJava
2. Build app using AWT classes only (although I think SWING can be used)
3. Screen size 240 x 295 (thats what I used)
4. Compile and run on PC
5. Move to PPC (fingers crossed)
6. You may want to add an app.LNK file (kinda like a *.bat file) to setup classpath and file args
Sun has a compatibility suite you can run against your app to make sure it is PJava compliant. http://java.sun.com/products/personaljava/javacheck.html
Also make sure you don't use classes/methods that aren't supported
There is a PJava emulkation environment, but I never used it.
http://java.sun.com/products/personaljava/pj-emulation.html
...good luck

Similar Messages

  • Cannot run java application in Win XP

    I worte a java application(a Swing app), I test it and run under win NT, it works fine for me.
    Then I recompile it in my WinXP using j2sdk1.4.1_02, run it in a command prompt, but it does NOT start up the application, I check the window task manager, a java.exe already startup and it eat up 100% CPU of my XP, but the application never been startup.
    My Swing application is not a JApplet but a JFrame.
    Does anyone have the similiar problem?
    Thx in advance
    Henry

    Try adjusting your path settings to stop using the MS VM (did you recently use win update?):
    My Computer->Properties -> Advanced -> Environment Variables
    System Variables -> "Path"
    If it currently starts with:
    %SystemRoot%\system32;...
    change it to:
    .;%JAVA_HOME%\bin;%SystemRoot%\system32;...
    If you haven't set JAVA_HOME, create a new variable like:
    JAVA_HOME = C:\j2sdk1.4.1_02
    Note that using the ".;" before path makes the current dir's executables take prevalence over a same-named executable in a subsequent path.
    Putting "%JAVA_HOME%\bin" before "%SystemRoot%\system32" makes certain that the current java.exe gets used (not Micro$oft's java.exe)
    Try it, hope it helps,
    Georg.

  • What are the steps  involved in writing a program?

    hi experts ,
       I am writing reports? i want to know that what are the steps required to write a program?
    and also Explain different techniques to analysize a program?
    please send example programs with analysis?
    I definately award a good number of points to help full answers.

    hi sateesh,
        welcome to SDN.
    first of all check ur requirement.
    Analysis what r the events that are required in ur report.
    write a pseudo code for ur requirement
    and then write ur program.
    To analyse a program v have to use the these t/c :
    SE30 - Runtime Analysis.
    ST05 - SQL Trace.
    Regards...
    Arun.
    Reward points if useful.

  • Help on Writing Java Application to be used in a different Language.

    Hi. I want to write application which can be used in different languages.Currently my application uses English as its default Langauge.
    I want to give the user a option to change the language.
    I think it can be done using a resource file. But I am not sure where to exactly start. Could some one give me any Ideas how it is done. Guide me please. Or give me a link to any tutorial or something.
    Thank you

    Hi,
    you would need to put string constants in a file ending with .properties. From out of your application you replace all string constants with calls to a ResourceBundle class you'd have to instantiate for the .properties file.
    ResourceBundles use a certain namin convention combining an arbitrary name with a locale such as _de for a german system for instance.
    See the API docs at http://java.sun.com/j2se/1.4/docs/api/java/util/ResourceBundle.html
    You can see an open source example of an application running in different locales at http://www.lightdev.com/dev/sh.htm
    HTH
    Ulrich

  • Java Application + Flash / Win Media Player.

    Hey Guys,
    I am developing a video streaming application and wanted to integrate the Flash player in my code. I am not able to do it. I could load and open the player but couldnt play .swf file. Please advice / suggest / guide...
    Bye,
    Salil.Siddhaye

    Following is the sample code that I am trying to execute..by calling the Win Media Player
    public static void main(String[] args)
              String cmd = "C:\\Program Files\\Windows Media Player\\wmplayer.exe";
              try
                   Process p = Runtime.getRuntime().exec(cmd);
                   OutputStream out = p.getOutputStream();
                   RandomAccessFile file = new RandomAccessFile("C:\\sample.wmv", "r");
    //               ByteBuffer buffer = ByteBuffer.allocate(SystemInfo.getInstance().getSizeOfChunk());
                   ByteBuffer buffer = ByteBuffer.allocate(200);
                   FileChannel channel = file.getChannel();
                   int n = 0;
                   int i = 0;
                   while ((n = channel.read(buffer)) >= 0)
                        byte[] b = new byte[buffer.array().length];
                        try
                             out.write(b);
                             out.flush();
                             System.out.println(b.length+" bytes flushed()");
                             Thread.sleep(7000);
                             //just to see if the playback stops due unavailability of data.
                        catch (Exception e)
                             e.printStackTrace();
              catch(IOException e)
                   System.out.println("Error : " + e + "\n");
         }

  • Running java application without installing JRE

    We try to run Java application without installing JRE, by copying java.exe (and other JRE files) together with our jar file. This does not work.
    Can it be solved?

    Can you elaborate on the steps to create a java
    application without installing JRE.
    Regards,
    padmaPadma,
    The solution is to deploy my JAR together with JRE files, without running standard JRE installation. This makes possible to simply ensure that my JAR will run with THIS SPECIFIC JRE. This is important from QA point of view. Also, installation of my application does not change configuration of JVMs on the computer.
    The solved problem:
    Standard JRE installation may change the default JRE for many Java applets and application on computer. Changing version JRE may lead to some programs misbehaviour (JRE backward compatibility does not always work and different Java versions not always live together well). Thus, some IT departments are very nervous about JRE version change.
    Hope, this explains my problem and the solution.

  • Steps to deploy java application from scratch.

    Hello All,
    in our company we have weblogic 10.3.6 with fusion middleware (11.1.2)   forms & reports.
    I created two managed server FORMS , REPORT to deploy  Oracle Forms & Reports.
    Now our management wants to deploy java files in weblogic.
    Do I have create a managed server in weblogic to deploy java files?
    So Could you please provide the steps from a scratch to deploy java application?
    Thanks,
    Ahmed.

    Hello Rosario,
    thank you for your response,
    As you mentioned in your prior pot that  "or create a new Managed Server to Deploy the java application."
    We must create a new managed server to deploy java files,
    Could you please provide me the steps to create that a new managed server?
    I am already  searched in internet, I found you have to create a machine then assign that a new server to it, is it ok or there are another steps?
    what is the modification we have to set it in "formsweb.cfg & default.env" files?
    Regards,
    Ahmed.

  • Steps to execute servlets on Sun Java Application Server

    Hi
    Could u tell me how to deploy servlets files and how to execute
    In specs. the ask us to start cloudscape database server
    In my Sun Java Application Server installations, i am not find even a single name as cloudscape
    Please anyone guide me get the servelts to execute
    thank u

    What specs do you refer to?
    Sun Java System Application Server does not include Cloudscape, nor is it required. SJSAS does include a development copy of Pointbase DB Server.
    To deploy your servlet application you will need to package them into a WAR file (Web Archive). Then you can either use asadmin CLI or the admin gui to deploy the WAR. The steps are included here: http://docs.sun.com/source/816-7150-10/dwdeploy.html
    Now I'm going to assume you application uses Cloudscape. To get that piece running you will need to download and install Cloudscape. You will also need the JDBC drivers for Cloudscape. Copy the JDBC driver jar file to either the <serverinstancedir>/lib directory or modify the JVM settings to include that jar file. Restart the Application Server. You will also need to add a JDBC Resource & Connection Pool. In the admin, create a new connection pool (probably called Cloudscape). Use the appropriate settings for classname and add any additional properties that are necessary (Usually URL, User, Password). Now create a JDBC Resource using that Connection Pool. Make sure the JNDI name matches what your application expects.
    Now just access the URL for the application
    -Jeff

  • SAP NW 7.0 AS JAVA Application Server Installation in DMZ : Win 2008 SR2

    Dear Experts,
    We are installing two AS JAVA application servers in DMZ (XYZ domain) and the central instance is running outside DMZ (ABC domain). While trying to give the profile path of the CI, in the application server installation, it says that the path cannot be found. We have opened the following ports 54200,54201,54204,54218,54230,3342,3641,3310,3610,8010,8011, and 25.  The installation inside DMZ is run with a user which is part of local administration group. The DB (SQL 2008R2)is running on a different host in a distributed setup.
    Could  someone please let us know if any other port needs to be open to allow communication between the central instance and application server?
    Help is appreciated.
    KP

    If FileSharing disabled, Firewal is open, unable to do ping test. How does the poor App server can access the Path from CI ?
    Please request your network team to open firewal between CI and APP server otherwise, even if you install you might get other below access problems
    1). user's in App server can't update CI
    2). Jobs in App server might run as expected.
    etc...

  • Accessing SAP Tables from a Java application

    Hi,
    I know, the forum is called "Web Application Server" but because it's Java question I hope to get answers here.
    I have a small stand-alone Java application that needs to access (read-only) all records from a SAP table. Is there a possibility to do this without writing a BAPI before?
    thanks a lot
    Paul

    Hi Paul,
    You can use JCo to call the standard remote-enabled function RFC_READ_TABLE. There is one annoyance involved with this function, though: each row of data returned is packed into a single string, so you must either specify a delimiter and use e.g. String.split(...) to parse out the column values or use the returned metadata to extract each value based on position and length attributes of the column.
    Another option (although this is usually not allowed in a productive environment) is to establish a direct JDBC connection to the database, thus bypassing the ABAP application layer entirely.
    Regards,
    Thorsten

  • Migrating a custom built BusinessObjects 6.5 Java application to XI 3.1

    Hi,
    We have a Business Objects 6.5 system which needs to be migrated to XI 3.1.
    In the present Business Objects 6.5 system, we have a custom built Java application deployed on WebLogic. Its got a single sign on also configured from the Java web page into InfoView. A fair deal of SDK customization has been done to achieve this.
    My question is, if we need to set up the same portal to function similarly in Business Objects XI 3.1, what are the steps to be followed? Should the code be re-written to adhere to the XI 3.1 SDK and then re-deployed on the new server? Kindly correct me if I'm wrong.
    I found this document: u201CMigrating Business Objects 6 Customized Applications to BusinessObjects Enterprise XI R2u201D which provides info on this. But, Iu2019m not yet able to figure out where to begin.
    I do not have great exposure to writing code and deploying web applications. So Iu2019ll be very grateful for any help and pointers on this.
    Many thanks!
    Rahul

    More than likely it will need to be a complete rewrite.
    At the top of this forum there is a post called [Read Before Posting - Where to find Business Objects Java SDK Resources|Read Before Posting - Where to find Business Objects Java SDK Resources; which you should read.
    It has links to various Java SDK information and samples.
    I would suggest starting there.
    Jason

  • Creating WSDL for Java Application/ JSP Page

    I am looking for creating a Webservice(WSDL) for a Java application which connects to the R/3 System Backend. I have tried to connect to the Backend using JCO in JSP page and was successful, but I need to generate a WSDL file which when consumed performs the connection and looks up for the data in the Backend. The FrontEnd can be a JSP application or a Java Application in NetWeaver.

    The easiest thing to do is put it in a JAR file with an appropriate manifest. That way it retains cross-platform functionality, which is kind of the point of writing things in Java. The JAR file will be double-clickable.
    If you absolutely must put it in an .exe for some reason, there are applications on the web that will do it.
    Either way, a google search is your next step.
    Drake

  • Connecting Java application to Oracle Database with JDBC

    How can I connect my Java application using Oracle 11g database?
    Please provide the steps involved along with the coding.

    What kind of Java application? Stand alone/desktop? Or web? Do you need dedicated, individual connections, or connection pooling for 10,000 concurrent users?
    You'll find a few clues in This Article [This Article|http://javawebdb.com/2012/01/30/connecting-a-java-servlet-to-a-database/]

  • How to let users run your Java application

    Hello,
    I'm writing an application using JBuilder7 and it's wonderful designer: so far it is composed by only 2 class and imports java.awt.* and javax.swing.* (SDK 1.4)
    Now, I've yet to finish it but I was wondering: "how will users be able to use it?"
    I don't want them to install 30+ Mb of SDK so I've looked into the forums and elsewhere and come up with several answers:
    1) Let them install JRE: but it's 10+ Mb and they would need to download it separately from my program.
    2) Let them use somehow their browser's JVM..(should I turn my application into applet for this? I guess so)
    3) Make an .exe: I know there are many programs to make .exe from java but they would make a one-platform-based file.
    Also there were many hints about using .jar files to get things easier.
    Is there a 4th option in which users have to download only a few mbs to use the application?
    And about .jar, how should I use it?
    Thank you very much for all your help :)

    Simply put - the users must download or be supplied the JRE. This must be installed before they can execute your java application.
    As to distributing the application itself - You can jar (Java Archive) your classes into a single file.
    You could as has been suggested create an EXE, but these generally are very large and tend to severely restrict the range of java technologies able to be used (EG Serialization, RMI, Reflection, class loading, ...)
    Java is not intended for little tools that get installed separately - It is intended for larger applications or small applets in which case the download of the JRE is a minor concern.
    Note that applets targeting Java 1.1.7 functionality work fine with most old browsers inbuilt JVMs - Your customers browser may not however have an inbuilt JVM and the user will still need to download the JRE to execute a SWING based applets.
    Talden

  • JCO-Java application unable to open a Frontend GUI session

    Hello,
    <P>
    I am having a problem opening a GUI session on a client PC through the JCo java call. It works on some PC's when I am logged in, but not on my PC. But other persons who login on my PC do not have a problem with the application opening a GUI session. I am at a loss. I have had a basis consultant look into this and he could not find a reason for the problem. I have submitted a customer message to SAP and am being told to file this issue in the forum, so here it is. If this is the wrong forum, please let me know which forum would be the correct one.
    </P>
    <P>
    Problem:</br>
    For test purposes, I have created a Java application using the SAP standalone SAPJCO3 vers. 3.0.1. The R/3 backend is 4.6C. The SAPGui version is 7.1 patch level 13 installed on a Windows XP Pro client PC. The application is supposed to start a Frontend GUI session as part of the initial process. This is not working on all PCu2019s for all users. The following are scenarios for two different users on two different PCu2019s, logged on and executing the Java application. The parameters for the Java application are: User, Password, and System Id in this order on the command line after the Java applicationu2019s name. The system Id in our example is PRP in uppercase. This problem happens while connecting to any of our R/3 instances.
    </P>
    <P>
    Testing of the issue:</br>
    Scenario 1:</br>
    User gmcghie: This user is the primary user of his/her PC. This PC has not had its registry entries cleaned up for a long time. Starting the Java application from the Windows command line with the supplied parameters, the program is executed and makes the initial connection with the R/3 backend. When the R/3 system sends back a request to start the GUI session, the SAP Logon is executed and opens on the PC. Nothing seems to happen after this.
    <P>
    Here is the JCO exception from the log file:
    JCoException eDest: (136)com.sap.conn.jco.JCoException: (136) JCO_ERROR_ILLEGAL_STATE: Launching SAP GUI failed, though it was requested (error message: Communication with SAPGUI timed out)
    </P>
    <P>
    When you right click on the SAP Logon icon that is in the Windows System Tray on the PC you see an entry that shows a session for Client 000. This is the wrong client being called by the application. The client being called is 600 in this particular scenario.
    </P>
    <P>
    Here is the connection string sent to backend for scenario 1:</br>
    TYPE=A DEST=PRP USER="gmcghie" PASSWD=********** CLIENT=600 LANG=E ASHOST=10.212.120.53 SYSNR=00 TRACE=1 PCS=1 USE_SAPGUI=2
    </P>
    <P>
    Scenario 2:</br>
    User mshin: This user is the primary user of his/her PC. This PC has had the OS re-installed on it within the last few years, hence the registry is likely more clean. Starting the Java application from the Windows command line with the supplied parameters, the program is executed and makes the initial connection with the R/3 backend. When the R/3 system sends back a request to start the GUI session, the SAP Logon is executed and opens on the PC. The connection is made to Client 600 and the process ends. The screens that appear above for the other scenario are not present when the connection is successful. The log file is not included for this as it was empty because it succeeded.
    </P>
    <P>
    Here is the connection string sent to backend for scenario 2:</br>
    TYPE=A DEST=PRP USER="mshin" PASSWD=********** CLIENT=600 LANG=E ASHOST=10.212.120.53 SYSNR=00 TRACE=1 PCS=1 USE_SAPGUI=2
    </P>
    I have the same issue on my PC as the first scenario.
    <P>The steps I took to try to get this to work are as follows.</br>
    1. Un-installed and re-installed the SAPGui, several times with no change.</br>
    2. Compared the registry settings of SAPGui between working and non-working PCu2019s. These were essentially the same.</br>
    3. Compared the system variables between working and non-working PCu2019s. These were essentially the same.</P>
    It should also be noted that if user u2018gmcghieu2019 from scenario #1 logs into another PC, the program executes correctly (for most other PCs but not all). Finally, if user u2018mshinu2019 from scenario #2 (certain other users as well) logs into Windows on the primary PC for user u2018gmcghieu2019 from scenario #1, and user u2018gmcghieu2019 is used to connect to SAP using the Java program, the program executes correctly. It seems that this would indicate some problem with the useru2019s Windows account on certain PCs.</P>
    Why is the connection information being dropped? How is the process of opening the SAPGui on the frontend done?</P>
    Any help with this issue is greatly appreciated.</P>
    Thanks,</br>
    Mark Shirkey

    Created Customer Message and got answer. There were settings in Windows Registry for starting the SAP Logon Launch Pad which had to have a value of 1.

Maybe you are looking for

  • We need to open the connection each time you read a message from the queue?

    Hi I have a doubt regarding my queue read data that contains those I create a session and connection. Whenever I do this or you can create a connection and get all data from the queue and then close the connection and session eg. I have 1000 files in

  • Where is the "DELETE" tab in Edit User in Portal?

    Hi, Portal version 3.08 on solaris. I logged on as Portal30. Go to Login Server, Administer User, Edit a user, and I saw a DELETE tab for that user. I can delete a user there. However, if I go to Edit user under the Create user portlet. I chose a use

  • How to decrease the size of a 52 page document?

    InDesign Help:  Original 52 page document (5.5" x 8.5"- .25" margin) needs to be be reduced to 5.375"x .375" with a .375" margin.  Is there an easy way to fix this?  I created alternate page layout with the new dimensions, but margins are off.  I don

  • How to track bundles

    I have compiled some source and created a bundle. The bundle looks almost the same as the original one. From my point of view it's almost all the same, I even checked the CRC-checksums of the classes to make sure it's ll the same.. The new bundle doe

  • ADFS 3.0 and force password change

    I was wondering if anyone knows if ADFS 3.0 supports the AD flag "Force password at first login"?  I know 2.0 does not. I have been integrating Shibboleth with my ADFS and a custom login handler but I would really like to not complicate my setup and