Compile Java Code using jdk 7.0

2 posts, 0 answers
  1. Ninad
    Ninad avatar
    1 posts
    Member since:
    Jul 2013

    Posted 22 Jul 2013 Link to this post

    Hi,

    I have created  a "Cross platform device application (blank)" type project in ICENIUM GRAPHITE, for an phonegap-android-java application.
    It has some Java classes in which some package/classes are imported  like "java.beans.Beans" and "java.awt.*"
    I am using JDK7.0 and JAVA_HOME, JRE_HOME, and PATH environment variables are set.
    But I am getting following errors.

    cannot find symbol
        [javac] symbol  : class Beans
        [javac] location: package java.beans
        [javac] import java.beans.Beans;
                    ^

    package java.awt does not exist
        [javac] import java.awt.*;

    How can I compile it successfully?
    Or Am I making any basic mistake in configuring the project ?
    Is Icenium using any new way to compile the java source ?

    Thanks in Advance.

  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 22 Jul 2013 Link to this post

    Hello Ninad,

    Be aware that Java API and Android API are not one and the same thing, so your java code should be written with Android in mind. More info on JavaBeans in this line of thoughts:
    • http://meteatamel.wordpress.com/2010/09/28/android-api-and-java-beans-package-2/
    • http://migcalendar.com/forums/viewtopic.php?f=8&t=3667

    Regards,
    Steve
    Telerik

    Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top