Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / May 2006

Tip: Looking for answers? Try searching our database.

Not able to run program

Thread view: 
tgranath@gmail.com - 30 Apr 2006 18:05 GMT
Hi,

My computer run Windows XP, and I've set a Classpath that looks like
this:

C:\DJGPP/bin;C:\Program Files\Java\jdk1.5.0_06/bin

Is this correct? I can compile but not run the programs that I've
written. I get the errormessage
"Exception in thread main java lang NoClassDefFoundError:" Can someone
help me please.

Cheers,
Rhino - 30 Apr 2006 19:16 GMT
> Hi,
>
[quoted text clipped - 4 lines]
>
> Is this correct?

I don't like the look of those mixed slashes and backslashes. You should at
least be consistent in which you use. Fix that and try executing the class
again before you do anything else.

> I can compile but not run the programs that I've
> written. I get the errormessage
> "Exception in thread main java lang NoClassDefFoundError:" Can someone
> help me please.

That's a very common error message and can be caused by any number of
conditions. Roedy Green's site, http://mindprod.com, has an article listing
many of the possible causes. Just search on NoClassDefFoundError when you
get there.

If fixing the slashes and looking up the error on Roedy's site don't help
you solve your problem, try posting again but this time be sure to tell us
more about the placement of your source code and where the class file is
supposed to be generated as well as any package names you are using. It's
very possible that you are using a package name and then trying to execute
from the wrong directory.

--
Rhino
karthika - 01 May 2006 07:42 GMT
Hai Everybody
                   I am using jasper reports with xml parser.
                   While i running this program It displays an error
like

NESTED BY :
net.sf.jasperreports.engine.JRException: Attribute value
"$F{font_size}" of type NMTOKEN must be a name token.
       at
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:242)
       at
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)
       at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)
       at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)
       at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)
       at
net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:142)
       at Hello.main(Hello.java:19)

                    Can any one help me

                  Thanks in advance.
Rhino - 01 May 2006 15:20 GMT
> Hai Everybody
>                    I am using jasper reports with xml parser.
[quoted text clipped - 21 lines]
>
>                   Thanks in advance.

Since this is a new problem that is unrelated to the problem in this thread,
you should start a new thread for it.

--
Rhino
karthika - 03 May 2006 08:19 GMT
Hai Rhino,

                    Thanks for your suggestion.
                    I another problem in running iReport.When i run
iReport.sh it shows an error as

Exception in thread "main" java.lang.NullPointerException
       at
com.digitprop.tonic.SplitPaneDivider.oneTouchExpandableChanged(SplitPaneDivider.java:70)
       at
javax.swing.plaf.basic.BasicSplitPaneDivider.setBasicSplitPaneUI(BasicSplitPaneDivider.java:172)
       at
javax.swing.plaf.basic.BasicSplitPaneDivider.<init>(BasicSplitPaneDivider.java:132)
       at
com.digitprop.tonic.SplitPaneDivider.<init>(SplitPaneDivider.java:56)
       at
com.digitprop.tonic.SplitPaneUI.createDefaultDivider(SplitPaneUI.java:57)
       at
javax.swing.plaf.basic.BasicSplitPaneUI.installDefaults(BasicSplitPaneUI.java:316)
       at
javax.swing.plaf.basic.BasicSplitPaneUI.installUI(BasicSplitPaneUI.java:300)
       at
com.digitprop.tonic.SplitPaneUI.installUI(SplitPaneUI.java:64)
       at javax.swing.JComponent.setUI(JComponent.java:652)
       at javax.swing.JSplitPane.setUI(JSplitPane.java:350)
       at javax.swing.JSplitPane.updateUI(JSplitPane.java:378)
       at
it.businesslogic.ireport.gui.docking.DockingContainer.recreateAll(DockingContainer.java:517)
       at
it.businesslogic.ireport.gui.docking.DockingContainer.insertPanel(DockingContainer.java:247)
       at
it.businesslogic.ireport.gui.docking.DockingContainer.insertPanel(DockingContainer.java:256)
       at
it.businesslogic.ireport.gui.docking.DockingContainer.addPanel(DockingContainer.java:124)
       at
it.businesslogic.ireport.gui.MainFrame.<init>(MainFrame.java:528)
       at
it.businesslogic.ireport.gui.MainFrame.main(MainFrame.java:6987)

And it strucks IReport
Please help me
Thanks
Thomas Weidenfeller - 02 May 2006 09:15 GMT
> My computer run Windows XP, and I've set a Classpath that looks like
> this:
>
> C:\DJGPP/bin;C:\Program Files\Java\jdk1.5.0_06/bin

In the CLASSPATH? bin-directories in the classpath? You are mixing up
the path and the classpath.

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

/Thomas
Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.