Demos

103 views
Skip to first unread message

Junel Mata

unread,
Feb 5, 2015, 9:57:57 PM2/5/15
to codenameone...@googlegroups.com
HI,

I checked out some new demos(DrSbaitso,Flickr,ChartsDemo,etc..) from http://codenameone.googlecode.com/svn/trunk/codenameone-read-only and tried to test them on my netbeans but i get some errors upon loading the project. some classes cant find library imports like:
  • import com.codename1.ui.Toolbar;
  • import com.codename1.ui.events.ScrollListener;
  • import com.codename1.charts.ChartComponent;
  • import com.codename1.charts.models.XYMultipleSeriesDataset;
  • import com.codename1.charts.models.XYSeries;
  • import com.codename1.charts.renderers.XYMultipleSeriesRenderer;
  • import com.codename1.charts.renderers.XYSeriesRenderer;
  • import com.codename1.charts.views.LineChart;
  • import com.codename1.charts.views.PointStyle;
In Flickr demo, I get errors here from line 99 - 102.
cats.getContentPane().addScrollListener(bar);
cats.setToolBar(bar);
addCommandsToToolbar(bar);
bar.addCommandToRightBar(new Command("", res.getImage("synch.png")) {

Can someone help me about this?

Shai Almog

unread,
Feb 6, 2015, 12:12:59 AM2/6/15
to codenameone...@googlegroups.com
Hi,
we don't update the libraries in SVN to avoid filling it up with binaries. When our build script packages the demos into a zip it updates all the jars to "just work" but in SVN they don't have these libs.

To fix it Just create a new project and the use the "Update Client Libraries"  in the preferences (not Update Libs!).
Then copy the libs directory and the JavaSE.jar file to the same place in the demos directory.

Or just update them to use the source which is what we do: http://www.codenameone.com/blog/use-the-source

Junel Mata

unread,
Feb 6, 2015, 1:52:20 AM2/6/15
to codenameone...@googlegroups.com
Did you mean "preferences" the project properties? I created a new project and I tried clicking the Update Project libs under the general properties tab and the libraries were updated but the errors were still there. I'm having a hard time trying to do this  http://www.codenameone.com/blog/use-the-source I can't find "Update Client Libraries" in my netbeans cn1 project.

Junel Mata

unread,
Feb 6, 2015, 2:07:58 AM2/6/15
to codenameone...@googlegroups.com
I clicked this one.



On Friday, February 6, 2015 at 1:12:59 PM UTC+8, Shai Almog wrote:

Shai Almog

unread,
Feb 6, 2015, 11:25:24 AM2/6/15
to codenameone...@googlegroups.com
That's the right one. Just copy the files into the demo project and make sure the classpath is set correctly (in SVN they point to the parent directory instead).

Junel Mata

unread,
Feb 8, 2015, 8:26:28 PM2/8/15
to codenameone...@googlegroups.com
whenever I compile the "Dr Sbaitso", this error occurs:
Updating property file: /home/jmata/CodenameOne/NBPlugin/CodenameOnePlugin/src/version.properties
Creating new property file: /home/jmata/CodenameOne/BuildClient/src/version.properties
/home/jmata/NetBeansProjects/Demos/DrSbaitso/nbproject/build-impl.xml:899: The following error occurred while executing this line:
/home/jmata/NetBeansProjects/Demos/DrSbaitso/nbproject/build-impl.xml:1422: The following error occurred while executing this line:
/home/jmata/NetBeansProjects/Ports/JavaSE/nbproject/build-impl.xml:899: The following error occurred while executing this line:
/home/jmata/NetBeansProjects/Ports/JavaSE/nbproject/build-impl.xml:1422: The following error occurred while executing this line:
/home/jmata/NetBeansProjects/CodenameOne/build.xml:123: java.io.FileNotFoundException: /home/jmata/CodenameOne/BuildClient/src/version.properties (No such file or directory)
BUILD FAILED (total time: 0 seconds)

What should I do? all my libraries are updated.

Shai Almog

unread,
Feb 9, 2015, 1:41:28 AM2/9/15
to codenameone...@googlegroups.com
This is unrelated to Dr. Sbaitso. Its related to compiling the sources of Codename One itself. I'm assuming you changed its classpath.

Junel Mata

unread,
Feb 9, 2015, 2:17:28 AM2/9/15
to codenameone...@googlegroups.com
I never did any changes on the demo aside from the updated libraries. how can I fix this?where can I set the correct classpath in netbeans?

On Mon, Feb 9, 2015 at 2:41 PM, Shai Almog <shai....@gmail.com> wrote:
This is unrelated to Dr. Sbaitso. Its related to compiling the sources of Codename One itself. I'm assuming you changed its classpath.

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/YXklvSndnHI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/a870b363-d67a-4828-8193-e240d6623a8a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Shai Almog

unread,
Feb 9, 2015, 1:00:56 PM2/9/15
to codenameone...@googlegroups.com
As far as I can tell it should be correct in SVN. Just create a new project and see the classpath settings in the new project match those of the demo.
Reply all
Reply to author
Forward
0 new messages