This is a migrated thread and some comments may be shown as answers.

Compile Java Code using jdk 7.0

1 Answer 67 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ninad
Top achievements
Rank 1
Ninad asked on 22 Jul 2013, 02:41 PM
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.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 22 Jul 2013, 02:51 PM
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.
Tags
General Discussion
Asked by
Ninad
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or