| Author |
Message |
BHR
Joined: Nov 25, 2014 Posts: 20
|
Posted: Jun 12, 2015 2:05 PM Post subject: how to start stop an element??? is there any difference? |
|
hi dear all I worked on media player as custom element that loaded object of that in init function of custom element
public void init(ExternalElementContext context) throws java.io.IOException { this.context = context; try { VH=new VideoHandler(); VH.setVisible(true); } catch(Exception exc) { // //JOptionPane.showMessageDialog(VH,exc.toString()); } }
it is worked nicely in this form and conditions affect video and audio nicely how ever I need to show media player just when I call start function of custom element when I transfer same code from init to start function it always stuck and not working properly why this is occurred? I just move same code from init function to start function as below
@Override public void start() throws java.io.IOException {
//JOptionPane.showMessageDialog(VH,"12"); scalarBuffer = new int[65536]; // allocate buffer large enough to keep incoming data floatBuffer = new float[65536]; // allocate buffer large enough to keep incoming data doubleBuffer = new double[65536]; // allocate buffer large enough to keep incoming data //JOptionPane.showMessageDialog(null,"External element started");
try {
VH = VideoHandler.getInstance(); VH.setVisible(true); } catch (Exception exc) { // //JOptionPane.showMessageDialog(VH,exc.toString()); }
} by this transferring same code the signal replay stopped all design not working why???? |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jun 12, 2015 4:03 PM Post subject: |
|
I can't really tell why this doesn't work in the start() method, it should, but I don't know about your VideoHandler.
The difference between init() and start() is that the former is invoked only once, and the latter each time the element is started. Maybe your media class doesn't like to create multiple instances?
One idea would be use init() method to create this object (since this works for your) and hide it.
Then in the start method only show (java setVisible()) the component. |
|
 |
BHR
Joined: Nov 25, 2014 Posts: 20
|
Posted: Jun 13, 2015 8:21 AM Post subject: trace result |
|
Dear jarek to tracing the events I removd inside of both functions init and start and placed a joptionpane.showmessagedialog in all functions of interface classes that print a different number for every function as example 10 for init , 12 for start and 13 for stop the result is strang for me: calling start function provide : 12 ......13 first call 12 13 second call 12 13 third call 12 .... 13 12 13 12 13 12 ...13 and so on after start calling immediately or after some function circulation, stop called automatically what is the matter?? |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jun 13, 2015 4:20 PM Post subject: |
|
Do you see any errors or warnings on the console?
BioEra stops the design if there is a problem with one of the element processing. But when that happens, there is a message on console about it. So start BioEra with console and check if you see any. |
|
 |
BHR
Joined: Nov 25, 2014 Posts: 20
|
Posted: Jun 13, 2015 7:07 PM Post subject: console output |
|
hi this is the output:
***************** BioEra 3.168 is started ***************** This BioEra version can run only with Vilistus device Loading design: C:\Program Files (x86)\Biosees\design\1 EEG - General3.bpd on Windows Connection problem: Can't connect two interface pipes Nested design 'NestedFile: design\libs\online report.bpd' load problem: Nested design error: online report.bpd Warning: removed inactive connection: Pipe: lodrprt(6)->I(0), (SrcElem=692457->DestElem=751644, inactive) now 12 Connection problem: Incompatible pipes: can't connect pipe [name=sex,id=1103475,type=OBJECT,addr=z@e9e1a0 type Type: OBJECT in elem:Cli ent Information(687753) to: [name=EI,id=1102514,type=EVENT,addr=w@2f7d55 type Type: EVENT in elem:XDF(688019) Connection problem: Incompatible pipes: can't connect pipe [name=name,id=1103473,type=OBJECT,addr=z@193618e type Type: OBJECT in elem:C lient Information(687753) to: [name=EI,id=1102514,type=EVENT,addr=w@2f7d55 type Type: EVENT in elem:XDF(688019) Connection problem: Incompatible pipes: can't connect pipe [name=wrtpath,id=1103471,type=OBJECT,addr=z@15d70b8 type Type: OBJECT in ele m:Client Information(687753) to: [name=EI,id=1102514,type=EVENT,addr=w@2f7d55 type Type: EVENT in elem:XDF(688019) Connection problem: Incompatible pipes: can't connect pipe [name=readpath,id=1103469,type=OBJECT,addr=z@15a6bd5 type Type: OBJECT in el em:Client Information(687753) to: [name=EI,id=1102568,type=EVENT,addr=w@1cd6d16 type Type: EVENT in elem:XDF-Reader(688012) Connection problem: Incompatible pipes: can't connect pipe [name=On/Off,id=1103947,type=LOGICAL,addr=v@f0deb5 type Type: LOGICAL in ele m:<= 0.0(725809) to: [name=In,id=1103956,type=OBJECT,addr=y@1ad4beb type Type: OBJECT in elem:Set:\nColors/Trace color(725836) Connection problem: Incompatible pipes: can't connect pipe [name=Value,id=1103781,type=SCALAR,addr=j@533643 type Type: SCALAR in elem:T xt-S(845486) to: [name=EI,id=1101929,type=EVENT,addr=w@10f91e8 type Type: EVENT in elem:H-Artefact(730518) Sorting error, element not found: band stop(703829) connected to the input of Filter2(709778) Sorting error, element not found: threshold type(943) connected to the input of = 0.0(749065) Sorting error, element not found: feedback type(946) connected to the input of >= 0.0(749131) Sorting error, element not found: Checkbox2(1805) connected to the input of or2(771241) Sorting error, element not found: Min value(941) connected to the input of Set:\nMin frequency [Hz](709805) Sorting error, element not found: Max value(940) connected to the input of Set:\nMax frequency [Hz](709794) Sorting error, element not found: percent(942) connected to the input of Set:\nTime ratio [0-100%](749169) Sorting error, element not found: band stop(703829) connected to the input of Filter1(708005) Sorting error, element not found: Button(248) connected to the input of Action: \nChart hide(704710) Reinit problem in element Session online report(692457): n: Design not loaded, see console for more error details Warning: Element not connected: Set:\nAmplitude max(877103) Warning: Element not connected: Set:\nAmplitude max(877103) Sorting error, element not found: Pause(2676) connected to the input of Live Data(2394) Warning: Element not connected: Set:\nAmplitude max(877103) Warning: element Session online report(692457) not started, because it wasn't initialized correctly, true true Warning: element Set:\nAmplitude max(877103) not started, because it wasn't initialized correctly, true true chart not yet initialized Warning: Elem AutoSwitch2(746912) Element-Set 'Main' already started Warning: Elem autoSwitch3(751375) Element-Set 'Main' already started Warning: Elem Custom element(773227) Element-Set 'Nested (Nested(1101747))' already started Warning: Buffer overflow 1 pipe: 'Time' element: 'RateNormalizerSync(773219) (Element-Set 'Nested (Nested(1101747))')' lost 128 values Warning: Buffer overflow 2 pipe: 'Time' element: 'RateNormalizerSync(773219) (Element-Set 'Nested (Nested(1101747))')' lost 128 values Warning: Buffer overflow 3 pipe: 'Time' element: 'RateNormalizerSync(773219) (Element-Set 'Nested (Nested(1101747))')' lost 128 values Warning: Buffer overflow 4 pipe: 'Time' element: 'RateNormalizerSync(773219) (Element-Set 'Nested (Nested(1101747))')' lost 128 values Warning: Buffer overflow 5 pipe: 'Time' element: 'RateNormalizerSync(773219) (Element-Set 'Nested (Nested(1101747))')' lost 128 values Warning: Buffer overflow 6 pipe: 'Time' element: 'RateNormalizerSync(773219) (Element-Set 'Nested (Nested(1101747))')' lost 128 values Warning: Buffer overflow 7 pipe: 'Time' element: 'RateNormalizerSync(773219) (Element-Set 'Nested (Nested(1101747))')' lost 128 values Warning: Buffer overflow 8 pipe: 'Time' element: 'RateNormalizerSync(773219) (Element-Set 'Nested (Nested(1101747))')' lost 128 values Warning: Buffer overflow 9 pipe: 'Time' element: 'RateNormalizerSync(773219) (Element-Set 'Nested (Nested(1101747))')' lost 128 values Warning: Buffer overflow 10 pipe: 'Time' element: 'RateNormalizerSync(773219) (Element-Set 'Nested (Nested(1101747))')' lost 128 values
Warning: Buffer overflow 11 pipe: 'Time' element: 'RateNormalizerSync(773219) (Element-Set 'Nested (Nested(1101747))')' lost 128 values
Warning: Buffer overflow 12 pipe: 'Time' element: 'RateNormalizerSync(773219) (Element-Set 'Nested (Nested(1101747))')' lost 128 values |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jun 15, 2015 12:59 AM Post subject: |
|
I don't see anything which would indicate BioEra stopped because of an error.
So I am not sure why the CustomElement would be automatically stopping (unless there is something in your code which does that).
If you send me a design snippet (most simplified version of your design what presents this behavior), I will investigate here. |
|
 |
BHR
Joined: Nov 25, 2014 Posts: 20
|
Posted: Jun 15, 2015 8:40 PM Post subject: |
|
| your email address? |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jun 17, 2015 4:30 AM Post subject: |
|
I couldn't download your compressed data file (needed for your snippet), so I created my own snippet which demonstrates, that BioEra doesn't stop by itself.
You can download the snippet source file here (it is a slightly modified version of the main example):
http://proatech.com/design/custom_element_test/Test.java
Or download this (and copy into 'impl' folder if you just want to execute it):
http://proatech.com/design/custom_element_test/Test.class
This example prints info on the console when the element is started, when it processes, and stopped (when I stop the design), I attach it below.
So it looks like something in your code is causing problems.
Jarek
Loading design: C:\Program Files (x86)\BioEraPro\design\CustomElementTest.bpd on Windows External element reinited External element started Processing input data, 0 seconds since the start Processing input data, 1 seconds since the start Processing input data, 2 seconds since the start Processing input data, 3 seconds since the start External element stopped |
|
 |
BHR
Joined: Nov 25, 2014 Posts: 20
|
Posted: Jun 17, 2015 7:06 AM Post subject: |
|
the new uploaded link sent to your email you can download it easily!
my code running in init without stopping
but when placing its code into start function it reports error continuously
however I sent you a class codes that implemented the interface handles. |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jun 17, 2015 5:24 PM Post subject: |
|
Since BioEra seems to behave correctly in this case (initing, starting and stopping), so I don't think I should debug your code.
You know it the best, you understand how it works, you are the most qualified person to fix it!
One suggestion would be to make sure your code does NOT throw any exceptions, especially errors. Make sure everything you do is inside try/catch block:
try { // Your code } catch (Throwable ex) { ex.printStackTrace(); } |
|
 |
BHR
Joined: Nov 25, 2014 Posts: 20
|
Posted: Jun 18, 2015 9:56 AM Post subject: |
|
Ok thanks jarek no problem!! just one question: when selecting "no feedback" option from dropdown list which one function of interface called? |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jun 18, 2015 6:27 PM Post subject: |
|
| I don't know what drop down list you are talking about. If I remember correctly, there used to be such option in the old examples, but not any more. |
|
 |
BHR
Joined: Nov 25, 2014 Posts: 20
|
Posted: Jun 19, 2015 4:00 PM Post subject: |
|
when the code compiled by netbeans IDE 8.0.1 there is no exception and there is no error but when I compiled it by bioera(start_console) reports some "java.lang.NullPointerException". why?
***************** BioEra 3.168 is started ***************** This BioEra version can run only with Vilistus device Loading design: C:\Program Files (x86)\Biosees\design\1 EEG - General3.bpd on Windows Connection problem: Can't connect two interface pipes Nested design 'NestedFile: design\libs\online report.bpd' load problem: Nested design error: online report.bpd Warning: removed inactive connection: Pipe: lodrprt(6)->I(0), (SrcElem=692457->DestElem=751644, inactive) now 12 Connection problem: Incompatible pipes: can't connect pipe [name=sex,id=1103475,type=OBJECT,addr=z@1b2f47 type Type: OBJECT in elem:Cli ent Information(687753) to: [name=EI,id=1102514,type=EVENT,addr=w@17d7a20 type Type: EVENT in elem:XDF(688019) Connection problem: Incompatible pipes: can't connect pipe [name=name,id=1103473,type=OBJECT,addr=z@152aa10 type Type: OBJECT in elem:C lient Information(687753) to: [name=EI,id=1102514,type=EVENT,addr=w@17d7a20 type Type: EVENT in elem:XDF(688019) Connection problem: Incompatible pipes: can't connect pipe [name=wrtpath,id=1103471,type=OBJECT,addr=z@147af7e type Type: OBJECT in ele m:Client Information(687753) to: [name=EI,id=1102514,type=EVENT,addr=w@17d7a20 type Type: EVENT in elem:XDF(688019) Connection problem: Incompatible pipes: can't connect pipe [name=readpath,id=1103469,type=OBJECT,addr=z@1763bac type Type: OBJECT in el em:Client Information(687753) to: [name=EI,id=1102568,type=EVENT,addr=w@dcfce0 type Type: EVENT in elem:XDF-Reader(688012) java.lang.NullPointerException at PLayer.VideoHandler.SetWindowsSize(VideoHandler.java:1064) at PLayer.VideoHandler.WindowResizeNew(VideoHandler.java:474) at PLayer.VideoHandler.access$400(VideoHandler.java:37) at PLayer.VideoHandler$6.componentResized(VideoHandler.java:258) at java.awt.Component.processComponentEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Window.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at PLayer.VideoHandler.SetWindowsSize(VideoHandler.java:1086) at PLayer.VideoHandler.WindowResizeNew(VideoHandler.java:474) at PLayer.VideoHandler.access$400(VideoHandler.java:37) at PLayer.VideoHandler$6.componentResized(VideoHandler.java:258) at java.awt.Component.processComponentEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Window.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) java.lang.NullPointerException at PLayer.VideoHandler.reset_WINDOW_AND_CONDITIONs(VideoHandler.java:518) at PLayer.VideoHandler.SetWindowsSize(VideoHandler.java:1094) at PLayer.VideoHandler.WindowResizeNew(VideoHandler.java:474) at PLayer.VideoHandler.access$400(VideoHandler.java:37) at PLayer.VideoHandler$6.componentResized(VideoHandler.java:258) at java.awt.Component.processComponentEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Window.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at PLayer.VideoHandler.reset_WINDOW_AND_CONDITIONs(VideoHandler.java:518) at PLayer.VideoHandler.WindowResizeNew(VideoHandler.java:480) at PLayer.VideoHandler.access$400(VideoHandler.java:37) at PLayer.VideoHandler$6.componentResized(VideoHandler.java:258) at java.awt.Component.processComponentEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Window.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Connection problem: Incompatible pipes: can't connect pipe [name=On/Off,id=1103947,type=LOGICAL,addr=v@3ca641 type Type: LOGICAL in ele m:<= 0.0(725809) to: [name=In,id=1103956,type=OBJECT,addr=y@1c71e8e type Type: OBJECT in elem:Set:\nColors/Trace color(725836) Connection problem: Incompatible pipes: can't connect pipe [name=Value,id=1103781,type=SCALAR,addr=j@1a71c51 type Type: SCALAR in elem: Txt-S(845486) to: [name=EI,id=1101929,type=EVENT,addr=w@3438d9 type Type: EVENT in elem:H-Artefact(730518) Sorting error, element not found: band stop(703829) connected to the input of Filter2(709778) Sorting error, element not found: threshold type(943) connected to the input of = 0.0(749065) Sorting error, element not found: feedback type(946) connected to the input of >= 0.0(749131) Sorting error, element not found: Checkbox2(1805) connected to the input of or2(771241) Sorting error, element not found: Min value(941) connected to the input of Set:\nMin frequency [Hz](709805) Sorting error, element not found: Max value(940) connected to the input of Set:\nMax frequency [Hz](709794) Sorting error, element not found: percent(942) connected to the input of Set:\nTime ratio [0-100%](749169) Sorting error, element not found: band stop(703829) connected to the input of Filter1(708005) Sorting error, element not found: Button(248) connected to the input of Action: \nChart hide(704710) Reinit problem in element Session online report(692457): n: Design not loaded, see console for more error details Warning: Element not connected: Set:\nAmplitude max(877103) Warning: Element not connected: Set:\nAmplitude max(877103) External element reinited Sorting error, element not found: Pause(2676) connected to the input of Live Data(2394) |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jun 19, 2015 7:03 PM Post subject: |
|
| This error happens in your code, PLayer.VideoHandler.SetWindowsSize(VideoHandler.java:1064), you should debug what happens there. I can't help with that. It is not BioEra code. |
|
 |
BHR
Joined: Nov 25, 2014 Posts: 20
|
Posted: Jun 19, 2015 7:33 PM Post subject: |
|
dear jarek I know the error emerge from my code but the same code compiled in netbeans without any error and any exception my guess is about loading error of AWT classes as we see in the console output:"Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException" thanks |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jun 19, 2015 7:39 PM Post subject: |
|
I wish I could help. But problems like that (when something is fine in one environment and not other) are very common.
It is like you were asking Microsoft why your program works fine on Linux but not Windows.
Different environment affects your program in a different way. And you need to figure it out. That is part of your programming job. |
|
 |
BHR
Joined: Nov 25, 2014 Posts: 20
|
Posted: Jun 19, 2015 8:26 PM Post subject: |
|
your example is not very good on my thought we are argue about java, one of most portable languages! however thanks your responses anyway I try to overcome the problem myself. good luck Dear jarek. |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jun 20, 2015 2:31 AM Post subject: |
|
Java is usually portable, but not always. There is a saying about java: "Write once, test everywhere".
In this case however it is probably not the java portability issue, but maybe something extra which Netbeans does.
If you wish to test in most similar conditions to what BioEra does, you should use java 7 on the command line.
BioEra executes the code by JVM, there is nothing special here.
The code which fails is fully controlled by you (form the start to the end). So it must be missing something. Most likely Netbeans executes it differently (maybe on a different thread or something like that). BioEra executes each element on the main program thread (not AWT thread). |
|