How to compile my java application for Personal Java??

i write a simple program and want to run it in PJEE.
program is:
import java.awt.*;
public class TestApp {
public static void main(String[] args) {
Frame f = new Frame();
f.pack();
f.setSize(300,300);
f.show();
and i compiled it using JDK1.4
javac TestApp.javathen i want to test it by using pjava
pjava TestAppbut i got a error message:
Error loading class TestApp: Bad major version numberplease tell me what it is mean and how i can debug it, thanks.

hi, all
i have resolved my question by myself.
because:
|-> personal java
|
jdk1.1 -> jdk1.2 -> jdk1.4
so, i must compile the java file by using jdk1.1.x
:)

Similar Messages

  • How to compile your flex application for Iphone Using Adobe Flash CS5?

    How to compile your flex application for Iphone Using Adobe Flash CS5?

    I'm so sorry, I'm not really familiar with the codes.

  • Developing Java application for windows CE based Handheld device

    Hi everybody,
    I am planning to develop the java application for windows CE
    based handheld device.I came to know that Oracle 9iLite supports
    the Developement of Java Application for windows CE devices.Can
    i use the JDeveloper IDE to develop the application on windows
    NT.If so how to deploy the application on windows CE device(Is
    there any options in Jdeveloper to deploy the application).Any
    body please give the solution.
    Regards,
    Siva mani kumar.D

    I agree. In my opinion Sun has done a horrible job documenting all this madness for the average developer just starting out with this stuff. There is the CLDC, J2ME, Personal Java, J2ME-WTK, MIDP, MIDP-FCS ... maddness. Anyway after sorting through it all for a few days, I think the answer to your question you will need to use Personal Java for WinCE and the Sharp Zaurus, and MIDP for PalmOS for the palm. Jeode seems to be the most common and best Personal Java implementation and it is basically the JDK1.2.2 (or is it 1.1.8) that is designed to run on WinCE and Embeddix (such as Lineo on the Zaurus). You program it just like you would a 1.1.8 application and then you can test it by running pjava.exe which is included in the personal java 3.1 download from Sun. There is also a program called JavaCheck that will ensure that your app will run properly in PersonalJava. As for the Palm, MIDP for PalmOS is a 574K program that installs on your palm device. You then use the J2ME-WTK (wireless toolkit) to build a JAR/JAD file and you use the MIDP API to write the code.

  • How can I deploy JBI Application in Sun Java System Application Server 9?

    I developed a demo "Loan Processing Composite Application " in Netbeans.org(http://www.netbeans.org/kb/55/loanprocessing.html).
    The guide only show the deployment using Netbeans6.Now I want to deploy it directly using Server9 , how can I do?
    How to deploy a soa application in Sun Java System Application Server 9? Is there any doc?
    Please~~I'm puzzled.

    To deploy a JBI application to Sun's App Server, you will need a JBI compliant ESB installed. OpenESB would be my first choice here. Then as far as installing your components without Netbeans, there are two choices. 1) Copy your SA's to the JBI/ESB autodeploy directory and you binding components and service engines to the JBI/ESB autoinstall directory. 2) Use the ant tasks that the JBI specification (http://jcp.org/en/jsr/detail?id=208) requires for all JBI implementations. OpenESB's JBI tasks are detailed here: http://wiki.open-esb.java.net/Wiki.jsp?page=JBIAntTaskReference. These ant tasks can be wrapped with maven goals if needed.
    Jeff

  • Developing Java Applications for Windows CE

    Hello,
    I hope this sub forum is right. So I must develop a Java Application for Windows CE. I read something about J2ME, but I think this is only for Mobilephone and Windows CE supports AWT. So I tried just some simple forms with J2ME.
    Can anybody tell me how I develop java Applications for Windows CE? Can I use Eclipse or must I use another IDE?
    Realy I developed Swing 5-6 Month but I have no idea how I develop Java Applications for Windows CE.
    Thanks a lot for helping...

    The MIDP for Palm OS 1.0 requires Palm OS v3.5 or higher to run. According to your error message, the emulator is not running v3.5 or higher. Try to get hold of a ROM image with a later version. I've run it with v4.0 of the OS and it works.

  • Is there any possibility to develope java application for IPhones

    Is there any possibility to develope java application for IPhones

    921326 wrote:
    Just look to the next thread!I did that after I replied to the last person to ask this question. I spotted this thread:
    Developing iPhone apps with JavaFX 2 (Demo)
    Not much there, but apparently people are trying to hack it together using JavaFX 2 already. I believe I read an article where Oracle itself had given a presentation about a JavaFX2 app on an iPhone; I believe the gist of it is that they want to make it so you can bundle the Java runtime with your application, which makes it legal to sell a Java application through the appstore.

  • How to load an Applet application for 1000cards?

    Hi Friends..
    I want to know How to load an Applet application for 1000cards?..
    Assume that, i have an Applet application that need to loaded into 1000cards..
    So, how to solve this?
    Do i must to load an application manually for each card?
    Is there any another way?
    Thanks in advance..

    for 1000 cards you can use a "small" printer like an evolis "dualis" or something like that
    we've produced thousands of cards with this method in my company.
    the pro is that you can also print the cards in the same time.
    they usually have simple APIS like get_new_card_from_loader(), put_card_on_contacts(), eject_card()
    you can connect any reader on the printer , the raw card contacts are available on a connector.
    some printers also have contactless couplers.
    but remember that deploying cards in the field is not just loading an applet.
    it's also a cryptographic challenge, you need to change the card keys or anyone will be able to play with your cards, adding and removing applets as they want.
    typically this is achieved by using an ultra secret mother key and whatever derivation algorithm you like using data from INIT UPDATE as diversifier. example, you can TDES cipher part of the INIT UPDATE data using the mother key as TDES key, or use something involving SHA1, using a HSM if you are serious, etc.
    for your entertainment here is a high volume card personnalization machine. That's amazing.
    http://www.youtube.com/watch?v=6ZBF_yKRF5w

  • How I can make an application for android from director?

    I have a project done in Director 11.5 how I can convert an application for android?
    What I have to do?

    Estas en el Foro de Usuarios en Español.
    Consultando esta página:
    Adobe Director
    Parece ser que se crean ejecutables que requieren Shockwave Player:
    What is Adobe Director 12?
    Adobe® Director® 12 and Adobe Shockwave® Player software help you create and publish compelling interactive games and eLearning courses for the web, iOS devices, Mac and Windows® desktops, DVDs, and CDs. Integrate virtually any major file format, including FLV, swf and native 3D content.
    No veo que sea compatible con Android.

  • How To Download Free Games & Application For IPhone 4 From Itunes & Store !

    Hi guys iam amrit from Nepal I have IPhone 4, I want to download free games & application for iPhone 4 from itunes or application store.Guys please tell me how to download free games & application for iPhone 4 without credit card or debit card.

    Log out of any iTunes account on iPhone then go to the app store. Find a free app and purchase it. Create a new account and select none for payment. Pretty simple
    http://support.apple.com/kb/ht2534

  • How to synchronize Creative Suite applications for consistent color?

    Wondering how to synchronize Creative Suite applications for consistent color? (On a Mac.)

    artificial "suites"
    I don't agree with that; some of these applications are very tightly integrated with a seamless cross-app workflow.
    Anyway: In itself, there's no particular reason to have the apps "synchronized". Requirements are different in the various apps, and my color settings are deliberately unsynchronized. But until you understand more about what the different color settings do, it's a simple safeguard against surprises.
    In Photoshop, working on RGB (or CMYK) raster image material, the all-important thing is to have color management policies set to "preserve embedded profiles". Any other setting is trouble waiting to happen. You may also want to work in a large space like ProPhoto to have maximum editing headroom.
    But as soon as you get into CMYK and/or vector territory with ID and Ai, you don't want that because it can lead to a number of other problems on press. For CMYK you'll want to ignore profiles and preserve numbers, then reassign the correct profile for output. Using ProPhoto for RGB vector is also totally pointless. Just mentioning this to put this into context.
    If you do want to synchronize, you do it in Bridge as station two said. But all it means is having the same settings in each app's color settings, and you can do that manually as well.

  • How to run java application without having java environment in  a machine

    can i run java application without having java environment(JVM) in a machine.I mean i dont have installed j2se or jdk in my machine.And i have an j2ee application running on another host which is built in swings.I want to access that application in my machine
    can any one help regarding my problem

    If you only need to access the program from one machine and you are running a Unix-like operating system (e.g., Linux, Solaris), you can use the remote display capabilities of X11. In this case you have to choose the host where the app will be displayed when you start it:
    $ DISPLAY=<hostname>:0.0
    $ export DISPLAY
    $ java ...
    If you want to be able to display it on both machines at the same time, or if you are using windows, then try something like VNC (http;//www.realvnc.com). Or if you are running windows and your version supports it, you can use windows remote desktop.

  • Access Java Proposals for a java source code programmatically

    Hi,
    Problem
    Programmatically get java proposals for a java source code (not byte code) via eclipse bundle
    Description
    I am developing one eclipse osgi bundle to correct java source code automatically. I am running osgi bundle inside eclipse itself [Version: Mars Release (4.5.0)]. I am able to get java project object and a class object inside it which I want to correct. Every time I try to collect java code proposals as I put one test file which can be corrected (like duplicate imports), I receive below error:
    Java code line
    JavaCorrectionProcessor.collectCorrections(context, new IProblemLocation[] { problem }, proposals);
    Error description
    !ENTRY org.eclipse.jdt.ui 4 2 2015-07-27 18:57:09.196
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
    !STACK 0
    java.lang.IllegalStateException: Workbench has not been created yet.
    at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:93)
    at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.install(ASTProvider.java:236)
    at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.<init>(ASTProvider.java:227)
    at org.eclipse.jdt.internal.ui.JavaPlugin.getASTProvider(JavaPlugin.java:741)
    at org.eclipse.jdt.ui.SharedASTProvider.getAST(SharedASTProvider.java:128)
    at org.eclipse.jdt.internal.ui.text.correction.AssistContext.getASTRoot(AssistContext.java:119)
    at org.eclipse.jdt.internal.ui.text.correction.LocalCorrectionsSubProcessor.addUnusedMemberProposal(LocalCorrectionsSubProcessor.java:669)
    at org.eclipse.jdt.internal.ui.text.correction.QuickFixProcessor.process(QuickFixProcessor.java:530)
    at org.eclipse.jdt.internal.ui.text.correction.QuickFixProcessor.getCorrections(QuickFixProcessor.java:316)
    at org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionProcessor$SafeCorrectionCollector.safeRun(JavaCorrectionProcessor.java:378)
    at org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionProcessor$SafeCorrectionProcessorAccess.run(JavaCorrectionProcessor.java:339)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionProcessor$SafeCorrectionProcessorAccess.process(JavaCorrectionProcessor.java:335)
    at org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionProcessor.collectCorrections(JavaCorrectionProcessor.java:468)

    Any code from org.eclipse.jdt.ui (or the non-API code in org.eclipse.jdt.internal.ui) is likely to require a running workbench. Only the code from org.eclipse.jdt.core is guaranteed to work headlessly.

  • How to deploy the custom java application for self regaistration in portal?

    hi,
    I have created a custom java application in NWDS for Self Registration of new users.I am working on EP 7.02 and the standard self registration application is a Web dynpro java application.
    How can i deploy my custom java application built as a par file in place of the Web dynpro java application?
    Thanks,

    Hi Amarys,
    If you have developed the PAR file in NWDS then you can deploy the PAR in the server with NWDS ( [Check Required Settings |NWDS 7.0 does not deploy PAR;) or in server directly (system administrator > support >> portal runtime >> administration console)
    Best Regards
    Arun Jaiswal

  • How to create a .exe file for a java application

    Hi, I want to create a .exe file for a java application I am developing so that I can schedule it to run at a particular time using Windows Scheduler on WinNT. Is there any way to accomplish this? Or is there any other way in which a Java application can be scheduled to run at a particular time on Windows everyday?

    Create a .bat file and run that. Just have, in the .bat file:
    java YourClassName Alternatively, you can use javaw YourClassName (without *.bat, just put it into Windows Scheduler like suggested above).
    using javaw won't pop up any window...

  • How to make installer of my java application for linux

    I want to make an installer for my java application, I am using Install any where trial version its create an installer but when i installed n execute it, it display that
    "unable to locate main class, class must be public n having a public static void main(....) LAX."
    while making the installer I specifically mention the main class.....
    I tried a lot but getting same error again n again,
    Any one has any idea, what went wrong or what should I do to make Installer by using any good tool.
    Thanks for every Thing.

    After making the installar using InstallAnywhere, when i run the installer it shows the following error....
    Unable to locate the application's 'main' class. The class 'wekna.gui.explorer.LoginScreen' must be public and have a 'public static void main(String[])' method. (LAX)
    Unable to Launch Java Application: Unable to locate the application's 'main' class. The class 'weka.gui.explorer.LoginScreen' must be public and have a 'public static void main(String[])' method. (LAX)
    my main class has syntax public static void main(...) because otherwise java will generate error,
    my application is running well with make file but I want to make an installer......

Maybe you are looking for