Compile jstock source code in Netbeans IDE 7

Developers
Kevin Wong
2011-10-05
2013-03-13
  • kaufmann
    kaufmann
    2011-10-26

    super
    I just need SOP to look into the project!

     
  • kaufmann
    kaufmann
    2011-10-26

    do you have the same warning messages?
    2011/10/26 下午 05:14:07 org.yccheok.jstock.file.Statements newInstanceFromCSVFile
    嚴重的: null
    java.io.FileNotFoundException: C:\Users\Patrick\.jstock\1.0.6\Taiwan\config\buyportfolio.csv (系統找不到指定的路徑。)

    my os is win7 x64
    netbean ide 7.0.1
    jdk 1.6
    compiled with latest code from jstock repository directly

    ======================================

    compile:
    run:
    2011/10/26 下午 05:14:07 org.yccheok.jstock.gui.IndicatorPanel initIndicatorProjectManager
    資訊: alertIndicatorProjectManager loaded from C:\Users\Patrick\.jstock\1.0.6\indicator\project.xml successfully.
    2011/10/26 下午 05:14:07 org.yccheok.jstock.gui.IndicatorPanel initModuleProjectManager
    資訊: moduleIndicatorProjectManager loaded from C:\Users\Patrick\.jstock\1.0.6\module\project.xml successfully.
    2011/10/26 下午 05:14:07 org.yccheok.jstock.file.Statements newInstanceFromCSVFile
    嚴重的: null
    java.io.FileNotFoundException: C:\Users\Patrick\.jstock\1.0.6\Taiwan\config\buyportfolio.csv (系統找不到指定的路徑。)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at org.yccheok.jstock.file.Statements.newInstanceFromCSVFile(Statements.java:254)
    at org.yccheok.jstock.gui.PortfolioManagementJPanel.openAsCSVFile(PortfolioManagementJPanel.java:379)
    at org.yccheok.jstock.gui.PortfolioManagementJPanel.initCSVPortfolio(PortfolioManagementJPanel.java:1733)
    at org.yccheok.jstock.gui.PortfolioManagementJPanel.initPortfolio(PortfolioManagementJPanel.java:1944)
    at org.yccheok.jstock.gui.PortfolioManagementJPanel.<init>(PortfolioManagementJPanel.java:82)
    at org.yccheok.jstock.gui.MainFrame.createPortfolioManagementJPanel(MainFrame.java:1745)
    at org.yccheok.jstock.gui.MainFrame.init(MainFrame.java:110)
    at org.yccheok.jstock.gui.MainFrame.access$3400(MainFrame.java:66)
    at org.yccheok.jstock.gui.MainFrame$28.run(MainFrame.java:1513)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    2011/10/26 下午 05:14:08 org.yccheok.jstock.gui.Utils extractZipFile
    嚴重的: null
    java.io.FileNotFoundException: database\database.zip (系統找不到指定的路徑。)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at org.yccheok.jstock.gui.Utils.extractZipFile(Utils.java:314)
    at org.yccheok.jstock.gui.Utils.extractZipFile(Utils.java:305)
    at org.yccheok.jstock.gui.MainFrame.initPreloadDatabase(MainFrame.java:4108)
    at org.yccheok.jstock.gui.MainFrame.init(MainFrame.java:117)
    at org.yccheok.jstock.gui.MainFrame.access$3400(MainFrame.java:66)
    at org.yccheok.jstock.gui.MainFrame$28.run(MainFrame.java:1513)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    2011/10/26 下午 05:14:08 org.yccheok.jstock.gui.Utils extractZipFile
    嚴重的: null
    java.io.FileNotFoundException: chat\chat.zip (系統找不到指定的路徑。)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at org.yccheok.jstock.gui.Utils.extractZipFile(Utils.java:314)
    at org.yccheok.jstock.gui.Utils.extractZipFile(Utils.java:305)
    at org.yccheok.jstock.gui.MainFrame.initChatDatas(MainFrame.java:4225)
    at org.yccheok.jstock.gui.MainFrame.init(MainFrame.java:118)
    at org.yccheok.jstock.gui.MainFrame.access$3400(MainFrame.java:66)
    at org.yccheok.jstock.gui.MainFrame$28.run(MainFrame.java:1513)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    2011/10/26 下午 05:14:08 org.yccheok.jstock.gui.Utils extractZipFile
    嚴重的: null
    java.io.FileNotFoundException: extra\extra.zip (系統找不到指定的路徑。)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at org.yccheok.jstock.gui.Utils.extractZipFile(Utils.java:314)
    at org.yccheok.jstock.gui.Utils.extractZipFile(Utils.java:305)
    at org.yccheok.jstock.gui.MainFrame.initExtraDatas(MainFrame.java:4236)
    at org.yccheok.jstock.gui.MainFrame.init(MainFrame.java:119)
    at org.yccheok.jstock.gui.MainFrame.access$3400(MainFrame.java:66)
    at org.yccheok.jstock.gui.MainFrame$28.run(MainFrame.java:1513)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    2011/10/26 下午 05:14:08 org.yccheok.jstock.gui.IndicatorScannerJPanel$11 run
    資訊: Prepare to shut down org.yccheok.jstock.engine.RealTimeStockMonitor@1b8b3bb…
    2011/10/26 下午 05:14:08 org.yccheok.jstock.gui.IndicatorScannerJPanel$11 run
    資訊: Shut down org.yccheok.jstock.engine.RealTimeStockMonitor@1b8b3bb peacefully.
    2011/10/26 下午 05:14:08 org.yccheok.jstock.gui.MainFrame$DatabaseTask doInBackground
    資訊: Stock info database loaded from C:\Users\Patrick\.jstock\1.0.6\Taiwan\database\stock-info-database.xml successfully.
    2011/10/26 下午 05:14:08 org.yccheok.jstock.gui.Utils fromXML
    嚴重的: null
    java.io.FileNotFoundException: C:\Users\Patrick\.jstock\1.0.6\Taiwan\database\user-defined-database.xml (系統找不到指定的檔案。)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at org.yccheok.jstock.gui.Utils.fromXML(Utils.java:1669)
    at org.yccheok.jstock.gui.MainFrame.loadUserDefinedDatabase(MainFrame.java:3474)
    at org.yccheok.jstock.gui.MainFrame.access$5300(MainFrame.java:66)
    at org.yccheok.jstock.gui.MainFrame$DatabaseTask.doInBackground(MainFrame.java:2826)
    at org.yccheok.jstock.gui.MainFrame$DatabaseTask.doInBackground(MainFrame.java:2705)
    at javax.swing.SwingWorker$1.call(SwingWorker.java:277)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at javax.swing.SwingWorker.run(SwingWorker.java:316)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    2011/10/26 下午 05:14:09 org.apache.commons.httpclient.HttpMethodBase getResponseBody

     
  • yccheok
    yccheok
    2011-10-28

    @kaufmann88, you are missing some file, which you may get them after you install JStock. For instance, look for (java.io.FileNotFoundException: database\database.zip) after you had installed JStock.

    Please refer to https://sourceforge.net/apps/mediawiki/jstock/index.php?title=Hacking, for some additional information.