Doug Esser

Greenhorn
+ Follow
since Aug 03, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Doug Esser

Joanne, thank you. Writing to a text file does indeed work!

I don't understand the explanation, though. If I boot up at say 8:00 a.m. and my JAVA scheduler is set to display the GUI at 12:00 p.m., at which point I am still logged on, then why wouldn't it display the JFrame then?
15 years ago
I want to have a program run in the background of Windows NT and perform some functions at certain scheduled times during the day. From reading other posts I've settled on using the Java Service Wrapper from Tanuki Software.

To make sure I understand how this works, I wrote a simple program that uses Timer and TimerTask to display a message on a JFrame every 5 minutes.

The program works in JAVA. I also followed the directions on the Tanuki website and can get the program to work using the wrapper in console mode. I can even install and start the program as a windows service. However, once I start it in services mode nothing happens. No message ever displays.

Any idea what could be going on? Unfortunately there are no error messages to give clues, and when I check the services menu in the Applications folder of the Control Panel, everything looks good.
15 years ago
Holy cow, lots to go over. Thanks all!
15 years ago
Hi! I'm teaching myself java using the Head First Java 2nd Edition book. I typed in the SimpleGui1B example (see below) and got it to compile fine. However, when I run it I get a long list of exception errors. I include the first 8 or so below. I am using jdk1.6.0 on a Windows XP.

Thanks in advance!

Doug

<<<< code>>>




<<<< runtime error messages >>>>

C:\JavaFiles>java SimpleGui1B
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at SimpleGui1B.actionPerformed(SimpleGui1B.java:26)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.ActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
...etc... for 19 more errors.

[edit]Add code tags. CR[/edit]
[ August 03, 2008: Message edited by: Campbell Ritchie ]
15 years ago