Simon Su - 2011-08-18

hello,

I am pretty green in java stuff and I would like to use your opencloud jar in my java program to use your tag cloud libraries. your samples are web based. Is the a none web base (html related)  example that I can use. I would like to do something similar to your example 6 where given a text file input (either from a file or a text box input in html) but not running  them through a web server but  a stand alone java program.

I tried with the following code from your documentation

import opencloud.*;

class myCloudSample
{

  public static void main() {

    Cloud cloud = new Cloud();  // create cloud
    cloud.setMaxWeight(38.0);   // max font size
    Tag tag = new Tag("Google", "http://www.google.com");   // creates a tag
    cloud.addTag(tag);                                      // adds it to the cloud
   
  }

}

but I am getting the following compilation error even when your opencloud.jar file path is added to the CLASSPATH environment variable.

D:\project\tagcloud\test>javac opencloudtest.java
opencloudtest.java:2: package opencloud does not exist
import opencloud.*;
^
opencloudtest.java:9: cannot find symbol
symbol  : class Cloud
location: class myCloudSample
    Cloud cloud = new Cloud();  // create cloud
    ^
opencloudtest.java:9: cannot find symbol
symbol  : class Cloud
location: class myCloudSample
    Cloud cloud = new Cloud();  // create cloud
                      ^
opencloudtest.java:11: cannot find symbol
symbol  : class Tag
location: class myCloudSample
    Tag tag = new Tag("Google", "http://www.google.com");   // creates a tag
    ^
opencloudtest.java:11: cannot find symbol
symbol  : class Tag
location: class myCloudSample
    Tag tag = new Tag("Google", "http://www.google.com");   // creates a tag
                  ^
5 errors

any help is much appreciated.

thanks
-simon