Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
Absent Member.
Absent Member.
863 views

automatic cronjob with java application fails!

Hello,

i've a problem to automatically a java script once a day on OES server! The grafical interface is needed for this script. If i run it manually, it runs successfully! I've found the application under https://www.novell.com/coolsolutions/tools/14772.html. The function is a password expiration notification for my edirectory users!!! Very cool!

If i run it from the linux console, this error occurs!

Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:174)
at java.awt.Window.<init>(Window.java:443)
at java.awt.Frame.<init>(Frame.java:414)
at java.awt.Frame.<init>(Frame.java:379)
at javax.swing.JFrame.<init>(JFrame.java:169)
at identity.ExpirationNotificationFrame.<init>(ExpirationNotificationFrame.java:32)
at identity.ExpirationNotification.<init>(ExpirationNotification.java:64)
at identity.ExpirationNotification.main(ExpirationNotification.java:99)

This is the script!
java -classpath ./lib/ExpirationNotification.jar:./lib/mail.jar:./lib/jsse.jar:./lib/activation.jar identity.ExpirationNotification

Who can help me to get this script working?

Many thanks,
Norbert
Labels (2)
0 Likes
2 Replies
Knowledge Partner Knowledge Partner
Knowledge Partner

NSuttner;2398444 wrote:
Hello,

i've a problem to automatically a java script once a day on OES server! The grafical interface is needed for this script. If i run it manually, it runs successfully! I've found the application under https://www.novell.com/coolsolutions/tools/14772.html. The function is a password expiration notification for my edirectory users!!! Very cool!

If i run it from the linux console, this error occurs!

Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:174)
at java.awt.Window.<init>(Window.java:443)
at java.awt.Frame.<init>(Frame.java:414)
at java.awt.Frame.<init>(Frame.java:379)
at javax.swing.JFrame.<init>(JFrame.java:169)
at identity.ExpirationNotificationFrame.<init>(ExpirationNotificationFrame.java:32)
at identity.ExpirationNotification.<init>(ExpirationNotification.java:64)
at identity.ExpirationNotification.main(ExpirationNotification.java:99)

This is the script!
java -classpath ./lib/ExpirationNotification.jar:./lib/mail.jar:./lib/jsse.jar:./lib/activation.jar identity.ExpirationNotification

Who can help me to get this script working?

Many thanks,
Norbert


Wild guess since I never used this app but did you change <DisplayGUI>yes</DisplayGUI> to <DisplayGUI>no</DisplayGUI> in the config xml?

Thomas
0 Likes
Absent Member.
Absent Member.

Hi Thomas,

oh my god, so easy, that's it! I'm so stupid!!! It's good to read the discription first!

Regards,
Norbert
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.