Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Swing doesn't work

843806Apr 17 2008 — edited Apr 18 2008
I recently got involved with java and now i am trying to learn about swing.
But eventhough i tried a simple program
import javax.swing.*;

public final class SimpleFrame extends JFrame {
	private SimpleFrame() {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		getContentPane().add(new JLabel("Hello, World!"));
		pack();
		setLocationRelativeTo(null);
	}

	public static void main(String[] args) {
		new SimpleFrame().setVisible(true);
	}
}
JCreator which i use is throwing me this exception:
Exception in thread "main" java.lang.ExceptionInInitializerError
at javax.swing.JPanel.updateUI(JPanel.java:109)
at javax.swing.JPanel.<init>(JPanel.java:69)
at javax.swing.JPanel.<init>(JPanel.java:92)
at javax.swing.JPanel.<init>(JPanel.java:100)
at javax.swing.JRootPane.createGlassPane(JRootPane.java:527)
at javax.swing.JRootPane.<init>(JRootPane.java:347)
at javax.swing.JFrame.createRootPane(JFrame.java:260)
at javax.swing.JFrame.frameInit(JFrame.java:241)
at javax.swing.JFrame.<init>(JFrame.java:164)
at SimpleFrame.<init>(SimpleFrame.java:4)
at SimpleFrame.main(SimpleFrame.java:12)
Caused by: java.lang.IllegalArgumentException: 682464 incompatible with Text-specific LCD contrast key
at java.awt.RenderingHints.put(RenderingHints.java:1057)
at sun.awt.windows.WDesktopProperties.getDesktopAAHints(WDesktopProperties.java:338)
at sun.awt.windows.WToolkit.getDesktopAAHints(WToolkit.java:960)
at sun.awt.SunToolkit.getDesktopFontHints(SunToolkit.java:1849)
at sun.awt.windows.WDesktopProperties.setDesktopAAHints(WDesktopProperties.java:281)
at sun.awt.windows.WToolkit.initializeDesktopProperties(WToolkit.java:948)
at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1734)
at javax.swing.UIManager.<clinit>(UIManager.java:384)
... 11 more


When i try the same program in my friends pc it works just fine. What is the problem with my pc?

Comments

Arpit Jain -Oracle
Answer

Hi,

Sample DB installer are no longer available on Oracle eDelivery Cloud. For getting the sample DB, you have to download patchset 5 of Siebel 15 from "Patches & Updates" section of My Oracle Support portal (Patch Id: 22081062) and extract the network image using SNIC as usual. You might notice that SNIC now offers ORACLE XE Local and Sample Database.

Also if you select the ORACLE XE options while creating network image and inspect the network image folders, you will miss separate installers. This is because the Sample Database installer for Oracle XE is included with the Siebel (Mobile/Developer) Web Client and the Local Database installer is included with Siebel Tools.

So when you run the Siebel Web Client installer for the Patchset installation, you can choose to include the sample database, which is silently installed. Please try installing web client and let us know if it gives you the option to choose to include sample database.

For more details, please refer bookshelf:

http://docs.oracle.com/cd/E63029_01/books/SiebInstWIN/SiebInstCOM_Image2.html#wp1995894http://docs.oracle.com/cd/E63029_01/books/SiebInstWIN/SiebInstCOM_Image2.html#wp1995894

Hope this information helps.

Thanks & Regards,

Arpit Jain

Marked as Answer by 3070203 · Sep 27 2020
3056815

Does this mean now "Generate New Database" job will always fail because it depends on SQL Anywhere Engine which is no longer part of the installer?

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 16 2008
Added on Apr 17 2008
6 comments
1,267 views