Automating program

Hi! I need help.I have to create a java program that initialise a crystal object, run it and save the report to some where.I should then schedule the java program as a service in windows admin setup to run every day.
[237 byte] By [Gerttya] at [2007-10-1 2:34:27]
# 1

not sure exactly what you want..your post is very vague

crystal object? what is that?

- initialize the report

only you know how to do that..you don't explain what a Crystal object is.

- run it

again, you're the only one who know about the business process of running the Crystal object

-save it

how do you want to save the object? by XML, object? text?

- schedule it to run everyday

look at the Timer and Timetask class, using a timer, you can specified when the program (init, run, save) should perform its task.

unless you give a little more detail, you're not going to get much help from here.

tnguyen1973a at 2007-7-8 11:42:12 > top of Java-index,Other Topics,Algorithms...
# 2

> I have to create a java program that initialise a

> crystal object,

There are essential 3 method of initialising an object.

1) Static initialisation.

2) Initiasation via the objects constructor.

3) Using a setter function.

e.g.

public class Crystal {

private static String string = "Value" ; // method 1

private int integer = 0 ;

public Crystal() {

}

// method 2

public Crystal(int value) {

this.integer = value ;

}

// method 3

public void setInteger(int value) {

this.integer = value ;

}

public static void main(String[] args) {

Crystal crystal = new Crystal() ;

crystal.setInteger( 99 ) ;

Crystal crystal_2 = new Crystal( 99 ) ;

}

}

This following tutorial will answer your remaining questions.

http://java.sun.com/learning/new2java/index.html

MartinS.a at 2007-7-8 11:42:12 > top of Java-index,Other Topics,Algorithms...
# 3
I think the OP is talking about "Crystal Reports" the popular report generating software.
RadcliffePikea at 2007-7-8 11:42:12 > top of Java-index,Other Topics,Algorithms...
# 4
ok..i never worked with it before....i thought Crystal object was something that he/she cames up with
tnguyen1973a at 2007-7-8 11:42:12 > top of Java-index,Other Topics,Algorithms...