By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,025 Members | 1,276 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,025 IT Pros & Developers. It's quick & easy.

java with db4o

oll3i
100+
P: 679
i need to write publisher subscriber application on openjms and use db4o but i dont know how do i add the references to db4o when i compile the app with javac ?
i added db4o-6.1-java5.jar to my classpath and it doesnt work
i get
D:\SYSTEM~2>javac Client.java
Client.java:7: package com.db4o does not exist
import com.db4o.Db4o;
^
Client.java:8: package com.db4o does not exist
import com.db4o.ObjectContainer;
^
Client.java:9: package com.db4o does not exist
import com.db4o.ObjectSet;
^
Client.java:127: cannot find symbol
symbol: class ObjectContainer
ObjectContainer db = Db4o.openFile("orde
rsClient.yap");
^
Client.java:127: cannot find symbol
symbol: variable Db4o
ObjectContainer db = Db4o.openFile("orde
rsClient.yap");
^
5 errors
Thank You
Jun 9 '07 #1
Share this Question
Share on Google+
7 Replies


Expert 10K+
P: 11,448
You either did not correctly add that .jar file to your classpath or that class doesn't
exist in the jar file you just mentioned. (you can check the jar with winzip).

kind regards,

Jos
Jun 9 '07 #2

oll3i
100+
P: 679
i restarted the computer and it compiled without errors but when i run the application form bat and when i send the message i get

at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.593 ERROR [ORB-Worker-2] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.593 ERROR [ORB-Worker-1] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.593 ERROR [ORB-Worker-2] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.593 ERROR [ORB-Worker-1] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.609 ERROR [ORB-Worker-2] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.609 ERROR [ORB-Worker-1] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.609 ERROR [ORB-Worker-2] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.609 ERROR [ORB-Worker-1] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.640 ERROR [ORB-Worker-2] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.656 ERROR [ORB-Worker-1] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.656 ERROR [ORB-Worker-2] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.656 ERROR [ORB-Worker-1] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.671 ERROR [ORB-Worker-2] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.671 ERROR [ORB-Worker-1] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)
null: 200
22:40:17.671 ERROR [ORB-Worker-2] - MessageListener threw exception
java.lang.NoClassDefFoundError: com/db4o/Db4o
at Producent.onMessage(Producent.java:125)
at org.exolab.jms.client.JmsMessageConsumer.onMessage (JmsMessageConsumer
.java:256)
at org.exolab.jms.client.JmsSession.onMessage(JmsSess ion.java:1009)
at org.exolab.jms.client.net.JmsSessionStubImpl.onMes sage(JmsSessionStub
Impl.java:478)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.exolab.jms.net.orb.DefaultORB$Handler.invoke(D efaultORB.java:572)

at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB .java:530)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown So
urce)
at java.lang.Thread.run(Thread.java:619)

is it db4o causing that ?
Jun 9 '07 #3

oll3i
100+
P: 679
why i get

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/db4o/
Db4o
at Producent$3.actionPerformed(producent.java:301)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:19
95)
at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.jav
a:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel
.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:242
)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonL
istener.java:236)
at java.awt.Component.processMouseEvent(Component.jav a:6038)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3260)
at java.awt.Component.processEvent(Component.java:580 3)
at java.awt.Container.processEvent(Container.java:205 8)
at java.awt.Component.dispatchEventImpl(Component.jav a:4410)
at java.awt.Container.dispatchEventImpl(Container.jav a:2116)
at java.awt.Component.dispatchEvent(Component.java:42 40)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4322
)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:3986)

at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:3916)
at java.awt.Container.dispatchEventImpl(Container.jav a:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429 )
at java.awt.Component.dispatchEvent(Component.java:42 40)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 599)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThre
ad.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:168)

at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:160)

at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:121)
after i click the button to display all orders from db4o file

Expand|Select|Wrap|Line Numbers
  1. display_orders_button.addActionListener( new ActionListener()  {
  2.     public void actionPerformed(ActionEvent e) {
  3.         OrderProducent op = new OrderProducent(null,null,0);
  4.         ObjectContainer db = Db4o.openFile("ordersProducer.yap");
  5.          ObjectSet result = db.get(op);
  6.         display_orders_history.setText("");
  7.          while(result.hasNext()){
  8.                         System.out.println(result.next()+"\n");
  9.           display_orders_history.append(result.next()+"\n"); 
  10.          }
  11. }});
  12.  
thank you
Jun 10 '07 #4

Expert 10K+
P: 11,448
i restarted the computer and it compiled without errors but when i run the application form bat and when i send the message i get

<lots of wallpaper snipped>

java.lang.NoClassDefFoundError: com/db4o/Db4o

is it db4o causing that ?
You can that again. If everything compiled fine but the jvm throws that in your
face, the classpath for compilation was correct while the classpath for your
jvm is still wrong, i.e. the classpath doesn't point to the .jar you need.

kind regards,

Jos
Jun 10 '07 #5

Expert 10K+
P: 11,448
This is the same error as you showed in your other thread: the classpath isn't
correctly set; it doesn't include that db4o jar.

kind regards,

Jos
Jun 10 '07 #6

10K+
P: 13,264
why i get

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/db4o/
Db4o
at Producent$3.actionPerformed(producent.java:301)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:19
95)
at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.jav
a:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel
.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:242
)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonL
istener.java:236)
at java.awt.Component.processMouseEvent(Component.jav a:6038)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3260)
at java.awt.Component.processEvent(Component.java:580 3)
at java.awt.Container.processEvent(Container.java:205 8)
at java.awt.Component.dispatchEventImpl(Component.jav a:4410)
at java.awt.Container.dispatchEventImpl(Container.jav a:2116)
at java.awt.Component.dispatchEvent(Component.java:42 40)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4322
)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:3986)

at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:3916)
at java.awt.Container.dispatchEventImpl(Container.jav a:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429 )
at java.awt.Component.dispatchEvent(Component.java:42 40)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 599)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThre
ad.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:168)

at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:160)

at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:121)
after i click the button to display all orders from db4o file

Expand|Select|Wrap|Line Numbers
  1. display_orders_button.addActionListener( new ActionListener() {
  2.     public void actionPerformed(ActionEvent e) {
  3.         OrderProducent op = new OrderProducent(null,null,0);
  4.         ObjectContainer db = Db4o.openFile("ordersProducer.yap");
  5.      ObjectSet result = db.get(op);
  6.         display_orders_history.setText("");
  7.          while(result.hasNext()){
  8. System.out.println(result.next()+"\n");
  9.          display_orders_history.append(result.next()+"\n"); 
  10.          }
  11. }});
  12.  
thank you
The Db4o class was not found during execution .
Jun 10 '07 #7

10K+
P: 13,264
This is the same error as you showed in your other thread: the classpath isn't
correctly set; it doesn't include that db4o jar.

kind regards,

Jos
Please do not double post.
Threads merged.
Jun 10 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.