PCGen 5.80 Problem

gregweller

First Post
Hi, all,

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(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 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.WindowsTableHeaderUI$XPDefaultRendere
r.getTableCellRendererComponent(Unknown Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(Unknown S
ource)
at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(Unknown Sou
rce)
at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(Unknown So
urce)
at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(Unknown So
urce)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.ViewportLayout.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.ScrollPaneLayout.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 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$BasicHorizontalLayoutManager.
preferredLayoutSize(Unknown Source)
at javax.swing.plaf.basic.BasicSplitPaneUI.getPreferredSize(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$BasicHorizontalLayoutManager.
getPreferredSizeOfComponent(Unknown Source)
at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.
getPreferredSizes(Unknown Source)
at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.
resetToPreferredSizes(Unknown Source)
at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.
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.
 

log in or register to remove this ad

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.
 


Remove ads

Top