From: SourceForge.net <no...@so...> - 2005-09-27 22:30:30
|
Release Feature Requests item #1259454, was opened at 2005-08-14 21:45 Message generated for change (Comment added) made by ericbeaudoin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=689516&aid=1259454&group_id=25576 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Paul W. King (kingpaul) Assigned to: Eric Beaudoin (ericbeaudoin) Summary: [5.8.0] pcgen.options.looknFeel Initial Comment: From http://www.enworld.org/showthread.php?t=144078 I'm having a problem with getting the latest stable version of PCGen to run. I checked the PCGen group at Source Forge, and it looks like several other people were having the same problem right when 5.8 was released, but there was never any posts showing a resolution, so I thought I'd try here. What happens is I run the pcgen batch file, the logo briefly comes on the screen and I get the directory selelection box. No matter which directory I choose, I then get this (rather florid) error message: Bad main entry point in pcgen.gui.pcGenGUI java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source) at java.lang.reflect.Method.invoke(Unknown Source) at pcgen.core.Main.main(Main.java:76) Caused by: java.lang.NullPointerException at javax.swing.border.EmptyBorder.<init>(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsTableHeader UI$XPDefaultRendere r.getTableCellRendererComponent(Unknown Source) at javax.swing.plaf.basic.BasicTableHeaderUI.getHeade rRenderer(Unknown S ource) at javax.swing.plaf.basic.BasicTableHeaderUI.getHeade rHeight(Unknown Sou rce) at javax.swing.plaf.basic.BasicTableHeaderUI.createHe aderSize(Unknown So urce) at javax.swing.plaf.basic.BasicTableHeaderUI.getPrefe rredSize(Unknown So urce) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.ViewportLayout.preferredLayoutSize(Unk nown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.ScrollPaneLayout.preferredLayoutSize(U nknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.GridBagLayout.GetLayoutInfo(Unknown Source) at java.awt.GridBagLayout.getLayoutInfo(Unknown Source) at java.awt.GridBagLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHoriz ontalLayoutManager. preferredLayoutSize(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI.getPreferr edSize(Unknown Sour ce) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHoriz ontalLayoutManager. getPreferredSizeOfComponent(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHoriz ontalLayoutManager. getPreferredSizes(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHoriz ontalLayoutManager. resetToPreferredSizes(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHoriz ontalLayoutManager. layoutContainer(Unknown Source) at java.awt.Container.layout(Unknown Source) at java.awt.Container.doLayout(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validate(Unknown Source) at java.awt.Window.show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible(Unknown Source) at pcgen.gui.pcGenGUI.<init>(pcGenGUI.java:225) at pcgen.gui.pcGenGUI.main(pcGenGUI.java:398) I'm using a brand new install of Windows XP SP2 Home Edition and Java 1.05.0_04. The machine is a relatively new Pentium 4 with a gig of RAM. Any help would be greatly appreciated. --- I found out what the problem was. The funny thing is that I spent days looking for an answer, but it must have taken the magical powers of just posting here to find the the answer. It looks like the Windows look and feel setting is causing the problem. PCGen tries to use the WindowsXP look and feel as the default and there must be a problem there. I found a post in the Yahoo PCgen group (which wasn't in the Sourceforge Forum) that said to try and add this line to the options.ini file: pcgen.options.looknFeel=1 The problem was that the set up was crapping out before it even created an options.ini file. So I created a blank text file called options.ini saved it in the root PCGen directory, and added that line. Voila! It ran. I thought I'd just leave this thread open since I saw that a number of people had already viewed it, and maybe this will help someone else with the same problem. === Paul W. King TM SB, OGL/PL Chimp, Data Gibbon, BoD ---------------------------------------------------------------------- >Comment By: Eric Beaudoin (ericbeaudoin) Date: 2005-09-27 18:30 Message: Logged In: YES user_id=324612 The options.ini file is generated by PCGen the first time it is run and trying to generate it from NIS would be Hell(tm) if it is possible at all. I'll look into the NIS new version but I would not get my hopes up. That being said, I test every installer in an empty directory and I use Windows XP Home SP2 with Java 5. I never encountered the problem described above. ---------------------------------------------------------------------- Comment By: Martijn Verburg (karianna) Date: 2005-09-27 08:22 Message: Logged In: YES user_id=252169 Release monkey, can we add a options.ini file with that setting for windows XP users? - K ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=689516&aid=1259454&group_id=25576 |